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 Uint8ArrayLists in the same way as Uint8Arrays #30

Merged
merged 5 commits into from
Aug 2, 2022

Conversation

achingbrain
Copy link
Collaborator

@achingbrain achingbrain commented Aug 2, 2022

In order to support no-copy operations, relax the requirement for Uint8Arrays to just require a .byteLength property since that's all we access.

Generics can then be used to ensure the correct value type is used as normal.

Everything still defaults to Uint8Arrays so this is non-breaking.

In order to support no-copy operations, relax the requirement for
`Uint8Array`s to just require a `.byteLength` property since that's
all we access.

Generics can then be used to ensure the correct value type is used
as normal.
@achingbrain
Copy link
Collaborator Author

cc @mpetrunic

@codecov
Copy link

codecov bot commented Aug 2, 2022

Codecov Report

Merging #30 (4a9a351) into master (f45aee3) will increase coverage by 0.38%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #30      +/-   ##
==========================================
+ Coverage   96.58%   96.97%   +0.38%     
==========================================
  Files           3        3              
  Lines         733      760      +27     
  Branches      170      170              
==========================================
+ Hits          708      737      +29     
+ Misses         25       23       -2     
Flag Coverage Δ
chrome 100.00% <ø> (ø)
node 96.97% <100.00%> (+0.38%) ⬆️

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

Impacted Files Coverage Δ
src/fifo.ts 86.95% <100.00%> (+0.03%) ⬆️
src/index.ts 96.66% <100.00%> (+0.07%) ⬆️
test/test.spec.ts 100.00% <100.00%> (ø)

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

@achingbrain
Copy link
Collaborator Author

Refs: jacobheun/it-handshake#26

src/fifo.ts Show resolved Hide resolved
src/fifo.ts Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
@achingbrain achingbrain merged commit 7bae368 into master Aug 2, 2022
github-actions bot pushed a commit that referenced this pull request Aug 2, 2022
## [3.1.0](v3.0.0...v3.1.0) (2022-08-02)

### Features

* support Uint8ArrayLists in the same way as Uint8Arrays ([#30](#30)) ([7bae368](7bae368))
@github-actions
Copy link

github-actions bot commented Aug 2, 2022

🎉 This PR is included in version 3.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.

2 participants