feat!: update to libp2p v3 api#532
Draft
achingbrain wants to merge 5 commits into
Draft
Conversation
19 tasks
a1c90fd to
06b6298
Compare
Collaborator
Author
|
Opened as a draft because the tests still need a bit of work. The mock network code was removed from |
Refactors code to conform to the `libp2p@3.x.x` API. - Encrypted streams are now EventTargets BREAKING CHANGE: Must be used with `libp2p@3.x.x`, it cannot be used with earlier versions
06b6298 to
ccd5191
Compare
|
I'm eagerly waiting to see this PR get merged. I'm waiting to upgrade from v2 to v3 of libp2p and v5 to v6 of helia, until this is complete. My application depends on pubsub and its currently broken with those newer versions. |
Collaborator
Author
|
@christroutner there's a stopgap version you can use at @libp2p/gossipsub but you should revert to For this PR to move forward, it may just need @dozyio's changes from libp2p/js-libp2p#3424 patching in. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactors code to conform to the
libp2p@3.x.xAPI.BREAKING CHANGE: Must be used with
libp2p@3.x.x, it cannot be used with earlier versions