Compute the diff between two JSON documents as a series of RFC6902 (JSON Patch) operations
MIT License
Bot releases are visible (Hide)
This release introduces the CompareWithoutMarshal
function, which is similar to the existing Compare
function, but do not marshal/unmarshal to/from JSON the given interface values. As such, it expects that the values consists ONLY of primitive Go types, such as those returned by the json.Unmarshal
function.
Full Changelog: https://github.com/wI2L/jsondiff/compare/v0.5.2...v0.6.0
Published by github-actions[bot] 6 months ago
Full Changelog: https://github.com/wI2L/jsondiff/compare/v0.5.1...v0.5.2
Published by github-actions[bot] 8 months ago
Full Changelog: https://github.com/wI2L/jsondiff/compare/v0.5.0...v0.5.1
Published by github-actions[bot] 12 months ago
This release introduces a new experimental option LCS()
(Longest Common Subsequences) as an alternative method for arrays comparison.
Full Changelog: https://github.com/wI2L/jsondiff/compare/v0.4.0...v0.5.0
Published by github-actions[bot] over 1 year ago
This release focuses on improving the performances of the whole package, and more specifically of the Factorize
and Rationalize
options.
The CompareOpts
and CompareJSONOpts
functions are removed. The replacement for these are the Compare
and CompareJSON
functions, which now take a variadic list of Option
as the third argument.
Full Changelog: https://github.com/wI2L/jsondiff/compare/v0.3.0...v0.4.0
Published by github-actions[bot] over 1 year ago
This release intoduces the MarshalFunc
and UnmarshalFunc
options, which lets you configure custom JSON marshal/unmarshal functions.
Full Changelog: https://github.com/wI2L/jsondiff/compare/v0.4.0-alpha.1...v0.4.0-alpha.2
Published by github-actions[bot] over 1 year ago
This release introduces a new experimental option Ignores()
.
Full Changelog: https://github.com/wI2L/jsondiff/compare/v0.3.0...v0.4.0-alpha.1
Published by github-actions[bot] about 2 years ago
Full Changelog: https://github.com/wI2L/jsondiff/compare/v0.2.0...v0.3.0
Published by github-actions[bot] over 2 years ago
This release brings various performance improvements for all options.
The Differ
type is also now exported and provide a Reset
method, to allow reuse of underlying storage.
A ⚾ playground is also now available, if you want to try the package directly in your browser.
Full Changelog: https://github.com/wI2L/jsondiff/compare/v0.1.1...v0.2.0
Published by wI2L about 3 years ago
1d70c73 chore: cleanup module dependencies and update CI workflow
56b34ca docs: describe gotchas of Kubernetes admission controller example
0c0c14c docs: add comment to patch operation constants block