Skip to content

Releases: happo/lcs-image-diff

v4.0.0

23 Mar 12:32

Choose a tag to compare

Breaking changes

  • The alignArray algorithm has been improved to produce more useful diffs when content shifts in tall images. This will lead to different diff output from before.
  • Dropped common-JS support. The library is now exported as an ESM library.

Full list of changes

  • Replace jimp with sharp by @lencioni in #42
  • Specify checkout method in CircleCI configs by @lencioni in #43
  • Bump js-yaml from 3.14.1 to 3.14.2 by @dependabot[bot] in #44
  • Switch from yarn to pnpm by @trotzig in #45
  • Add five new snapshot test examples by @trotzig in #47
  • Add profiling script by @trotzig in #48
  • Add diff viewer server and four new snapshot examples by @trotzig in #49
  • Optimize LCS with band-limited flat typed arrays (~1.9× faster) by @trotzig in #50
  • Exclude test files from published npm package by @trotzig in #51
  • Convert project to ESM and update authors by @trotzig in #52
  • Improve LCS alignment using frequency-capped row matching by @trotzig in #53
  • Switch to pnpm and add CLAUDE.md by @trotzig in #55
  • Add second-pass placeholder simplification to reduce visual noise by @trotzig in #56

Full Changelog: v3.0.0...v4.0.0

v3.0.0

30 Sep 15:58

Choose a tag to compare

What's Changed

  • Return negative colorDiff if pixel is darker by @lencioni in #41

Full Changelog: v2.4.0...v3.0.0

v2.4.0

15 Sep 20:41

Choose a tag to compare

What's Changed

  • Remove array destructuring in colorDelta, add colorDeltaChannels, deprecate colorDelta by @lencioni in #40
  • Bump micromatch from 4.0.7 to 4.0.8 by @dependabot in #39
  • Bump qs from 6.10.1 to 6.13.0 by @dependabot in #38

Full Changelog: v2.3.0...v2.4.0

v2.3.0

04 Sep 12:15

Choose a tag to compare

What's Changed

  • Handle almost-transparent and transparent pixels better by @trotzig in #37

Full Changelog: v2.2.1...v2.3.0

v2.2.1

07 Jun 15:32

Choose a tag to compare

This patch release updates some dev dependencies and other transitive dependencies. We have also added a repository field to the package.json, and updated the CI image used for running tests.

What's Changed

New Contributors

Full Changelog: v2.2.0...v2.2.1

v2.2.0

04 May 07:44

Choose a tag to compare

This minor release makes diffs with images of different sizes slightly better. Where padding has to be added (on the smaller image) we no longer show a full magenta diff. Instead we show a semi-translucent magenta/gray area. This makes it easier to spot certain diffs.

v2.1.0

02 Jun 12:26

Choose a tag to compare

This minor release makes showing diffs for images of different dimensions better. Before, the trace and diff image wouldn't show much if the only change was (white) padding. Now it will highlight the whitespace areas.

v2.0.1

01 Feb 20:00

Choose a tag to compare

This version makes a performance improvement in deciding whether or not to apply the LCS algorithm. Instead of operating on hashed images, we now access the raw image data.

v2.0.0

14 Nov 18:48

Choose a tag to compare

Use YIQ colorspace to determine color distance instead of euclidean distance. #6

v1.1.0

14 Nov 18:47

Choose a tag to compare

  • Add maxDiff to the return value #2