From 08a4fad80b87fdaf6e6e6bec57c2b6484d947c93 Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Wed, 8 Jul 2020 14:12:40 +0200 Subject: [PATCH] chore: add modules to update in 0.28.x migration (#695) --- doc/migrations/v0.27-v.28.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/doc/migrations/v0.27-v.28.md b/doc/migrations/v0.27-v.28.md index ca1ed71a..67c9882b 100644 --- a/doc/migrations/v0.27-v.28.md +++ b/doc/migrations/v0.27-v.28.md @@ -10,6 +10,7 @@ A migration guide for refactoring your application code from libp2p v0.27.x to v - [API Implications](#api-implications) - [Connection Manager and Registrar](#connection-manager-and-registrar) - [Events](#events) +- [Module Updates](#module-updates) ## PeerStore API @@ -321,6 +322,21 @@ libp2p.on('peer:discovery', (peerId) => { }) ``` +## Module Updates + +With `libp2p@0.28` you should update the following libp2p modules if you are relying on them: + +```json +"libp2p-bootstrap": "^0.11.0", +"libp2p-delegated-content-routing": "^0.5.0", +"libp2p-delegated-peer-routing": "^0.5.0", +"libp2p-floodsub": "^0.21.0", +"libp2p-gossipsub": "^0.4.0", +"libp2p-kad-dht": "^0.19.1", +"libp2p-mdns": "^0.14.1", +"libp2p-webrtc-star": "^0.18.0" +``` + [connection]: https://github.com/libp2p/js-interfaces/tree/master/src/connection [multiaddr]: https://github.com/multiformats/js-multiaddr [peer-id]: https://github.com/libp2p/js-peer-id