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

fix!: update stream types #423

Merged
merged 1 commit into from
Apr 20, 2023

Conversation

achingbrain
Copy link
Collaborator

libp2p streams are now explicit about the types of sync/sources they provide, showing that they are AsyncGenerators and not just AsyncIterables.

Refs: achingbrain/it-stream-types#45

BREAKING CHANGE: the type of the source/sink properties have changed

libp2p streams are now explicit about the types of sync/sources they provide, showing that they are `AsyncGenerator`s and not
just `AsyncIterable`s.

Refs: achingbrain/it-stream-types#45

BREAKING CHANGE: the type of the source/sink properties have changed
@achingbrain achingbrain requested a review from a team as a code owner April 19, 2023 14:55
@what-the-diff
Copy link

what-the-diff bot commented Apr 19, 2023

PR Summary

  • Update @libp2p/interface-connection
    Upgrade the dependency from version 4.0.0 to 5.0.1
  • Update @libp2p/interface-connection-manager
    Upgrade the dependency from version 1.3.0 to 2.1.1
  • Update @libp2p/interface-pubsub
    Upgrade the dependency from version 3.0.0 to 4.0.0
  • Optimize encode() function
    Replace the encode() function with a more efficient lambda implementation in src/stream.ts on lines 27 and 63

@achingbrain achingbrain changed the title deps!: update stream types fix!: update stream types Apr 19, 2023
@codecov-commenter
Copy link

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.02 ⚠️

Comparison is base (cea6e97) 82.98% compared to head (42e0d1a) 82.96%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #423      +/-   ##
==========================================
- Coverage   82.98%   82.96%   -0.02%     
==========================================
  Files          48       48              
  Lines       11874    11878       +4     
  Branches     1280     1281       +1     
==========================================
+ Hits         9854     9855       +1     
- Misses       2020     2023       +3     
Impacted Files Coverage Δ
src/stream.ts 97.46% <100.00%> (+0.13%) ⬆️

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@wemeetagain wemeetagain merged commit 6761c6e into ChainSafe:master Apr 20, 2023
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.

3 participants