multiaddr string representation: use /p2p by default #386
Labels
exp/novice
Someone with a little familiarity can pick up
kind/enhancement
A net-new feature or improvement to an existing feature
P1
High: Likely tackled by core team if no one steps up
status/blocked
Unable to be worked further until needs are met
Support for
/p2p
in multiaddr has existed since December 17 of last year. It's time to migrate switch to using it by default. Currently we use/ipfs
to indicate peer id's in a multiaddr and it is the default, but/p2p
is preferred. In the greater effort to migrate completely away from/ipfs
, this task is here to track the roll out of only switching the default.Breaking Changes
Older JS nodes who are not using the latest
multiaddr@6.x.x
release line, will not be able to understand the/p2p
string representation. This shouldn't affect peers over the wire, but any string usage will cause issues.Anyone using js-libp2p older than 0.25 may be affected. You can run
npm ls multiaddr
to check that you have version ofmultiaddr >= 6.0.2
. Older versions of multiaddr will likely have issues with the string representation of/p2p
.js-ipfs
Anyone using js-ipfs@0.34 or later will be unaffected by this change, as it includes the
/p2p
codec.TODOs
/p2p
in a major version releaseAnnouncement
This is to track announcing the breaking change for older versions. Once a release date has been determined.
Libp2p Release Version: TBD
Parent issue: libp2p/libp2p#79
The text was updated successfully, but these errors were encountered: