@lucid-softworks/json-diff
v0.1.0
Published
Produce deterministic JSON Patches between JSON values.
Maintainers
Readme
@lucid-softworks/json-diff
Produces deterministic RFC 6902 patches for JSON-compatible values.
const patch = jsonDiff({ count: 1 }, { count: 2 });
// [{ op: "replace", path: "/count", value: 2 }]Objects are diffed recursively with sorted keys. Arrays are replaced atomically, avoiding unstable or ambiguous move detection.
