Skip to content

Commit 36de279

Browse files
committed
chore: add migration doc
1 parent 68599c0 commit 36de279

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

doc/migrations/v0.46-v1.0.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const libp2p = await createLibp2p(...)
4646
const keychain: KeyChain = libp2p.keychain
4747
```
4848

49-
***After***
49+
**After**
5050

5151
```ts
5252
import { DefaultKeyChain } from '@libp2p/keychain'
@@ -64,6 +64,22 @@ const libp2p = await createLibp2p({
6464
const keychain: KeyChain = libp2p.services.keychain
6565
```
6666

67+
### AutoNAT
68+
69+
The AutoNAT service is now published in its own package.
70+
71+
**Before**
72+
73+
```ts
74+
import { autoNATService } from 'libp2p/autonat'
75+
```
76+
77+
**After**
78+
79+
```ts
80+
import { autoNATService } from '@libp2p/autonat'
81+
```
82+
6783
## Module Updates
6884

6985
With this release you should update the following libp2p modules if you are relying on them:

0 commit comments

Comments
 (0)