diff icon indicating copy to clipboard operation
diff copied to clipboard

Javascript utility for calculating deep difference, capturing changes, and applying changes across objects; for nodejs and the browser.

Results 42 diff issues
Sort by recently updated
recently updated
newest added

While my findings don't totally agree with what's described in #141, they do show some bugs. In particular, it seems like revert doesn't work at all unless I'm misunderstanding how...

Hi, thanks for the lib, just what I needed to implement undo/redo in my app :) It might be worth mentioning in the readme that `applyChange` and `revertChange` only work...

I'm trying to use `deep-diff` in the Chrome DevTools debugger to compare two objects while sitting paused on a breakpoint, for that I'm trying to use `import()` to load `deep-diff`...

Running the code: ```javascript const { DeepDiff } = require("deep-diff") const foo = { [Symbol.iterator]: "Let's pretend this is an iterator" } const bar = { bar: "Random prop" }...

Sometimes you just want to know if two things differ deeply, but aren't interested in the details. A diff mode that returns a boolean and aborts early would perform much...

enhancement

It would be nice to have a new diff type indicator for mismatched constructors. **kind**: 'C' **path**, is set as they would be for 'E' differences **lhs** is the value...

enhancement

These comparisons should all report some difference, but in fact do not: ```JS diff({}, Object.create(null)) // === undefined diff({}, Object.create({})) // === undefined var F = function(){}; diff({}, new F);...

enhancement

Hi guys, lhs object returned below is always reversed(upside down). Is there a simple way to reverse it? observableDiff(lhs, rhs, function (d) { applyChange(lhs, rhs, d); }); return lhs

I'm trying to only list structural differences, so I'm not interested in the text content. Is there a more efficient way of filtering them out than the following? (I know...

This is not really an issue. Just a room for improvement. I did a performance comparisson between `deep-diff` and `fast-json-patch` diff algorithms, and `fast-json-patch` is way faster. Would be nice...

enhancement