libp2p / js-libp2p-webrtc-star

libp2p WebRTC transport that includes a discovery mechanism provided by the signalling-star
https://libp2p.io
Other
320 stars 96 forks source link

fix!: remove @libp2p/components #477

Closed achingbrain closed 1 year ago

achingbrain commented 1 year ago

@libp2p/components is a choke-point for our dependency graph as it depends on every interface, meaning when one interface revs a major @libp2p/components major has to change too which means every module depending on it also needs a major.

Switch instead to constructor injection of simple objects that let modules declare their dependencies on interfaces directly instead of indirectly via @libp2p/components

Refs https://github.com/libp2p/js-libp2p-components/issues/6

BREAKING CHANGE: modules no longer implement Initializable instead switching to constructor injection

github-actions[bot] commented 1 year ago

:tada: This PR is included in version @libp2p/webrtc-star-v5.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: