You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix!: rename connectionEncryption option to connectionEncrypters (#2691)
To make the options more consistent, rename `connectionEncryption`
to `connectionEncrypters` in line with `streamMuxers`, `transports`,
etc.
BREAKING CHANGE: the `connectionEncryption` option has been renamed `connectionEncrypters`
Copy file name to clipboardExpand all lines: doc/migrations/v1.0.0-v2.0.0.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ A migration guide for refactoring your application code from libp2p `v1.0.0` to
17
17
-[`localPeer` is no longer passed to Connection Encrypters](#localpeer-is-no-longer-passed-to-connection-encrypters)
18
18
-[The `.code` property has been removed from thrown errors, use `.name` instead](#the-code-property-has-been-removed-from-thrown-errors-use-name-instead)
19
19
-[pubsub, identify, circuit-relay v2 and record envelope sealing use `privateKey` component](#pubsub-identify-circuit-relay-v2-and-record-envelope-sealing-use-privatekey-component)
20
+
-[The `connectionEncryption` option has been renamed `connectionEncrypters`](#the-connectionencryption-option-has-been-renamed-connectionencrypters)
20
21
21
22
## The `PeerId` interface is now a union type
22
23
@@ -484,3 +485,36 @@ for use by libp2p services that contains the deserialized private key.
484
485
485
486
There are no migration instructions to take advantage of this other than
486
487
ensuring you have upgraded to the latest version of all libp2p services.
488
+
489
+
## The `connectionEncryption` option has been renamed `connectionEncrypters`
490
+
491
+
This makes it consistent with other options such as `streamMuxers`,
0 commit comments