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

fix: replace node buffers with uint8arrays #70

Merged
merged 2 commits into from
Aug 4, 2020

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented Aug 4, 2020

This module now accepts Uint8Arrays as well as node Buffers and
returns Uint8Arrays. Internally it converts non-Buffers into Buffers
because the ethereum libs require that.

BREAKING CHANGES:

@achingbrain achingbrain requested review from vmx and rvagg August 4, 2020 15:15
This module now accepts Uint8Arrays as well as node Buffers and
returns Uint8Arrays.  Internally it converts non-Buffers into Buffers
because the ethereum libs require that.

BREAKING CHANGES:

- `util.serialize` returns a `Uint8Array`
- `util.cid` returns `CID`s with a breaking API change - see multiformats/js-cid#117 for changes
@achingbrain achingbrain changed the title This module now accepts Uint8Arrays as well as node Buffers and fix: replace node buffers with uint8arrays Aug 4, 2020
@achingbrain achingbrain force-pushed the fix/replace-buffers-with-uint8arrays branch from b2173cf to 759e76d Compare August 4, 2020 15:16
@codecov
Copy link

codecov bot commented Aug 4, 2020

Codecov Report

Merging #70 into master will increase coverage by 0.11%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #70      +/-   ##
==========================================
+ Coverage   84.79%   84.90%   +0.11%     
==========================================
  Files           8        8              
  Lines         263      265       +2     
==========================================
+ Hits          223      225       +2     
  Misses         40       40              
Impacted Files Coverage Δ
src/resolver.js 95.65% <100.00%> (-0.19%) ⬇️
src/util.js 90.90% <100.00%> (+0.66%) ⬆️

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 a5d4094...21074fd. Read the comment docs.

@vmx vmx merged commit 8c999ba into master Aug 4, 2020
@vmx vmx deleted the fix/replace-buffers-with-uint8arrays branch August 4, 2020 16:23
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.

2 participants