Skip to content

v1.4.0

Choose a tag to compare

@JanEickholt JanEickholt released this 05 Sep 18:05
· 29 commits to master since this release
v1.4.0
34cb856

Changed lines pair by similarity

Modified-row pairs are now matched by token similarity instead of run order, so the word chips land on the real counterpart:

  • Similarity pairing — an insertion placed above an edited line (a comment, a blank line) no longer steals the changed line's counterpart; unmatched lines render as plain additions or removals.
  • File-order rows — lines inside a changed block render top-down on both panes, so gutters never read backwards.
  • Containment pairing — a line folded into a spread or conditional (e.g. customerPhone: "0201 555000", → ...(options?.withoutPhone ? {} : { customerPhone: "0201 555000" }),) still pairs; the wrapper no longer dilutes the score below the threshold.

Line-count stats are unchanged — they keep counting the full removed/added runs.