From 1f5d5c2de166d373dd2d71594832e73158d8041c Mon Sep 17 00:00:00 2001 From: Steve Loeppky Date: Mon, 16 May 2022 11:22:41 -0700 Subject: [PATCH] Added pubsub to the TOC (#1215) --- doc/migrations/v0.36-v.037.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/migrations/v0.36-v.037.md b/doc/migrations/v0.36-v.037.md index dd9b74c7..2dd3322f 100644 --- a/doc/migrations/v0.36-v.037.md +++ b/doc/migrations/v0.36-v.037.md @@ -10,6 +10,7 @@ A migration guide for refactoring your application code from libp2p v0.36.x to v - [Config](#config) - [Bundled modules](#bundled-modules) - [Events](#events) +- [Pubsub](#pubsub) ## ESM @@ -202,7 +203,7 @@ libp2p.addEventListener('peer:discovery', handler) libp2p.removeEventListener('peer:discovery', handler) ``` -## Pubsub +## Pubsub Similar to the events refactor above, pubsub is now driven by the standard [EventTarget](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget) API.