Releases: Starcounter-Jack/JSON-Patch
Releases · Starcounter-Jack/JSON-Patch
Performance improvement for `compare` and `generate`
- Huge performance improvement for
compare
andgenerate
of the same objects - #149 thanks to @KamranAsif
1.1.6
Respect toJSON method
generate
now respects each node.toJSON
method (#145 , thanks @EricBourland)
Add ES6 modules support
Used as such:
import jsonpatch from 'fast-json-patch';
Add "change" event listener back again
-
add dirty checking on "change" event (Palindrom/Palindrom#106)
This becomes obsolete when we switch to ES6 Proxy, but it will take some time still
-
add CLI tests and benchmark, integrate with Travis CI
Bug fixes
Fixed:
- #83 compare function does not distinguish between 0 and empty string - by @mweathers (a471f21)
- #123 Undefined fields show as removed when using compare - by @arosequist (524c7cf)
More checks for `.validate`
Validate now check for paths that does not start with /
- #77
1.1.0
- Restore observing
keydown
andmousedown
events.
So it aligns with already supportedkeyup
andmouseup
- Palindrom/Palindrom#98
(9240699)
PS. command line tests are not running due to jasmine/jasmine-npm#88
Minor fixes
OriginalEvent
and__extends
globals were moved to local scope - #120 (481efa4)//# sourceMappingURL=json-patch-duplex.js.map
line was removed from compiled JS files - #117 8d0666b- README.md and CONTRIBUTING.md updates c9bfdf7...4611c98
1.0.0
- change the way how
undefined
value is JS object is treated. Now, it will act as inJSON.stringify
. See https://github.com/Starcounter-Jack/JSON-Patch#undefineds-js-to-json-projection for details (closes #105, #90, #60, #32) - change the way how dirty checking is triggered. Now only
mouseup
andkeyup
events trigger dirty checking. There is no additional interval-based checking (#103, #98) - use the same code for
_objectKeys
method injson-patch
andjson-patch-duplex
(#85) - change return value of
apply
. Now it's an array with results of respective patches. Test results are booleans, replace, move and remove operations has removed elemnts as results.