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

fix: hide implementations behind factory methods #167

Merged
merged 1 commit into from
Feb 12, 2022

Conversation

achingbrain
Copy link
Member

To avoid leaking concrete implementation classes, hide their defintion and creation behind factory methods that are typed to return the interfaces they implement.

To avoid leaking concrete implementation classes, hide their defintion
and creation behind factory methods that are typed to return the
interfaces they implement.
@achingbrain achingbrain merged commit 2fba080 into master Feb 12, 2022
@achingbrain achingbrain deleted the fix/hide-implementations-behind-factory-methods branch February 12, 2022 05:04
github-actions bot pushed a commit that referenced this pull request Feb 12, 2022
## [@libp2p/interfaces-v1.3.6](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interfaces-v1.3.5...@libp2p/interfaces-v1.3.6) (2022-02-12)

### Bug Fixes

* hide implementations behind factory methods ([#167](#167)) ([2fba080](2fba080))
@github-actions
Copy link

🎉 This PR is included in version @libp2p/interfaces-v1.3.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Feb 12, 2022
## [@libp2p/peer-id-v1.1.3](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/peer-id-v1.1.2...@libp2p/peer-id-v1.1.3) (2022-02-12)

### Bug Fixes

* hide implementations behind factory methods ([#167](#167)) ([2fba080](2fba080))
@github-actions
Copy link

🎉 This PR is included in version @libp2p/peer-id-v1.1.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Feb 12, 2022
## [@libp2p/peer-id-factory-v1.0.5](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/peer-id-factory-v1.0.4...@libp2p/peer-id-factory-v1.0.5) (2022-02-12)

### Bug Fixes

* hide implementations behind factory methods ([#167](#167)) ([2fba080](2fba080))
@github-actions
Copy link

🎉 This PR is included in version @libp2p/peer-id-factory-v1.0.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Feb 12, 2022
## [@libp2p/pubsub-v1.2.4](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/pubsub-v1.2.3...@libp2p/pubsub-v1.2.4) (2022-02-12)

### Bug Fixes

* hide implementations behind factory methods ([#167](#167)) ([2fba080](2fba080))
@github-actions
Copy link

🎉 This PR is included in version @libp2p/pubsub-v1.2.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Feb 12, 2022
## [@libp2p/interface-compliance-tests-v1.1.5](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-compliance-tests-v1.1.4...@libp2p/interface-compliance-tests-v1.1.5) (2022-02-12)

### Bug Fixes

* hide implementations behind factory methods ([#167](#167)) ([2fba080](2fba080))
@github-actions
Copy link

🎉 This PR is included in version @libp2p/interface-compliance-tests-v1.1.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Feb 12, 2022
## [@libp2p/peer-record-v1.0.3](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/peer-record-v1.0.2...@libp2p/peer-record-v1.0.3) (2022-02-12)

### Bug Fixes

* hide implementations behind factory methods ([#167](#167)) ([2fba080](2fba080))
@github-actions
Copy link

🎉 This PR is included in version @libp2p/peer-record-v1.0.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Feb 12, 2022
## [@libp2p/peer-store-v1.0.3](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/peer-store-v1.0.2...@libp2p/peer-store-v1.0.3) (2022-02-12)

### Bug Fixes

* hide implementations behind factory methods ([#167](#167)) ([2fba080](2fba080))
@github-actions
Copy link

🎉 This PR is included in version @libp2p/peer-store-v1.0.3 🎉

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