Skip to content

deps!: bump cborg from 6.2.1 to 7.0.0 - #150

Merged
rvagg merged 1 commit into
masterfrom
dependabot/npm_and_yarn/cborg-7.0.0
Nov 18, 2026
Merged

rvagg merged 1 commit into
masterfrom
dependabot/npm_and_yarn/cborg-7.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 16, 2026

Copy link
Copy Markdown
Contributor

Bumps cborg from 6.2.1 to 7.0.0.

Release notes

Sourced from cborg's releases.

v7.0.0

⚠ BREAKING CHANGES

  • json: validate numeric fractions and exponents
  • json: cborg/json sorts map keys by UTF-8 bytes, not UTF-16 code units.
  • encode: encoded float16 subnormals that are not powers of two (multiples of 2^-24 below 2^-14) are now a 3 byte f9 item, not 5 bytes. Anyone hashing or comparing those bytes sees different output.
  • encode: anyone encoding boxed Number, String, Boolean or BigInt objects now gets the primitive's bytes. Before, they got an empty map or an index-keyed map (new String('a') gave {"0":"a"}).
  • decode: the decode option strictUtf8 is removed. Callers still passing it get replacement-character decoding instead of an error. Rename it to rejectInvalidUtf8.
  • encode: encode() of a Map whose keys encode to equal bytes, and encodeInto() with a destination that is not a Uint8Array, now throw. Both produced malformed or corrupt output before. Output from
  • encode: type-level only. ByteWriter in cborg/interface drops chunks and requires pushArr(number[]) and pushBytes(Uint8Array). TypeScript code implementing ByteWriter or reading writer.chunks will not compile. No runtime export or encoded output changed.

Features

  • bench: compare base and head in separate processes and comment on PRs (#237) (bc02bfd)
  • cli: annotate tags and decode CIDs in diagnostic output (1db60bc)
  • cli: expand tag 24 embedded CBOR in diagnostic output (2a66a4d)

Bug Fixes

  • cli: make diagnostic output consistent and reject malformed input (#240) (e0b5a0d)
  • cli: validate --width, reject lossy JSON output, drop stack traces (#238) (60f70da)
  • decode: reject duplicate tagged-Map keys before values (cc8d7cb)
  • decode: rename strictUtf8 to rejectInvalidUtf8 (#234) (fa82030)
  • encode: encode all float16 subnormals as float16 (#236) (3b0ad88)
  • encode: reject duplicate map keys and invalid encode inputs (#233) (1ca3eb7)
  • encode: unbox Number, String, Boolean and BigInt objects (#235) (05d4420)
  • json: sort map keys by UTF-8 bytes (24eb632)
  • json: validate numeric fractions and exponents (3d175a0)

Performance Improvements

  • encode: sort short ASCII object keys without tokens (#231) (716b14f)
  • encode: use a flat byte writer, remove the chunk-list Bl (#229) (3d3fbed)

Code Refactoring

  • cli: build diagnostic output from a diagnose() model (970b67f)

Trivial Changes

Changelog

Sourced from cborg's changelog.

7.0.0 (2026-11-13)

⚠ BREAKING CHANGES

  • json: validate numeric fractions and exponents
  • json: cborg/json sorts map keys by UTF-8 bytes, not UTF-16 code units.
  • encode: encoded float16 subnormals that are not powers of two (multiples of 2^-24 below 2^-14) are now a 3 byte f9 item, not 5 bytes. Anyone hashing or comparing those bytes sees different output.
  • encode: anyone encoding boxed Number, String, Boolean or BigInt objects now gets the primitive's bytes. Before, they got an empty map or an index-keyed map (new String('a') gave {"0":"a"}).
  • decode: the decode option strictUtf8 is removed. Callers still passing it get replacement-character decoding instead of an error. Rename it to rejectInvalidUtf8.
  • encode: encode() of a Map whose keys encode to equal bytes, and encodeInto() with a destination that is not a Uint8Array, now throw. Both produced malformed or corrupt output before. Output from
  • encode: type-level only. ByteWriter in cborg/interface drops chunks and requires pushArr(number[]) and pushBytes(Uint8Array). TypeScript code implementing ByteWriter or reading writer.chunks will not compile. No runtime export or encoded output changed.

Features

  • bench: compare base and head in separate processes and comment on PRs (#237) (bc02bfd)
  • cli: annotate tags and decode CIDs in diagnostic output (1db60bc)
  • cli: expand tag 24 embedded CBOR in diagnostic output (2a66a4d)

Bug Fixes

  • cli: make diagnostic output consistent and reject malformed input (#240) (e0b5a0d)
  • cli: validate --width, reject lossy JSON output, drop stack traces (#238) (60f70da)
  • decode: reject duplicate tagged-Map keys before values (cc8d7cb)
  • decode: rename strictUtf8 to rejectInvalidUtf8 (#234) (fa82030)
  • encode: encode all float16 subnormals as float16 (#236) (3b0ad88)
  • encode: reject duplicate map keys and invalid encode inputs (#233) (1ca3eb7)
  • encode: unbox Number, String, Boolean and BigInt objects (#235) (05d4420)
  • json: sort map keys by UTF-8 bytes (24eb632)
  • json: validate numeric fractions and exponents (3d175a0)

Performance Improvements

  • encode: sort short ASCII object keys without tokens (#231) (716b14f)
  • encode: use a flat byte writer, remove the chunk-list Bl (#229) (3d3fbed)

Code Refactoring

  • cli: build diagnostic output from a diagnose() model (970b67f)

Trivial Changes

Commits
  • 8772a3e chore(master): release 7.0.0 (#230)
  • 3d175a0 fix(json)!: validate numeric fractions and exponents
  • cc8d7cb fix(decode): reject duplicate tagged-Map keys before values
  • 970b67f refactor(cli): build diagnostic output from a diagnose() model
  • 24eb632 fix(json)!: sort map keys by UTF-8 bytes
  • 2a66a4d feat(cli): expand tag 24 embedded CBOR in diagnostic output
  • 1db60bc feat(cli): annotate tags and decode CIDs in diagnostic output
  • 784f96e chore(deps): bump rvagg/waxseal from 0.2.1 to 0.2.3 (#241)
  • 14393d2 chore(deps): bump rvagg/waxseal from 0.2.0 to 0.2.1 (#239)
  • e0b5a0d fix(cli): make diagnostic output consistent and reject malformed input (#240)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [cborg](https://github.com/rvagg/cborg) from 6.2.1 to 7.0.0.
- [Release notes](https://github.com/rvagg/cborg/releases)
- [Changelog](https://github.com/rvagg/cborg/blob/master/CHANGELOG.md)
- [Commits](rvagg/cborg@v6.2.1...v7.0.0)

---
updated-dependencies:
- dependency-name: cborg
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Nov 16, 2026

@rvagg rvagg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignoring CI failure, cause of aegir bitrot

There's two important breaking changes in here that will impact dag-json users:

  • json: validate numeric fractions and exponents
  • json: cborg/json sorts map keys by UTF-8 bytes, not UTF-16 code units.

So I'm going to mark this as a semver-major.

@rvagg rvagg changed the title deps: bump cborg from 6.2.1 to 7.0.0 deps!: bump cborg from 6.2.1 to 7.0.0 Nov 18, 2026
@rvagg
rvagg merged commit 03286b6 into master Nov 18, 2026
21 of 25 checks passed
@rvagg
rvagg deleted the dependabot/npm_and_yarn/cborg-7.0.0 branch November 18, 2026 05:17
rvagg pushed a commit that referenced this pull request Nov 18, 2026
Bumps [cborg](https://github.com/rvagg/cborg) from 6.2.1 to 7.0.0.
- [Release notes](https://github.com/rvagg/cborg/releases)
- [Changelog](https://github.com/rvagg/cborg/blob/master/CHANGELOG.md)
- [Commits](rvagg/cborg@v6.2.1...v7.0.0)

BREAKING CHANGE: inherited from cborg, see v7 release notes, can result in different bytes/CIDs for same data due to subtle changes and can reject previously accepted invalid dag-json inputs:
* json: validate numeric fractions and exponents
* json: cborg/json sorts map keys by UTF-8 bytes, not UTF-16 code units.
github-actions Bot pushed a commit that referenced this pull request Nov 18, 2026
## [12.0.0](v11.0.1...v12.0.0) (2026-11-18)

### ⚠ BREAKING CHANGES

* inherited from cborg, see v7 release notes, can result in different bytes/CIDs for same data due to subtle changes and can reject previously accepted invalid dag-json inputs:
* json: validate numeric fractions and exponents
* json: cborg/json sorts map keys by UTF-8 bytes, not UTF-16 code units.

### Dependencies

* bump cborg from 6.2.1 to 7.0.0 ([#150](#150)) ([89e075c](89e075c))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant