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

chore: remove peer-info usage #41

Merged
merged 3 commits into from
Apr 22, 2020
Merged

Conversation

vasco-santos
Copy link
Member

@vasco-santos vasco-santos commented Apr 7, 2020

In the context of deprecating peer-info as described on libp2p/js-libp2p#589, this PR removes the peer-info usage on pubsub internal peer data structure. Moreover, this uses the new topology API, which also uses peer-id instead of peer-info

This changes have impact on pubsub implementations.

BREAKING CHANGE: pubsub internal peer does not have info propery anymore and use the new topology api with peer-id instead of peer-info

Needs:

BREAKING CHANGE: pubsub internal peer does not have info propery anymore and use the new topology api with peer-id instead of peer-info
src/index.js Outdated Show resolved Hide resolved
src/peer.js Outdated Show resolved Hide resolved
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
Copy link
Contributor

@jacobheun jacobheun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, can you also update the README? The constructor example needs to be updated there.

@vasco-santos
Copy link
Member Author

Yap, totally missed that! Just pushed the change of peer-info to peer-id on the README. Will merge this on CI green and release beta

@vasco-santos vasco-santos merged commit 721a53e into master Apr 22, 2020
@vasco-santos vasco-santos deleted the chore/remove-peer-info-usage branch April 22, 2020 14:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants