Skip to content

Releases: mapbox/pixelmatch

v5.3.0

25 Apr 08:18
Compare
Choose a tag to compare

Upgrade pngjs dependency (used in the pixelmatch CLI) from v4 to v6.

v5.2.0

17 Apr 10:26
Compare
Choose a tag to compare
  • Added a diffColorAlt option for coloring pixels that got darker differently (for differentiating between "added" and "removed" parts). #87 (h/t @tristen)
  • Dropped Node v4/v6 support in the binary.

v5.1.0

23 Sep 07:48
Compare
Choose a tag to compare

Added diffMask option. #73 (h/t @tmeasday)

v5.0.2

10 Jun 11:18
Compare
Choose a tag to compare
  • Fix input validation failing in some Jest environments. #62

v5.0.1

07 Jun 16:12
Compare
Choose a tag to compare
  • 🐞 Fix alpha option being ignored in case of identical images.
  • Slightly more robust input validation.

v5.0.0

07 Jun 07:39
Compare
Choose a tag to compare
  • ⚠️ Breaking: update to ES6 syntax, dropping Node <6.4 and IE11 support.
  • 🎨 Added configurable diff output (options alpha, aaColor, diffColor) (@dreignier @VP-)
  • ⚡️ Improve matching performance by ~35%.
  • ⚡️ Bypass detailed comparison when image data is identical, significantly improving performance when running tests on CI #60 (thanks to @bontscho).
  • Fix anti-aliasing detection on image edges #51 (@IvanSanchez).
  • Produce a meaningful error when image data is in the wrong format #53 (thanks to @LearningNerd)
  • CLI: return non-zero exit code when images differ #54 (@maio).
  • CLI: make diff output optional.
  • Make the published NPM module smaller.

v4.0.2

08 Aug 15:50
Compare
Choose a tag to compare

Fixed the command-line to properly handle the case when threshold is not provided.

v4.0.1

02 Dec 15:16
Compare
Choose a tag to compare
  • Updated dependencies (including pngjs to remove npm install warning).
  • Fixed a bug where the command line could sometimes fail.

v4.0.0

23 Oct 18:41
Compare
Choose a tag to compare
  • Breaking: switched to a much more accurate color difference metric based on recent research. As a side effect, the threshold scale changed — bump your old value by about ~70%.
  • Changed processing of alpha-channel (blending to white instead of black when comparing images)
  • Added an option to skip diff image creation (by passing null as the output argument)

v3.0.0

20 Oct 13:21
Compare
Choose a tag to compare
  • Breaking: changed the API to accept options object literal (with threshold and includeAA properties) rather than arguments.
  • Breaking: changed threshold to be relative to YUV distance (not squared); this means you'll have to change the threshold values you're currently using to sqrt(threshold).
  • Added usage examples for Node & browsers in the readme.