Skip to content
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

chore: remove peer-info usage #70

Merged
merged 2 commits into from
Apr 23, 2020
Merged

Conversation

vasco-santos
Copy link
Collaborator

@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

BREAKING CHANGE: using new topology api with peer-id instead of peer-info and new pubsub internal peer data structure

Needs:

@codecov-io
Copy link

codecov-io commented Apr 22, 2020

Codecov Report

Merging #70 into master will increase coverage by 1.62%.
The diff coverage is 84.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #70      +/-   ##
==========================================
+ Coverage   82.75%   84.38%   +1.62%     
==========================================
  Files           8        8              
  Lines         493      493              
==========================================
+ Hits          408      416       +8     
+ Misses         85       77       -8     
Impacted Files Coverage Δ
src/index.js 80.18% <75.00%> (-0.47%) ⬇️
src/heartbeat.js 83.09% <100.00%> (+12.67%) ⬆️
src/pubsub.js 86.07% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f2b67a2...ed2730f. Read the comment docs.

BREAKING CHANGE: using new topology api with peer-id instead of peer-info and new pubsub internal peer data structure
@vasco-santos
Copy link
Collaborator Author

Note: This should be released with a beta tag until we bubble everything up for js-libp2p and release everything. Then we will update the tags to latest.

npx aegir release --type minor --dist-tag beta

@vasco-santos vasco-santos marked this pull request as ready for review April 23, 2020 07:33
jacobheun
jacobheun previously approved these changes Apr 23, 2020
Copy link
Collaborator

@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.

This LGTM for a beta tagged release.

wemeetagain
wemeetagain previously approved these changes Apr 23, 2020
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

@wemeetagain wemeetagain dismissed stale reviews from jacobheun and themself via 5177489 April 23, 2020 15:00
@wemeetagain wemeetagain merged commit 1970522 into master Apr 23, 2020
@wemeetagain wemeetagain deleted the chore/remove-peer-info-usage branch April 23, 2020 15:45
@wemeetagain
Copy link
Member

Released v0.4.0 w beta tag

fryorcraken pushed a commit to fryorcraken/js-libp2p-gossipsub that referenced this pull request Aug 2, 2022
All uses of node Buffers have been replaced with Uint8Arrays

BREAKING CHANGES:

- The `.data`, `.from` and `.seq` properties of messages used to be
  node Buffers, now they are Uint8Arrays
- All deps of this module now use Uint8Arrays instead of Buffers
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.

4 participants