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.