Vigia

cborg を 6.x から 7.x へアップグレード

cborg 6.2.1 と 7.0.0 の公開 API を、TypeScript の型から自動的に比較したものです。シグネチャの変更は破壊的変更の候補であり、確定ではありません。

概要

削除されたインポートパス0
削除されたエクスポート0
変更されたシグネチャ0
削除されたクラス/インターフェースのメンバー2
変更されたクラス/インターフェースのメンバー0
新たに非推奨0
要件の変更(engines、peer 依存関係)0
新しいエクスポート0

削除されたエクスポート

検出されませんでした。

変更されたシグネチャ

検出されませんでした。

削除されたクラス/インターフェースのメンバー

memberimport変更前
ByteWriter.chunkscborg/interface(number[] | ByteView<ArrayBufferLike>)[]
DecodeOptions.strictUtf8cborg/interfaceboolean | undefined

変更されたクラス/インターフェースのメンバー

検出されませんでした。

新たに非推奨

検出されませんでした。

要件の変更(engines、peer 依存関係)

検出されませんでした。

これらのバージョン間の changelog

パッケージ作者が公開したテキストをそのまま表示しています。

7.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](https://github.com/rvagg/cborg/issues/237)) ([bc02bfd](https://github.com/rvagg/cborg/commit/bc02bfde4569bd1639ef5263e176b5215acff614))
* **cli:** annotate tags and decode CIDs in diagnostic output ([1db60bc](https://github.com/rvagg/cborg/commit/1db60bca45f78f8c951d897fea12b86c332d57cb))
* **cli:** expand tag 24 embedded CBOR in diagnostic output ([2a66a4d](https://github.com/rvagg/cborg/commit/2a66a4d3e8dfa711384b1270a6f51cf3483c4dd5))


### Bug Fixes

* **cli:** make diagnostic output consistent and reject malformed input ([#240](https://github.com/rvagg/cborg/issues/240)) ([e0b5a0d](https://github.com/rvagg/cborg/commit/e0b5a0de53c1e9b4f8d6048983c7edfe1ce40bc7))
* **cli:** validate --width, reject lossy JSON output, drop stack traces ([#238](https://github.com/rvagg/cborg/issues/238)) ([60f70da](https://github.com/rvagg/cborg/commit/60f70da2a5afc4b80e9f70691c6bbfa14e791908))
* **decode:** reject duplicate tagged-Map keys before values ([cc8d7cb](https://github.com/rvagg/cborg/commit/cc8d7cb76f76aa27ee9c5bf793c85bd8f87f8d75))
* **decode:** rename strictUtf8 to rejectInvalidUtf8 ([#234](https://github.com/rvagg/cborg/issues/234)) ([fa82030](https://github.com/rvagg/cborg/commit/fa82030d5cabef6a730ad3e6f2c4a1273a8002f2))
* **encode:** encode all float16 subnormals as float16 ([#236](https://github.com/rvagg/cborg/issues/236)) ([3b0ad88](https://github.com/rvagg/cborg/commit/3b0ad88f028ebc8686273755524194ae101543c6))
* **encode:** reject duplicate map keys and invalid encode inputs ([#233](https://github.com/rvagg/cborg/issues/233)) ([1ca3eb7](https://github.com/rvagg/cborg/commit/1ca3eb73c933f59c7d2a60853024159abaee8695))
* **encode:** unbox Number, String, Boolean and BigInt objects ([#23

このデータを AI エージェントに渡す

Vigia は無料の MCP サーバーです。コーディングエージェントがコードを書く前に、バージョン・破壊的変更・脆弱性を確認できます。登録も API キーも不要です。

claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp

Cursor に追加VS Code に追加★ GitHub でスターを付ける

その他の MCP クライアント
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }

エージェント用スキル (SKILL.md):Vigia を使うタイミングをエージェントに伝えます · プルリクエスト用 GitHub Action

よくある質問

cborg を 6 から 7 にアップグレードする際の破壊的変更は?

cborg 6.2.1 と 7.0.0 の間で、Vigia は削除されたエクスポートを 0 件、変更されたシグネチャを 0 件、削除または変更されたクラス/インターフェースのメンバーを 2 件検出しました。

cborg 7 で非推奨になったものは?

cborg 7.0.0 では 0 件のエクスポートまたはメンバーが新たに非推奨になりました。

エージェント向け

GET https://vigia.coredls.cloud/v1/packages/npm/cborg/upgrade?from=6.2.1&to=7.0.0