Skip to content

Releases: aaronhuggins/cbor-redux

version 1.0.0

15 Jun 18:15
Compare
Choose a tag to compare

⚠️ BREAKING CHANGES IN THIS RELEASE ⚠️

  • Redesigned API to align with the JSON API in ECMAScript
    • Dropped support in the decoder for taggedValue and simpleValue callbacks
    • encode now takes an optional replacer function argument to align with JSON.stringify
    • decode now takes an optional reviver function argument to align with JSON.parse
    • decode not takes an optional object to set mode and dictionary behaviors
    • Aliases of parse for decode and binarify for encode are now exported
    • Added Sequence class for encoding and decoding CBOR Sequences
    • Improved TaggedValue to accept number or bigint tags
    • Improved SimpleValue for use as a round-trip encode/decode mechanism
  • 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 get bigint for integers outside the ECMAScript number 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

New Contributors

Full Changelog: 0.4.0...1.0.0

version 1.0.0-3

25 Apr 02:24
Compare
Choose a tag to compare
version 1.0.0-3 Pre-release
Pre-release

What's Changed

Full Changelog: 1.0.0-2...1.0.0-3

version 1.0.0-2

25 Apr 02:20
Compare
Choose a tag to compare
version 1.0.0-2 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: 0.4.0...1.0.0-2

cbor-redux v0.4.0

21 Sep 19:45
Compare
Choose a tag to compare

Improve support for TaggedValues (#7).

cbor-redux v0.3.0

18 Sep 18:50
Compare
Choose a tag to compare

Add an ES5 export and tests for ES5 polyfills.

cbor-redux v0.2.1

03 Sep 22:47
Compare
Choose a tag to compare

Fixed broken links in documentation.

cbor-redux v0.2.0

03 Sep 20:40
Compare
Choose a tag to compare

Rewritten to TypeScript for Deno support and Node typescript definitions, now as a ponyfill.
Added tests for more scenarios and to bring coverage up.
Modernized syntax and tests.
Added code quality and coverage analysis.
Removed default polyfill behavior and added back as an optional module.

Addresses the following issues:
paroga#27
paroga#24
paroga#21
paroga#13