JSON-Patch
JSON-Patch copied to clipboard
Lean and mean Javascript implementation of the JSON-Patch standard (RFC 6902). Update JSON documents using delta patches.
Typing for the `deepClone` function is useful to end users since it removes the need for a redundant type cast. For example: ```typescript const newReport = deepClone(currentReport) as IReport; //...
Hey folks! Thanks for an awesome library. Am I misreading the `observe()` documentation regarding the optional callback? Documentation says "When changes are detected, the optional callback is called", but I'm...
``` const validationError = jsonpatch.validate([ { op: 'replace', path: '/firstName', value: 'first' }, // middleName does not exist { op: 'remove', path: '/middleName', value: 'middle' } ], { firstName: 'first',...
Bumps [terser](https://github.com/terser/terser) from 4.1.2 to 4.8.1. Changelog Sourced from terser's changelog. v4.8.1 (backport) Security fix for RegExps that should not be evaluated (regexp DDOS) v4.8.0 Support for numeric separators (million...
Hello, I'm trying to remove an object from an array with a jsonpatch, but after removing I've got a lot of operations on the object performed to shift the elements...
has a slight problem with empty array elements and applying diffs. Lets assume we have we have an array `[1,,3,,5]`, and then create a patch for `[1,,3,,5,,7,,9]`, The patch created...
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4. Changelog Sourced from async's changelog. v2.6.4 Fix potential prototype pollution exploit (#1828) Commits c6bdaca Version 2.6.4 8870da9 Update built files 4df6754 update changelog 8f7f903...
When adding an element to the *beginning* of an array, the resulting patch contains the full contents of the array, thus the storage requirements of the resulting patch scales with...
[](https://github.com/Starcounter-Jack/JSON-Patch#jsonpatchcomparedocument1-any-document2-any-invertible--false-operation)jsonpatch.compare(document1: any, document2: any, invertible = false): Operation[] compare doesn't accept `any` type. It accepts only objects from what I can see. Definitely doesn't accept null or undefined
we at Optibus have an issue with patches that are created when two arrays are compared - the second is a filter result of the first. instead of having a...