Skip to content

interface: v2.0.0

Compare
Choose a tag to compare
@achingbrain achingbrain released this 11 Sep 10:12
cb9f3ff

2.0.0 (2024-09-11)

� BREAKING CHANGES

  • instead of CodeError, use TimeoutError, UnexpectedPeerError, etc
    • @libp2p/peer-id-factory has been removed, use generateKeyPair and peerIdFromPrivateKey instead
  • the final argument to secureOutbound and secureInbound in the ConnectionEncrypter interface is now an options object
  • The .code property has been removed from most errors, use .name instead
  • removes localPeer: PeerId first parameter from secureInbound and secureOutbound in ConnectionEncrypter
    • The notifyOnTransient property of libp2p.register has been renamed notifyOnLimitedConnection
  • @libp2p/interface no longer exports a CustomEvent polyfill

Features

  • use .name property instead of .code for errors (#2655) (0d20426)

Bug Fixes