mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-04-01 07:11:04 +00:00
37 lines
1.2 KiB
Markdown
37 lines
1.2 KiB
Markdown
|
<!--Specify versions for migration below-->
|
||
|
# Migrating to libp2p@32
|
||
|
|
||
|
A migration guide for refactoring your application code from libp2p v0.31.x to v0.32.0.
|
||
|
|
||
|
## Table of Contents
|
||
|
|
||
|
- [Module Updates](#module-updates)
|
||
|
|
||
|
## Module Updates
|
||
|
|
||
|
With this release you should update the following libp2p modules if you are relying on them:
|
||
|
|
||
|
<!--Specify module versions in JSON for migration below.
|
||
|
It's recommended to check package.json changes for this:
|
||
|
`git diff <release> <prev> -- package.json`
|
||
|
-->
|
||
|
|
||
|
```json
|
||
|
"libp2p-bootstrap": "^0.13.0",
|
||
|
"libp2p-crypto": "^0.19.4",
|
||
|
"libp2p-interfaces": "^1.0.0",
|
||
|
"libp2p-delegated-content-routing": "^0.11.0",
|
||
|
"libp2p-delegated-peer-routing": "^0.10.0",
|
||
|
"libp2p-floodsub": "^0.27.0",
|
||
|
"libp2p-gossipsub": "^0.11.0",
|
||
|
"libp2p-kad-dht": "^0.23.0",
|
||
|
"libp2p-mdns": "^0.17.0",
|
||
|
"libp2p-noise": "^4.0.0",
|
||
|
"libp2p-tcp": "^0.17.0",
|
||
|
"libp2p-webrtc-direct": "^0.7.0",
|
||
|
"libp2p-webrtc-star": "^0.23.0",
|
||
|
"libp2p-websockets": "^0.16.0"
|
||
|
```
|
||
|
|
||
|
One of the main changes in this new release is the update to `multiaddr@10.0.0`. This should also be updated in upstream projects to avoid several multiaddr versions in the bundle and to avoid potential problems when libp2p interacts with provided outdated multiaddr instances.
|