json-diff icon indicating copy to clipboard operation
json-diff copied to clipboard

[fix] [102] Fix deep diffing issue for obj in array

Open ProjectBarks opened this issue 1 year ago • 1 comments

Overview Fixes issue as described in #102

By default array replace was not recursively diffing objects in arrays which would cause them to be reported as complete replacements. Instead, this will recursively diff when the number of replacements equal and score is greater than zero.

Changes

  • Fail out of replacement if change has no shared values
  • Allow for recursive diffing if keys only isn't set
  • Bump version since this could break some peoples output from past expectations

ProjectBarks avatar Apr 03 '24 00:04 ProjectBarks

@ewoudenberg if you could review :)

ProjectBarks avatar Apr 03 '24 14:04 ProjectBarks