Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

fix: replace node Buffers with Uint8Arrays #187

Merged
merged 5 commits into from
Aug 4, 2020

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented Jul 30, 2020

Relaxes checks on .Data to allow for Uint8Arrays in place of
node Buffers.

Depends on:

BREAKING CHANGES:

Relaxes checks on `.Data` to allow for `Uint8Array`s in place of
node `Buffer`s.

BREAKING CHANGES:

- `dagNode.Data` can now be a `Uint8Array`
@codecov
Copy link

codecov bot commented Jul 30, 2020

Codecov Report

Merging #187 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #187      +/-   ##
==========================================
+ Coverage   97.54%   97.57%   +0.02%     
==========================================
  Files          16       16              
  Lines         204      206       +2     
==========================================
+ Hits          199      201       +2     
  Misses          5        5              
Impacted Files Coverage Δ
src/resolver.js 100.00% <ø> (ø)
src/serialize.js 100.00% <ø> (ø)
src/dag-link/dagLink.js 100.00% <100.00%> (ø)
src/dag-node/dagNode.js 95.12% <100.00%> (+0.12%) ⬆️
src/dag-node/rmLink.js 88.88% <100.00%> (ø)
src/dag-node/sortLinks.js 100.00% <100.00%> (ø)
src/util.js 100.00% <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 01d6039...fb8a688. Read the comment docs.

Copy link
Member

@vmx vmx left a comment

Choose a reason for hiding this comment

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

Wow @achingbrain, you are moving fast (this is sooo good). I'll approve ones deps are ready.

Copy link
Member

@rvagg rvagg left a comment

Choose a reason for hiding this comment

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

👍 pending CID dep change

Remove repo, block service and other unecessary deps.
@achingbrain achingbrain requested a review from vmx August 4, 2020 14:18
@vmx vmx merged commit a1c73bc into master Aug 4, 2020
@vmx vmx deleted the fix/replace-node-buffers-with-unit8arrays branch August 4, 2020 15:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants