Open
Description
I don't think that https://github.com/intelie/immutable-js-diff/blob/master/tests/sequenceDiff.test.js#L71 is the desired behavior; rather, it should be:
[{op: 'remove', path: '/2'},
{op: 'add': path: '/3', value: 5}]
Note that this diff does not include 4
, which did not change. Why this matters:
- If
4
was instead some large data structure, the patch would be unnecessarily large - If we were using the patches to track the history of a single item, this patch would introduce a discontinuity in the history of
4
.
Metadata
Metadata
Assignees
Labels
No labels