Skip to content

v0.37.0

Compare
Choose a tag to compare
@github-actions github-actions released this 22 Oct 20:08
83d458c

Breaking Changes

  • The libp2p.MultiaddrResolver option now takes an interface rather than a
    specific pointer. This decouples the resolver from a specific implementation
    and also defines a better interface that is aware of bounds.
    • The swarm exports a new type ResolverFromMaDNS that implements this interface from a *madns.Resolver. The one line diff is essentially:
    -libp2p.MultiaddrResolver(rslv)
    +libp2p.MultiaddrResolver(swarm.ResolverFromMaDNS{Resolver: rslv})

🔦 Highlights

HTTP Peer ID Authentication (#2854)

Authenticate a peer's identity over HTTP. This works on both libp2p stream backed HTTP transports and standard HTTP transports. There is also browser support in the js-libp2p module: https://github.com/libp2p/js-libp2p-http-fetch/tree/main.

See the spec for more details on how it works: https://github.com/libp2p/specs/blob/master/http/peer-id-auth.md

Experimental WithFxOption (#2956)

A new libp2p Config option lets you add custom Fx options to the libp2p constructor. Use this to get access to and provide libp2p services.

For example, this allows you to easily get a reference to the ID Service of a libp2p Node. Refer to this test for a concrete code example: https://github.com/libp2p/go-libp2p/blob/c4c3a34545aab54b5b825a7adbd6a3db2c680afa/fx_options_test.go#L50-L60

In the future we'd like to expose the Fx options libp2p uses to construct itself so that users can better customize their libp2p nodes and integrate it seamlessly into their applications.

Changelog

From v0.36.5 to v0.37.0

  • feat: Add WithFxOption (#2956)
  • Make BlackHoleState type public (#2917)
  • connmgr: reduce log level for untagging untracked peers
  • feat(websocket): switch the underlying http server logger to use ipfs/go-log (#2985)
  • fix(websocket): re-enable websocket transport test (#2987)
  • relay: make only 1 reservation per peer (#2974)
  • libp2phttp: HTTP Peer ID Authentication (#2854)
  • chore: update quic-go to v0.48.1
  • Add backoff for updating local IP addresses on error (#2999) Reporting credit to @elecbug
  • fix: swarm: refactor address resolution (#2990)
  • peerstore: limit number of non connected peers in addrbook (#2971)
  • swarm: add a peer dial latency metric (#2959)
  • autonat: fix interaction with autorelay (#2967)

Full Changelog: v0.36.5...v0.37.0

New Contributors