Skip to content

Releases: blancks/fast-jsonpatch-php

2.1.0

19 Dec 00:49
f431de7
Compare
Choose a tag to compare

This release provides the ability to customize the JSON Pointer parsing and validation behaviour with a custom class that implements \blancks\JsonPatch\json\pointer\JsonPointerHandlerInterface.

This should help using the package for other specifications that are built on top of RFC-6902, such as RFC-7644 which requires JSON Pointer tokens to use a dot as separator.

2.0.0

06 Nov 22:43
5168a77
Compare
Choose a tag to compare
  • The package has been fully redesigned on the core concepts of the previous version
  • Each of the class components can be extended or replaced with custom patch operations or with a custom json parser
  • Class public API has been changed for simplicity thanks to a more clear naming scheme
  • Documents that consists of scalar value only are now supported
  • getContextDocument method has been dropped from FastJsonPatchException for performance reasons

Full Changelog: v1.2.3...v2.0.0

1.2.3

09 Sep 23:25
acd5efc
Compare
Choose a tag to compare

JSON Patch operations are now atomic!

Full Changelog: v1.1.3...v1.2.3

1.1.3

29 Aug 02:19
Compare
Choose a tag to compare

Little patch release but huge! Performance of the class has been improved up to 25% margin!
Comparison benchmarks is provided here.

Full Changelog: v1.1.2...v1.1.3

1.1.2

27 Aug 07:22
Compare
Choose a tag to compare
  • All class Exceptions are now thrown as FastJsonPatchException instance
  • FastJsonPatchException got two new methods:
    • getContextPointer which returns the faulty JSON pointer as context for the error if available
    • getContextDocument which returns the JSON string of the target portion of the document

Full Changelog: v1.0.2...v1.1.2