Skip to content

v0.31.0

Compare
Choose a tag to compare
@vasco-santos vasco-santos released this 28 Apr 13:39

libp2p configuration with types

馃敠 Highlights

This releases expands the surface of libp2p with type definitions to also include its configuration. Accordingly, most of the libp2p touch points with TS developers are now covered with types and we will be adding them to the libp2p modules over time.

New typed multiaddr@9.0.x rolled up across all libp2p modules, buffer update to buffer@6.0.0. Several other libp2p dependencies have been removed or switched, in order to both decrease the bundle size of libp2p and better support for JS bundlers.

This also includes several bug fixes that were causing extra dials attempts (AddressBook events and Dialer filtering), as well as webrtc support for multiple listeners.

馃彈 API Changes

Migration guide

0.31.2 (2021-04-30)

Bug Fixes

  • moving averages record types (#935) (b5a9eb2)
  • event emitter and interfaces types for discovery and routing (#934) (302bb90)
  • address book guarantees no replicated entries are added (#927) (ac370fc)
  • keychain optional pw and use interfaces for validators and selectors instead (#924) (88b0415)
  • address book should not emit peer event if no addresses are known (b4fb9b7)
  • demand pubsub subclass instead of pubsub instance (#922) (086b0ec)
  • dht configuration selectors and validators (#919) (cc1f4af)
  • add clientMode dht arg and upgrade interface-datastore (#918) (975e779)
  • do not add abort signals to useless addresses (#913) (06e8f3d)
  • specify pbjs root (#917) (b043bca)
  • remove inline arg types from function definitions (#916) (2af692f)
  • metrics stats and moving averages types (#915) (3d0a79e)
  • dial protocol should throw if no protocol is provided (#914) (21c9aee)

FEATURES

  • config types and dependencies update (#904) (8506414)

BREAKING CHANGES

  • dialProtocol does not return connection when no protocols are provided
  • new type definitions for libp2p config
  • multiaddr@9 usage