jsondiffpatch icon indicating copy to clipboard operation
jsondiffpatch copied to clipboard

Visual delta does not show unchanged values when there is no diff

Open NogaMan opened this issue 3 years ago • 0 comments

If I tick "Show unchanged values" checkbox on the demo page, I expect all unchanged values to change. Currently I only see those unchanged values that are kinda "in the middle" of the changed items.

The cases:

  1. Visual delta does not show unchanged values when there is no diff (example 1)
  2. Visual delta does not show diff fully (example 2, see last string in array)

Example 1:

Left JSON

[
  "e435",
  "3058"
]

Right JSON

[
  "e435",
  "3058"
]

Example 2

Left JSON

[
  "e435",
  "25c8",
  "6794",
  "6c7d",
  "bec4",
  "6193",
  "5334",
  "2b7f",
  "05d0",
  "17d7",
  "3058"
]

Right JSON

[
  "e435",
  "25c8",
  "e2d2",
  "41e9",
  "f8ac",
  "7cf2",
  "6c7d",
  "6193",
  "bec4",
  "2ca6",
  "8ccf",
  "5334",
  "6794",
  "2f08",
  "9036",
  "2b7f",
  "a529",
  "1d22",
  "17d7",
  "05d0",
  "3058"
]

NogaMan avatar Aug 17 '21 09:08 NogaMan