-
Notifications
You must be signed in to change notification settings - Fork 27
Conversation
Replaces the node `EventEmitter` with the pure-js `EventTarget` class.
## [@libp2p/interfaces-v1.3.1](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interfaces-v1.3.0...@libp2p/interfaces-v1.3.1) (2022-02-10) ### Bug Fixes * remove node event emitters ([#161](#161)) ([221fb6a](221fb6a))
🎉 This PR is included in version @libp2p/interfaces-v1.3.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [@libp2p/logger-v1.0.2](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/logger-v1.0.1...@libp2p/logger-v1.0.2) (2022-02-10) ### Bug Fixes * remove node event emitters ([#161](#161)) ([221fb6a](221fb6a))
🎉 This PR is included in version @libp2p/logger-v1.0.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [@libp2p/peer-id-v1.1.1](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/peer-id-v1.1.0...@libp2p/peer-id-v1.1.1) (2022-02-10) ### Bug Fixes * remove node event emitters ([#161](#161)) ([221fb6a](221fb6a))
🎉 This PR is included in version @libp2p/peer-id-v1.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [@libp2p/tracked-map-v1.0.1](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/tracked-map-v1.0.0...@libp2p/tracked-map-v1.0.1) (2022-02-10) ### Bug Fixes * remove node event emitters ([#161](#161)) ([221fb6a](221fb6a))
🎉 This PR is included in version @libp2p/tracked-map-v1.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [@libp2p/topology-v1.1.1](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/topology-v1.1.0...@libp2p/topology-v1.1.1) (2022-02-10) ### Bug Fixes * remove node event emitters ([#161](#161)) ([221fb6a](221fb6a))
🎉 This PR is included in version @libp2p/topology-v1.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [@libp2p/peer-id-factory-v1.0.4](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/peer-id-factory-v1.0.3...@libp2p/peer-id-factory-v1.0.4) (2022-02-10) ### Bug Fixes * remove node event emitters ([#161](#161)) ([221fb6a](221fb6a))
🎉 This PR is included in version @libp2p/peer-id-factory-v1.0.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [@libp2p/pubsub-v1.2.1](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/pubsub-v1.2.0...@libp2p/pubsub-v1.2.1) (2022-02-10) ### Bug Fixes * remove node event emitters ([#161](#161)) ([221fb6a](221fb6a))
🎉 This PR is included in version @libp2p/pubsub-v1.2.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [@libp2p/interface-compliance-tests-v1.1.1](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-compliance-tests-v1.1.0...@libp2p/interface-compliance-tests-v1.1.1) (2022-02-10) ### Bug Fixes * remove node event emitters ([#161](#161)) ([221fb6a](221fb6a))
🎉 This PR is included in version @libp2p/interface-compliance-tests-v1.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [@libp2p/connection-v1.1.1](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/connection-v1.1.0...@libp2p/connection-v1.1.1) (2022-02-10) ### Bug Fixes * remove node event emitters ([#161](#161)) ([221fb6a](221fb6a))
🎉 This PR is included in version @libp2p/connection-v1.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [@libp2p/peer-record-v1.0.1](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/peer-record-v1.0.0...@libp2p/peer-record-v1.0.1) (2022-02-10) ### Bug Fixes * remove node event emitters ([#161](#161)) ([221fb6a](221fb6a))
🎉 This PR is included in version @libp2p/peer-record-v1.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [@libp2p/peer-store-v1.0.1](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/peer-store-v1.0.0...@libp2p/peer-store-v1.0.1) (2022-02-10) ### Bug Fixes * remove node event emitters ([#161](#161)) ([221fb6a](221fb6a))
🎉 This PR is included in version @libp2p/peer-store-v1.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Replaces the node
EventEmitter
with the pure-jsEventTarget
class.All events are now instances of Event.
For typing CustomEvent can be used which gives us a typed
.detail
field.Tediously
EventTarget
itself doesn't support typed events (yet?) and node.js doesn't supportCustomEvent
globally so bit of trickery was required but hopefully this can be removed in future: