javascript-typescript-langserver icon indicating copy to clipboard operation
javascript-typescript-langserver copied to clipboard

fix(deps): update dependency fast-json-patch to ^2.2.1

Open renovate[bot] opened this issue 6 years ago • 1 comments

This PR contains the following updates:

Package Type Update New value References Sourcegraph
fast-json-patch dependencies minor ^2.2.1 source code search for "fast-json-patch"

Release Notes

Starcounter-Jack/JSON-Patch

v2.2.1

Compare Source

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

Compare Source

New feature:

  • Ability to generate test operations for original values in the first object, also known as "invertible" operations. Search fro the word invertible in README.md for details about usage (PR #​228, PR #​226).

Code quality:

  • Replace deep-equal with fast-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

Compare Source

  • applyOperation and applyReducer now 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 = false to all applyX functions. #​219.

  • Bad behaviour when you replace an object with an array is now fixed. See #​205.

v2.0.7

Compare Source

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.

See #​208 & #​212

v2.0.6

Compare Source

  • Ignore tsconfig.json when publishing to NPM 5236d81, thanks @​LinusU!
  • add param mutateDocument in function applyPatch that defaults to true. If you set it to false, your object will be cloned before applying any operations. 688be37, thanks @​chochihim!

v2.0.5

Compare Source

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

Compare Source

  • Validate on applyPatch when validation is enabled (fix #​186)

v2.0.3

Compare Source

  • Fix #​184 thanks @​sgoll!
  • Add build command to avoid needing to install webpack and tsc globally.

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.

renovate[bot] avatar Apr 02 '19 03:04 renovate[bot]

Codecov Report

Merging #588 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           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 data Powered by Codecov. Last update 48bfc53...4abf45e. Read the comment docs.

codecov-io avatar Apr 02 '19 10:04 codecov-io