-
Notifications
You must be signed in to change notification settings - Fork 27
fix: hide implementations behind factory methods #167
fix: hide implementations behind factory methods #167
Conversation
To avoid leaking concrete implementation classes, hide their defintion and creation behind factory methods that are typed to return the interfaces they implement.
## [@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))
🎉 This PR is included in version @libp2p/interfaces-v1.3.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [@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))
🎉 This PR is included in version @libp2p/peer-id-v1.1.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [@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))
🎉 This PR is included in version @libp2p/peer-id-factory-v1.0.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [@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))
🎉 This PR is included in version @libp2p/pubsub-v1.2.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [@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))
🎉 This PR is included in version @libp2p/interface-compliance-tests-v1.1.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [@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))
🎉 This PR is included in version @libp2p/peer-record-v1.0.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [@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))
🎉 This PR is included in version @libp2p/peer-store-v1.0.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
To avoid leaking concrete implementation classes, hide their defintion and creation behind factory methods that are typed to return the interfaces they implement.