immutable-json-patch
Advanced tools
Changelog
2023-12-13, version 6.0.0
JSONValue
type, use generics instead.Changelog
2023-07-07, version 5.1.3
main
field not pointing to the CommonJS version of the library.window.immutableJSONPatch
in the browser.Changelog
2023-01-12, version 5.1.2
exports
object to package.json to improve support different bundlers.Changelog
2022-11-17, version 5.1.1
existsIn
not handling recursive paths containing null
.Changelog
2022-09-13, version 5.0.0
JSONData
has been renamed to JSONValue
.json
in the returned objects from callbacks
JSONPatchOperations.before
and RevertJSONPatchOptions.before
has been
renamed to document
.isJSONObject
returning true for class instances.Changelog
2022-08-22, version 4.0.1
Changelog
2022-08-22, version 4.0.0
"main"
field in package.json
to point to
the ES Module entry point instead of CommonJS.isJSONObject
and isJSONArray
.Changelog
2022-07-01, version 3.0.0
before
and after
hooks of the function immutableJSONPatch
now pass a JSONPatchOperation
instead of a PreprocessedJSONPatchOperation
.parseJSONPointerWithArrayIndices
(introduced in
v2.0.0) again, and changing JSONPath
to always return an array with strings.
Reason is that a mix of strings and numbers is fragile. It leads to bad usage
patterns and can easily cause bugs.before
callback for revertJSONPatch
.parsePath
and parseFrom
, isJSONPatchOperation
,
isJSONPatchAdd
, isJSONPatchRemove
, isJSONPatchReplace
,
isJSONPatchCopy
, isJSONPatchMove
, isJSONPatchTest
.