fix(deps): update dependency fast-json-patch to ^2.2.1
This PR contains the following updates:
| Package | Type | Update | New value | References | Sourcegraph |
|---|---|---|---|---|---|
| fast-json-patch | dependencies | minor | ^2.2.1 | source |
Release Notes
Starcounter-Jack/JSON-Patch
v2.2.1
This patch release fixes a regression introduced in 2.2.0, namely: the default import using ES6 with Webpack/Babel stopped working (#233).
This version fixes the problem by adding an explicit default import.
v2.2.0
New feature:
- Ability to generate test operations for original values in the first object, also known as "invertible" operations. Search fro the word
invertibleinREADME.mdfor details about usage (PR #228, PR #226).
Code quality:
- Replace
deep-equalwithfast-deep-equal(PR #227) - Remove traces for support for legacy browsers which were broken since v2.0.7 (PR #229)
- Fix testing framework
v2.1.0
-
applyOperationandapplyReducernow accept an optional index parameter. This param is used to create more elaborate error messages when invalid operations occur in your patches, #221. -
Error messages are now nicely-formatted, they look like:
The specified index MUST NOT be greater than the number of elements in the array name: OPERATION_VALUE_OUT_OF_BOUNDS index: 1 operation: { "op": "add", "path": "/root/1", "value": "val" } tree: { "root": [] }" -
By default, prototype injection is not allowed and throws an error. If you want to pollute a prototype, you'll need to pass a flag
banPrototypeModifications = falseto allapplyXfunctions. #219. -
Bad behaviour when you replace an object with an array is now fixed. See #205.
v2.0.7
Performance improvements:
add op: 117% faster
remove op: 109% faster
replace: 112% faster
test: 131%
geneate: 110% faster
IE11 support is still 10/10.
IE versions lower than 11 are not supported anymore.
v2.0.6
- Ignore
tsconfig.jsonwhen publishing to NPM5236d81, thanks @LinusU! - add param
mutateDocumentin functionapplyPatchthat defaults totrue. If you set it tofalse, your object will be cloned before applying any operations.688be37, thanks @chochihim!
v2.0.5
Earlier, setting array props wasn't possible:
var obj = [];
jsonpatch.applyPatch(obj, [{op: 'add', path: '/prop', value: 'arrayProp'}])
console.log(obj.prop); // --> undefined
Now it is.
v2.0.4
- Validate on
applyPatchwhen validation is enabled (fix #186)
v2.0.3
Renovate configuration
:date: Schedule: "on the 1st through 7th day of the month" in timezone America/Los_Angeles.
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by WhiteSource Renovate. View repository job log here.
Codecov Report
Merging #588 into master will not change coverage. The diff coverage is
n/a.
@@ Coverage Diff @@
## master #588 +/- ##
=======================================
Coverage 83.09% 83.09%
=======================================
Files 15 15
Lines 2058 2058
Branches 489 423 -66
=======================================
Hits 1710 1710
Misses 346 346
Partials 2 2
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update 48bfc53...4abf45e. Read the comment docs.