digitalbazaar / cborld

A Javascript CBOR-LD processor for web browsers and Node.js apps.
https://json-ld.github.io/cbor-ld-spec/
BSD 3-Clause "New" or "Revised" License
16 stars 12 forks source link

Refactor and reimplement CBOR-LD. #34

Closed dlongley closed 3 years ago

dlongley commented 3 years ago

This PR includes the new implementation of CBOR-LD that is able to encode JSON-LD more generally. Terms must be still be defined (unless using keywords) in JSON-LD, however, embedded contexts and scoped contexts (type-scoped and property-scoped) are now supported. This version does not support changing the @propagate default settings for type-scoped or property-scoped contexts, which is uncommon. See changelog for some other notes.

codecov-io commented 3 years ago

Codecov Report

Merging #34 (b676365) into main (990528d) will increase coverage by 3.12%. The diff coverage is 79.13%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #34      +/-   ##
==========================================
+ Coverage   75.29%   78.41%   +3.12%     
==========================================
  Files          18       29      +11     
  Lines         421      607     +186     
==========================================
+ Hits          317      476     +159     
- Misses        104      131      +27     
Impacted Files Coverage Δ
lib/codecs/CborldDecoder.js 0.00% <0.00%> (ø)
lib/codecs/CborldEncoder.js 0.00% <0.00%> (ø)
lib/codecs/HttpUrlDecoder.js 0.00% <0.00%> (ø)
lib/codecs/HttpUrlEncoder.js 0.00% <0.00%> (ø)
lib/codecs/UuidUrnDecoder.js 25.00% <25.00%> (ø)
lib/codecs/UuidUrnEncoder.js 33.33% <33.33%> (ø)
lib/codecs/XsdDateTimeEncoder.js 62.50% <62.50%> (ø)
lib/codecs/XsdDateTimeDecoder.js 66.66% <66.66%> (ø)
lib/decode.js 65.21% <68.18%> (-1.45%) :arrow_down:
lib/Decompressor.js 71.57% <71.57%> (ø)
... and 42 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 990528d...b676365. Read the comment docs.