mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-03-15 23:20:51 +00:00
46 lines
680 B
Markdown
46 lines
680 B
Markdown
|
<!--Specify versions for migration below-->
|
||
|
# Migrating to libp2p@__
|
||
|
|
||
|
A migration guide for refactoring your application code from libp2p v__ to v__.
|
||
|
|
||
|
## Table of Contents
|
||
|
|
||
|
- [API](#api)
|
||
|
- [Module Updates](#module-updates)
|
||
|
|
||
|
## API
|
||
|
|
||
|
<!--Describe breaking APIs with examples for Before and After
|
||
|
Example:
|
||
|
|
||
|
### Peer Discovery
|
||
|
|
||
|
__Describe__
|
||
|
|
||
|
**Before**
|
||
|
|
||
|
```js
|
||
|
|
||
|
```
|
||
|
|
||
|
**After**
|
||
|
|
||
|
```js
|
||
|
|
||
|
```
|
||
|
|
||
|
-->
|
||
|
|
||
|
## 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
|
||
|
|
||
|
```
|