Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

fix!: remove @libp2p/components #192

Merged
merged 2 commits into from
Oct 12, 2022
Merged

Conversation

achingbrain
Copy link
Member

@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 libp2p/js-libp2p-components#6

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

`@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 libp2p/js-libp2p-components#6

BREAKING CHANGE: modules no longer implement `Initializable` instead switching to constructor injection
@achingbrain achingbrain force-pushed the fix/remove-components-dependency branch from d4742c4 to 8ed1d72 Compare October 12, 2022 14:51
@achingbrain achingbrain changed the title deps: update @libp2p/interface-pubsub to 3.0.0 fix!: remove @libp2p/components Oct 12, 2022
@achingbrain achingbrain merged commit 9916896 into master Oct 12, 2022
@achingbrain achingbrain deleted the fix/remove-components-dependency branch October 12, 2022 14:58
github-actions bot pushed a commit that referenced this pull request Oct 12, 2022
## [5.0.0](v4.0.1...v5.0.0) (2022-10-12)

### ⚠ BREAKING CHANGES

* modules no longer implement `Initializable` instead switching to constructor injection

### Bug Fixes

* remove @libp2p/components ([#192](#192)) ([9916896](9916896)), closes [libp2p/js-libp2p-components#6](libp2p/js-libp2p-components#6)
@github-actions
Copy link

🎉 This PR is included in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

1 participant