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

fix: simplify transport interface, update interfaces for use with libp2p #180

Merged
merged 3 commits into from
Mar 15, 2022

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented Mar 15, 2022

  • Ensure implementation of interfaces (e.g. @libp2p/connection implements Connection now)
  • Adds mocks for missing components (connection encrypter, etc)
  • Introduce Components class to hold system components that modules require access too - this means system components do not need to depend on libp2p any more
  • Add Initializable interface to allow injecting Components instance at runtime
  • Make naming of interfaces less cryptic - e.g. Muxer becomes StreamMuxer, etc
  • Introduces peer collections - lists, maps and sets keyed by PeerId instead of strings
  • Adds .trace field to @libp2p/logger for detailed logging
  • Pubsub implementations are now expected to serialize their own RPC representations
  • PeerIds now only stringify to base58btc, since a stringified PeerId is a multihash digest encoded in base58btc
  • Swaps node EventEmitter for pure-js EventTarget

@achingbrain achingbrain merged commit ec81622 into master Mar 15, 2022
@achingbrain achingbrain deleted the fix/simplify-transport-interface branch March 15, 2022 11:26
github-actions bot pushed a commit that referenced this pull request Mar 15, 2022
## [@libp2p/interfaces-v1.3.14](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interfaces-v1.3.13...@libp2p/interfaces-v1.3.14) (2022-03-15)

### Bug Fixes

* simplify transport interface, update interfaces for use with libp2p ([#180](#180)) ([ec81622](ec81622))
@github-actions
Copy link

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

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Mar 15, 2022
## [@libp2p/logger-v1.1.2](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/logger-v1.1.1...@libp2p/logger-v1.1.2) (2022-03-15)

### Bug Fixes

* simplify transport interface, update interfaces for use with libp2p ([#180](#180)) ([ec81622](ec81622))
@github-actions
Copy link

🎉 This PR is included in version @libp2p/logger-v1.1.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Mar 15, 2022
## [@libp2p/peer-id-v1.1.8](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/peer-id-v1.1.7...@libp2p/peer-id-v1.1.8) (2022-03-15)

### Bug Fixes

* simplify transport interface, update interfaces for use with libp2p ([#180](#180)) ([ec81622](ec81622))
@github-actions
Copy link

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

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Mar 15, 2022
## [@libp2p/tracked-map-v1.0.4](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/tracked-map-v1.0.3...@libp2p/tracked-map-v1.0.4) (2022-03-15)

### Bug Fixes

* simplify transport interface, update interfaces for use with libp2p ([#180](#180)) ([ec81622](ec81622))
@github-actions
Copy link

🎉 This PR is included in version @libp2p/tracked-map-v1.0.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Mar 15, 2022
## [@libp2p/multistream-select-v1.0.3](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/multistream-select-v1.0.2...@libp2p/multistream-select-v1.0.3) (2022-03-15)

### Bug Fixes

* simplify transport interface, update interfaces for use with libp2p ([#180](#180)) ([ec81622](ec81622))
@github-actions
Copy link

🎉 This PR is included in version @libp2p/multistream-select-v1.0.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Mar 15, 2022
## [@libp2p/topology-v1.1.6](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/topology-v1.1.5...@libp2p/topology-v1.1.6) (2022-03-15)

### Bug Fixes

* simplify transport interface, update interfaces for use with libp2p ([#180](#180)) ([ec81622](ec81622))
@github-actions
Copy link

🎉 This PR is included in version @libp2p/topology-v1.1.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Mar 15, 2022
## [@libp2p/peer-id-factory-v1.0.8](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/peer-id-factory-v1.0.7...@libp2p/peer-id-factory-v1.0.8) (2022-03-15)

### Bug Fixes

* simplify transport interface, update interfaces for use with libp2p ([#180](#180)) ([ec81622](ec81622))
@github-actions
Copy link

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

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Mar 15, 2022
## @libp2p/peer-collections-v1.0.0 (2022-03-15)

### Bug Fixes

* simplify transport interface, update interfaces for use with libp2p ([#180](#180)) ([ec81622](ec81622))
@github-actions
Copy link

🎉 This PR is included in version @libp2p/peer-collections-v1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Mar 15, 2022
## [@libp2p/pubsub-v1.2.10](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/pubsub-v1.2.9...@libp2p/pubsub-v1.2.10) (2022-03-15)

### Bug Fixes

* simplify transport interface, update interfaces for use with libp2p ([#180](#180)) ([ec81622](ec81622))
@github-actions
Copy link

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

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Mar 15, 2022
## [@libp2p/interface-compliance-tests-v1.1.16](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-compliance-tests-v1.1.15...@libp2p/interface-compliance-tests-v1.1.16) (2022-03-15)

### Bug Fixes

* simplify transport interface, update interfaces for use with libp2p ([#180](#180)) ([ec81622](ec81622))
@github-actions
Copy link

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

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Mar 15, 2022
## [@libp2p/connection-v1.1.4](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/connection-v1.1.3...@libp2p/connection-v1.1.4) (2022-03-15)

### Bug Fixes

* simplify transport interface, update interfaces for use with libp2p ([#180](#180)) ([ec81622](ec81622))
@github-actions
Copy link

🎉 This PR is included in version @libp2p/connection-v1.1.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Mar 15, 2022
## [@libp2p/peer-record-v1.0.7](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/peer-record-v1.0.6...@libp2p/peer-record-v1.0.7) (2022-03-15)

### Bug Fixes

* simplify transport interface, update interfaces for use with libp2p ([#180](#180)) ([ec81622](ec81622))
@github-actions
Copy link

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

The release is available on:

Your semantic-release bot 📦🚀

achingbrain added a commit to libp2p/js-libp2p-bootstrap that referenced this pull request Mar 15, 2022
achingbrain added a commit to libp2p/js-libp2p-delegated-content-routing that referenced this pull request Mar 15, 2022
achingbrain added a commit to libp2p/js-libp2p-delegated-peer-routing that referenced this pull request Mar 15, 2022
achingbrain added a commit to libp2p/js-libp2p-floodsub that referenced this pull request Mar 15, 2022
achingbrain added a commit to libp2p/js-libp2p-kad-dht that referenced this pull request Mar 15, 2022
achingbrain added a commit to libp2p/js-libp2p-mdns that referenced this pull request Mar 15, 2022
achingbrain added a commit to libp2p/js-libp2p-mplex that referenced this pull request Mar 15, 2022
achingbrain added a commit to libp2p/js-libp2p-websockets that referenced this pull request Mar 15, 2022
achingbrain added a commit to libp2p/js-libp2p-tcp that referenced this pull request Mar 15, 2022
achingbrain added a commit to libp2p/js-libp2p-websockets that referenced this pull request Mar 16, 2022
achingbrain added a commit to libp2p/js-libp2p-tcp that referenced this pull request Mar 16, 2022
achingbrain added a commit to libp2p/js-libp2p-floodsub that referenced this pull request Mar 16, 2022
achingbrain added a commit to libp2p/js-libp2p-kad-dht that referenced this pull request Mar 16, 2022
achingbrain added a commit to libp2p/js-libp2p-mdns that referenced this pull request Mar 16, 2022
achingbrain added a commit to libp2p/js-libp2p-delegated-peer-routing that referenced this pull request Mar 16, 2022
achingbrain added a commit to libp2p/js-libp2p-bootstrap that referenced this pull request Mar 16, 2022
achingbrain added a commit to libp2p/js-libp2p-delegated-content-routing that referenced this pull request Mar 16, 2022
achingbrain added a commit to libp2p/js-libp2p-mplex that referenced this pull request Mar 17, 2022
achingbrain added a commit to libp2p/js-libp2p-webrtc-star that referenced this pull request Mar 17, 2022
achingbrain added a commit to libp2p/js-libp2p-webrtc-star that referenced this pull request Mar 17, 2022
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