ipld / js-ipld-ethereum

JavaScript Implementation of All Ethereum IPLD formats
MIT License
40 stars 11 forks source link

feat: new IPLD Format API #51

Closed vmx closed 5 years ago

vmx commented 5 years ago

BREAKING CHANGE: The API is now async/await based

There are numerous changes, the most significant one is that the API is no longer callback based, but it using async/await.

For the full new API please see the IPLD Formats spec.

codecov[bot] commented 5 years ago

Codecov Report

Merging #51 into master will increase coverage by 2.52%. The diff coverage is 99.21%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #51      +/-   ##
==========================================
+ Coverage   96.84%   99.37%   +2.52%     
==========================================
  Files          22       20       -2     
  Lines         792      635     -157     
==========================================
- Hits          767      631     -136     
+ Misses         25        4      -21
Impacted Files Coverage Δ
eth-state-trie/index.js 100% <100%> (ø) :arrow_up:
util/visibility.js 100% <100%> (ø)
eth-tx/index.js 100% <100%> (ø) :arrow_up:
eth-state-trie/test/resolver.spec.js 100% <100%> (+11.5%) :arrow_up:
eth-block/index.js 100% <100%> (ø) :arrow_up:
eth-tx-trie/index.js 100% <100%> (ø) :arrow_up:
util/createUtil.js 100% <100%> (ø) :arrow_up:
eth-storage-trie/test/resolver.spec.js 100% <100%> (+1.42%) :arrow_up:
eth-storage-trie/index.js 100% <100%> (ø) :arrow_up:
eth-block/test/resolver.spec.js 100% <100%> (+0.78%) :arrow_up:
... and 10 more

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 4eaa791...39fc56f. Read the comment docs.

vmx commented 5 years ago

Closing this one in favour of https://github.com/ipld/js-ipld-ethereum/pull/52.