⚠️ BREAKING CHANGES IN THIS RELEASE ⚠️
- Redesigned API to align with the
JSON
API in ECMAScript- Dropped support in the decoder for
taggedValue
andsimpleValue
callbacks encode
now takes an optionalreplacer
function argument to align withJSON.stringify
decode
now takes an optionalreviver
function argument to align withJSON.parse
decode
not takes an optional object to setmode
anddictionary
behaviors- Aliases of
parse
fordecode
andbinarify
forencode
are now exported - Added
Sequence
class for encoding and decoding CBOR Sequences - Improved
TaggedValue
to acceptnumber
orbigint
tags - Improved
SimpleValue
for use as a round-trip encode/decode mechanism
- Dropped support in the decoder for
- Updates to decode and encode algorithms to conform very closely to RFC 8949, the latest CBOR revision
- Adds lots of other RFCs
- Typed Arrays (RFC 8746)
- CBOR Sequences (RFC 8742)
- Strictness (required for COSE RFC 8152)
- Support for
bigint
; applications will now getbigint
for integers outside the ECMAScriptnumber
safe range - Support for
Map
; applications may use Map to encode and decode non-string keys - Refactored code to target Deno
- Code is transpiled for Node.js using both ES Modules and CommonJS
What's Changed
- Add support for Typed Arrays for issue #13 by @glenne in #14
- Prerelease v1.0.0 by @aaronhuggins in #20
- Fix additional syntax issues in release workflow by @aaronhuggins in #21
- Apply fixes to release workflow by @aaronhuggins in #22
- Merge in workflow changes and a pre-release versin bump by @aaronhuggins in #23
- Bug-fixes and documentation by @aaronhuggins in #24
- Fix NPM support by @aaronhuggins in #25
- Support lexicographical sorting for full RFC 8949 by @aaronhuggins in #28
New Contributors
Full Changelog: 0.4.0...1.0.0