Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
immutable-diff
Advanced tools
Hi-Fi diffing for Immutable.js data structures, forked from immutablediff
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.
op.path
is now an Immutable.List
rather than a patch style path, usable for .updateIn
null
& undefined
are considered separate valuesCreates a diff between a
and b
var Immutable = require('immutable');
var diff = require('immutable-diff');
var map1 = Immutable.Map({a:1, b:2, c:3});
var map2 = Immutable.Map({a:1, b:2, c:3, d: 4});
diff(map1, map2);
// List [ Map { op: "add", path: ["d"], value: 4 } ]
var map1 = Immutable.Map({a:1, b:2, c:3});
var map2 = Immutable.Map({a:1, b:2, c:3, d: 4});
add
A new key was added
remove
An existing key was removed
replace
An existing key was replaced with a new value
MIT
FAQs
Hi-Fi diffing for Immutable.js data structures, forked from immutablediff
The npm package immutable-diff receives a total of 606 weekly downloads. As such, immutable-diff popularity was classified as not popular.
We found that immutable-diff demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.