Skip to content

chore(deps-dev): bump pixelmatch from 7.2.0 to 8.0.0 - #551

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/pixelmatch-8.0.0
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/pixelmatch-8.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Bumps pixelmatch from 7.2.0 to 8.0.0.

Release notes

Sourced from pixelmatch's releases.

v8.0.0

A major update: a new, much more accurate color difference metric (replacing the one used since 2015), and two new options for handling noise and irrelevant regions in tests.

🎯 New color difference metric

Colors are now compared using the OKLab color space and the HyAB distance instead of YIQ. It's much closer to how people perceive color differences, so you get fewer false positives and fewer missed changes (#127). The math is more involved, but it's heavily optimized, so pixelmatch runs nearly as fast as before.

🪟 windowSize option

Returns the largest number of differing pixels in any N×N square instead of the total count. Scattered noise like GPU dithering or font anti-aliasing stays low, while real changes, which are usually compact, stand out:

if (pixelmatch(img1, img2, null, width, height, {windowSize: 16}) > 28) throw new Error('changed');

🙈 ignoreMask option

A per-pixel mask of areas to skip, like timestamps or animations. (#171 by @​Venefilyn, closes #163)

Other improvements

  • More reliable anti-aliasing detection on images with transparency.
  • Colors that differ only in transparency are much less likely to be missed.

⚠️ Upgrading from v7

The API is unchanged, and threshold keeps its scale (0 to 1, where 1 is black vs. white) and 0.1 default. But diff counts will differ because of the new metric. If your tests rely on exact counts or a tuned threshold, re-check them.

Commits
  • bddb613 8.0.0
  • a59be42 clarify what threshold means
  • 0cbe435 validate ignoreMask as pixel data
  • ebd9a84 add lightness helper
  • 3ab6cb5 improve checkerboard algorithm
  • 2b55b69 minor cleanup
  • 8856bdc feat: Add options.ignoreMask of pixels to skip (#171)
  • b280005 fix sensitivity around dark & other edge cases
  • c6fee35 blend with white rather than grey in AA check
  • 63ab459 add windowSize option for sliding window diff counts
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Oct 14, 2026
Bumps [pixelmatch](https://github.com/mapbox/pixelmatch) from 7.2.0 to 8.0.0.
- [Release notes](https://github.com/mapbox/pixelmatch/releases)
- [Commits](mapbox/pixelmatch@v7.2.0...v8.0.0)

---
updated-dependencies:
- dependency-name: pixelmatch
  dependency-version: 8.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/pixelmatch-8.0.0 branch from 3857051 to 7ca7cc9 Compare October 15, 2026 23:48
@dependabot @github

dependabot Bot commented on behalf of github Oct 18, 2026

Copy link
Copy Markdown
Contributor Author

Looks like pixelmatch is up-to-date now, so this is no longer needed.

@dependabot dependabot Bot closed this Oct 18, 2026
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/pixelmatch-8.0.0 branch October 18, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants