Immutable.js Diff
High Fidelity diffs for Immutable.JS objects
Forked from immutable-diff which focuses more on RFC 6902 style patches, requiring string values for the paths.
immutable-diff:
Changes fromop.path
is now anImmutable.List
rather than a patch style path, usable for.updateIn
- Support for complex values as keys
null
&undefined
are considered separate values- Babel/ES6 codebase
API:
diff(a, b)
Creates a diff between a
and b
var Immutable = ;var diff = ;var map1 = Immutable;var map2 = Immutable;;// List [ Map { op: "add", path: ["d"], value: 4 } ]var map1 = Immutable;var map2 = Immutable;
Operations
add
A new key was added
remove
An existing key was removed
replace
An existing key was replaced with a new value
License
MIT