Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/obj-diff/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## [Unreleased]

## [0.17.0] - 2026-07-17

### Added
- `stringify(value)` / `parse(wire)` — a general-purpose, type-safe JSON codec for **any** JavaScript value (the counterpart to `serialize`/`deserialize`, which are diff-specific). Built on the same wire codec, so it preserves every supported native type (`Date`, `RegExp`, `Map`, `Set`, all `TypedArray`s, `ArrayBuffer`, `DataView`, `Error`, `URL`, boxed primitives, `BigInt`, `NaN`/`±Infinity`/`-0`, `undefined`, `Temporal`) plus circular references and shared identity among plain objects and arrays, nested to any depth. Symbols, functions, and class instances throw.
- `serialize`/`deserialize` now support **circular references** and **shared identity** for plain objects and arrays. Any plain container reachable by more than one edge within an op is hoisted into the `$refs` table as an `obj`/`arr` entry and referenced by token, so cycles (`obj.self = obj`, mutually linked nodes, self-referential arrays) and objects shared in two places rebuild with the same identity on the far side. Single-use containers still serialize inline as readable JSON, so output for the common case is unchanged. Cycles that run through a `Map`/`Set`/`Error` still throw.
Expand Down
2 changes: 1 addition & 1 deletion packages/obj-diff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"json",
"track"
],
"version": "0.16.0",
"version": "0.17.0",
"author": {
"name": "Thanga Ganapathy",
"email": "ganapathy888@gmail.com",
Expand Down
Loading