Skip to content

v0.7.2

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Nov 10:01
v0.7.2
96f1ab4

This release fixes correctness issues in the diff options and the JSON decoding and patch paths.

  • Factorize: moves and copies are now only used when no other operation shifts the array indexes they rely on, and are kept even when the other operations merely replace values or write inside array elements.
  • Equivalent: order-independent hashing no longer sorts (and thereby mutates) the compared arrays, counts duplicate elements correctly, tags values with their type and length to avoid collisions, and supports json.Number natively.
  • Ignores: descendants of ignored fields are preserved during rationalization.
  • MergePatch: a null target is now treated as the merge patch itself.
  • Decoder: fixed object keys and strings containing escape sequences (e.g. escaped backslashes).
  • Apply: errors from failed move and copy operations are now returned instead of being discarded.

Changelog

  • 96f1ab4 fix(factorize): keep move/copy unless other operations shift array indices
  • 81c48b9 fix: factorize moves and copies against stale array indexes
  • 3345670 fix: decode keys with escape sequences in findKey
  • 8b11695 fix: tag hashed values with their type and length
  • ce0b982 fix: handle escaped backslashes when scanning strings
  • b46e8aa fix: return errors of failed move and copy operations in apply
  • 680c270 docs(README): remove Go Report Card badge
  • 7166c04 docs(README): fix inaccuracies and improve clarity
  • 350339a ci: checkout before setup-go to restore module cache
  • 2e79ce8 docs(README): explain why Ignores and LCS options should not be combined
  • bd3059d fix: preserve ignored descendants during rationalization
  • 75133ee fix: treat a null target as the merge patch itself
  • 6e9b8cb fix(hash): sort element digests instead of arrays
  • a1009ff fix: hash json.Number values
  • f2d83c4 fix: count element occurrences in Equivalent array comparison
  • f93efd5 chore(ci): pin goreleaser and golangci-lint versions
  • 40a5579 chore: bump minimum go version to 1.25
  • b4a0226 chore: upgrade dependencies
  • 4a121ee test: add go1.27 and drop go1.24 from test matrix
  • 1d8dd60 chore(ci): bump action versions
  • fc06430 refactor: modernize codebase

New Contributors

Full Changelog: v0.7.1...v0.7.2