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

feat: support Uint8ArrayList #26

Merged
merged 4 commits into from
Aug 3, 2022

Conversation

mpetrunic
Copy link
Contributor

@mpetrunic mpetrunic commented Aug 1, 2022

  • add type support for streams of Uint8ArrayLists
  • rest returns unwrapped source
  • read returns Uint8ArrayList which is breaking change, should I subArray into Uint8Array?
  • switched pushable to objectMode until it-pushable supports Uint8ArrayList natively

@mpetrunic mpetrunic changed the title feat: support Uint8ArrayList feat!: support Uint8ArrayList Aug 1, 2022
@achingbrain
Copy link
Collaborator

switched pushable to objectMode

I think we should land alanshaw/it-pushable#30 first so this isn't necessary, otherwise we lose the ability to limit memory usage by inbound/outbound streams in libp2p.

@codecov-commenter
Copy link

codecov-commenter commented Aug 2, 2022

Codecov Report

Merging #26 (34cf7a2) into master (596259e) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master       #26   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          202       232   +30     
  Branches        23        25    +2     
=========================================
+ Hits           202       232   +30     
Flag Coverage Δ
chrome 100.00% <ø> (ø)
node 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/index.ts 100.00% <100.00%> (ø)
test/index.spec.ts 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us.

Copy link
Collaborator

@achingbrain achingbrain left a comment

Choose a reason for hiding this comment

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

LGTM - if you merge the two suggestions below it becomes a non-breaking change.

src/index.ts Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
@mpetrunic mpetrunic changed the title feat!: support Uint8ArrayList feat: support Uint8ArrayList Aug 3, 2022
@achingbrain achingbrain merged commit 0fc8e5d into jacobheun:master Aug 3, 2022
@mpetrunic mpetrunic deleted the feat/support-uint8arraylist branch August 3, 2022 13:23
github-actions bot pushed a commit that referenced this pull request Aug 3, 2022
## [4.1.0](v4.0.1...v4.1.0) (2022-08-03)

### Features

* support Uint8ArrayList ([#26](#26)) ([0fc8e5d](0fc8e5d))
@github-actions
Copy link

github-actions bot commented Aug 3, 2022

🎉 This PR is included in version 4.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants