Skip to content

Commit

Permalink
chore: add migration doc
Browse files Browse the repository at this point in the history
  • Loading branch information
wemeetagain committed Oct 19, 2023
1 parent 68599c0 commit 36de279
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion doc/migrations/v0.46-v1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const libp2p = await createLibp2p(...)
const keychain: KeyChain = libp2p.keychain
```

***After***
**After**

```ts
import { DefaultKeyChain } from '@libp2p/keychain'
Expand All @@ -64,6 +64,22 @@ const libp2p = await createLibp2p({
const keychain: KeyChain = libp2p.services.keychain
```

### AutoNAT

The AutoNAT service is now published in its own package.

**Before**

```ts
import { autoNATService } from 'libp2p/autonat'
```

**After**

```ts
import { autoNATService } from '@libp2p/autonat'
```

## Module Updates

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

0 comments on commit 36de279

Please sign in to comment.