Skip to content

chore: use new peer-discovery interface #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

vasco-santos
Copy link
Contributor

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

In the context of deprecating peer-info as described on libp2p/js-libp2p#589, this PR changes the peer-discovery interface to emit an object containing an id property and a multiaddrs property.

Note: This should be released with a beta tag until we have everything released, otherwise when people try to install this with js-libp2p they will have this as the latest code, which will not work until 0.28.

BREAKING CHANGE: peer event emits an object with id and multiaddr instead of a peer-info

cc @wemeetagain

BREAKING CHANGE: emitted peer event now emits a peer data object with id and multiaddrs instead of a peer-info
@vasco-santos
Copy link
Contributor Author

vasco-santos commented Apr 23, 2020

In another context, I will open an issue in this repo to have the tests from libp2p-interfaces running here, in order to avoid future issues and guarantee full compatibility.

EDIT: #52

Copy link
Member

@wemeetagain wemeetagain left a comment

Choose a reason for hiding this comment

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

LGTM!
Would you mind removing package-lock.json?

@vasco-santos
Copy link
Contributor Author

Yes, sorry about that. I did not realize that you were using yarn-lock.

Meanwhile, I added the package-lock to git ignore and updated the yarn-lock file :)

Copy link
Member

@wemeetagain wemeetagain left a comment

Choose a reason for hiding this comment

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

🙏 thanks

@wemeetagain wemeetagain merged commit 9950fb8 into ChainSafe:master Apr 24, 2020
@wemeetagain
Copy link
Member

v0.2.0 released under beta tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants