Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release 0.1.0 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

chore: release 0.1.0 #1

wants to merge 1 commit into from

Conversation

github-actions[bot]
Copy link

🤖 I have created a release *beep* *boop*

0.1.0 (2023-03-16)

⚠ BREAKING CHANGES

  • requires an instance of [email protected]
  • update multiformats (fix!: update multiformats libp2p/js-libp2p#1535)
  • the FaultTolerance enum should now be imported from @libp2p/interface-transport
  • the connection manager and registrar are internal types and as such not part of the libp2p interface, instead use the methods exposed on the root libp2p type for obtaining connections and protocols (see the upgrade guide)
  • libp2p.hangUp and libp2p.fetch require PeerId or Multiaddr objects the same as other methods
  • the libp2p opts have changed to accept a metrics object factory function instead of a config object
  • modules no longer implement Initializable instead switching to constructor injection
  • the old behaviour was to dial any peer we discover, now we just add them to the peer store instead
  • the loadKeychain method has been removed as it is no longer necessary
  • Streams are now Duplex<Uint8ArrayList, Uint8ArrayList | Uint8Array>
  • connectionManager.peerValue has been removed, use peerStore.tagPeer instead
  • limit protocol streams per-connection (feat!: limit protocol streams per-connection libp2p/js-libp2p#1255)
  • uses new single-issue libp2p interface modules
  • types are no longer hand crafted, this module is now ESM only
  • abort-controller dep is gone from dependency tree
  • libp2p.handle, libp2p.registrar.register and the peerstore methods have become async
  • requires node 15+
  • libp2p-kad-dht has a new event-based API which is exposed as _dht
  • datastore implementations provided to libp2p must be compliant with [email protected]
  • uses the CID class from the new multiformats module
  • dialProtocol does not return connection when no protocols are provided
  • pubsub signing policy properties were changed according to libp2p-interfaces changes to a single property. The emitSelf option default value was also modified to match the routers value
    • feat: gossipsub 1.1
  • this drops testing support in node 10.
  • all API methods with peer-info parameters or return values were changed. You can check the API.md document, in order to check the new values to use
    • chore: deprecate old peer-store api
  • switch configuration has changed. 'blacklistTTL' is now 'denyTTL' and 'blackListAttempts' is now 'denyAttempts'
  • new configuration for deciding the implementation of pubsub to be used. In this context, the experimental flags were also removed. See the README for the latest usage.
  • The ipfs interface specified that options should be provided after the handler, not before. https://github.com/ipfs/interface-js-ipfs-core/blob/v0.109.0/SPEC/PUBSUB.md#pubsubsubscribe
  • dht experimental flag was removed and a dht.enabled property was added to the config

Features

Bug Fixes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants