Skip to content

plaintext: 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

  • the connectionEncryption option has been renamed connectionEncrypters
    • @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

Features

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

Bug Fixes

  • make connection securing abortable (#2662) (51f7b57)
  • remove localPeer from secureInbound and secureOutbound (#2304) (b435a21)
  • remove private key field from peer id (#2660) (3eeb0c7), closes #2659
  • rename connectionEncryption option to connectionEncrypters (#2691) (6d72709)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @libp2p/crypto bumped from ^4.1.9 to ^5.0.0
      • @libp2p/interface bumped from ^1.7.0 to ^2.0.0
      • @libp2p/peer-id bumped from ^4.2.4 to ^5.0.0
    • devDependencies
      • @libp2p/crypto bumped from ^4.1.9 to ^5.0.0
      • @libp2p/interface-compliance-tests bumped from ^5.4.12 to ^6.0.0
      • @libp2p/logger bumped from ^4.0.20 to ^5.0.0