unstale

npm / pixelmatch

pixelmatch

What changed in pixelmatch 5 to 8, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

6 breaking7 new APIs and options5 performance1 behavior and defaults6 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

pixelmatch 85 changes

Breaking changes 1

  • Color comparison now uses OKLab and HyAB instead of YIQ, changing diff counts to better match perceived color differences.

    8.0.0release notes

New APIs and options 2

  • Adds a per-pixel mask for skipping areas such as timestamps or animations.

    8.0.0release notes

  • Returns the largest number of differing pixels in any N×N square instead of the total count, helping distinguish compact changes from scattered noise.

    8.0.0release notes

Fixes and other changes 2

  • Anti-aliasing detection is more reliable on images with transparency.

    8.0.0release notes

  • Colors that differ only in transparency are much less likely to be missed.

    8.0.0release notes

pixelmatch 78 changes

Breaking changes 1

  • Semitransparent pixels are now blended with an irregular pattern instead of white, making transparent-versus-white differences easier to catch.

    7.0.0release notes

New APIs and options 1

  • Controls whether semi-transparent pixels are blended against a checkerboard pattern (true, the default) or plain white (false, the pre-v7 behavior) when comparing images.

    7.2.0release notes

Performance 3

Behavior and default changes 1

  • Antialiasing checks are skipped when includeAA is true.

    7.1.1release notes

Fixes and other changes 2

  • Errors on image size mismatch are clearer.

    7.1.1release notes

  • Options now use the default value when undefined is passed explicitly.

    7.0.0release notes

pixelmatch 61 changes

Breaking changes 1

  • Published as an ES module; CommonJS environments must use v5.3.0.

    6.0.0release notes

pixelmatch 511 changes

Breaking changes 3

New APIs and options 4

Performance 2

  • Detailed comparison is bypassed when image data is identical, improving performance when running tests on CI.

    5.0.0release notes

  • Matching performance improves by approximately 35%.

    5.0.0release notes

Fixes and other changes 2

  • Fixes anti-aliasing detection on image edges.

    5.0.0release notes

  • Produces a meaningful error when image data is in the wrong format.

    5.0.0release notes