Skip to content

Releases: hildjj/node-cbor

Diagnose null, preferMap

31 Jan 16:13
1967cd4
Compare
Choose a tag to compare

Did not update dependencies, that is going to get harder and harder going forward since nofilter went ESM.

Fix null converter issue

21 Jul 19:00
9ae2526
Compare
Choose a tag to compare

Passing in {tags: {1: null}} did not override built-in converter as the docs promised. This is now fixed.

Requires node16, adds SharedValue support

14 May 16:27
593c551
Compare
Choose a tag to compare

Changed

  • Breaking: Node 16 now required.

Added

  • SharedValueEncoder, which implements value-sharing with tags 28 and 29
  • Typescript type definitions for cbor-web

Fixed

  • All dependencies brought up to date where possible. nofilter held back, pending switching to ESM.

Optionally prevent duplicate keys

09 Nov 17:47
0b4f6e3
Compare
Choose a tag to compare

New feature:

  • On decode, specify preventDuplicateKeys: true in the options to have the decoder throw an error if there are duplicate keys in a CBOR map. (See #161, thanks to @KubqoA)

Bug fixes:

  • Make react-native-cli work (See #162)
  • Update all dependencies

Fix MIN_SAFE_INTEGER

29 Sep 18:55
815ba89
Compare
Choose a tag to compare

Bugs:

  • Fixed #151: Update RFC link in readme
  • Fixed #155: The number -2^53 should be encoded as a float, not an integer

Minor:

  • Update dependencies
  • Linting updates

Features:

v8.0.0

04 Aug 22:02
93d1147
Compare
Choose a tag to compare

breaking: now requires node 12+
breaking: removed bigfloat and bigdecimal support. Moved to cbor-bigdecimal package
minor: upgrade to ava 4. Biggest issue was removal of .cb() tests in favor of promises, which added a p-event dependency.
minor: updated and improved typescript type definitions
minor: removed all uses of util and node-inspect-extracted from the library and dependents
minor: make all tests run on Windows, build steps run on Windows
minor: bring lint rules up to date

v7.0.4

14 Mar 20:38
31e1539
Compare
Choose a tag to compare

Works on Safari

Add omitUndefinedProperties, RFC 8746

22 Feb 07:06
119733b
Compare
Choose a tag to compare

When encoding objects or Maps, and the option omitUndefinedProperties is given, omit properties whose value is `undefined. Also added partial support for RFC 8746.

Lint fixes found a few minor issues

15 Feb 21:49
98db029
Compare
Choose a tag to compare

When migrating to a shared, more-comprehensive set of lint rules (see repo), I found a few very minor issues (e.g. places where I was using == and meant ===). Hopefully no impactful changes here.

cbor-web and a monorepo

10 Feb 23:59
033a5d3
Compare
Choose a tag to compare

For most of you trying to use cbor on the web, you should now depend on cbor-web instead. It's pre-minified, batteries-included. If you are using some of the other pre-reqs that cbor-web does (buffer, process, etc.), then you can look at the examples in the repo to get ideas of how to include cbor directly.