Releases: hildjj/node-cbor
Diagnose null, preferMap
Fix null converter issue
Passing in {tags: {1: null}}
did not override built-in converter as the docs promised. This is now fixed.
Requires node16, adds SharedValue support
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
Fix MIN_SAFE_INTEGER
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:
- Added React-Native helper package. See cbor-rn-prereqs
v8.0.0
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
Add omitUndefinedProperties, RFC 8746
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
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
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.