Skip to content

Update dependency pixelmatch to v8 - #2887

Merged
chalin merged 1 commit into
mainfrom
renovate/pixelmatch-8.x
Oct 28, 2026
Merged

chalin merged 1 commit into
mainfrom
renovate/pixelmatch-8.x

Conversation

@renovate

@renovate renovate Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
pixelmatch 7.2.0 → 8.0.0 age confidence

Release Notes

mapbox/pixelmatch (pixelmatch)

v8.0.0

Compare Source

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.


Configuration

📅 Schedule: (in timezone UTC)

  • Branch creation
    • Only on Sunday (* * * * 0)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot requested a review from a team October 18, 2026 08:21
@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Oct 18, 2026
@netlify

netlify Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for docsydocs ready!

Name Link
🔨 Latest commit 0dfb1c9
🔍 Latest deploy log https://app.netlify.com/projects/docsydocs/deploys/6ae266aa9a02af0f0865947b
😎 Deploy Preview https://deploy-preview-2887--docsydocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@renovate
renovate Bot force-pushed the renovate/pixelmatch-8.x branch 2 times, most recently from 089facf to 06f6e90 Compare October 22, 2026 17:13
@renovate
renovate Bot force-pushed the renovate/pixelmatch-8.x branch from 06f6e90 to 0dfb1c9 Compare October 28, 2026 21:18

@chalin chalin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vetted at 0dfb1c91, per the supply-chain bump-vet procedure:

  • Diff: pixelmatch 7.2.0 → 8.0.0 (exact pin) in package.json and the one lock entry; integrity equals the registry's; pngjs ^7.0.0 unchanged; no lifecycle scripts; no other entry moved. Base = main tip (4fd90095) after the regeneration.
  • Cooldown: 8.0.0 published 2026-10-06 (22 d); the newest version.
  • Advisories: none (OSV, GitHub) on pixelmatch 7.2.0/8.0.0 and pngjs 7.0.0; the repo's audit gate 7/7 on this lock.
  • Lock reproduction: npm install --package-lock-only --ignore-scripts in a worktree detached at this OID reproduces the lock byte for byte (and, independently, an Arborist-only resolution did the same).
  • Tarball provenance: the published files match the v8.0.0 tag byte for byte; maintainers unchanged.
  • Behavior: v8 swaps the YIQ metric for OKLab/HyAB; API and threshold scale unchanged. Docsy's comparator runs at threshold: 0, includeAA: true (bit-exact goldens), where only zero vs nonzero matters. Probes under v8: every darwin golden vs itself → 0; vs a copy with one pixel nudged by 1/255 → 1; the whole RGB8 cube of single-channel opaque mutations → zero misses. npm run test:visual 61/61 locally (darwin goldens + the AA self-test, which still exercises its bypass); Visual regression (linux goldens) green on this head; 16/16 checks.
  • Known, pre-existing: with transparent pixels, both v7 and v8 can read an alpha-only change as unchanged when the pixel's color equals its per-pixel checkerboard background (palette {48, 207}³); v8 redistributes the affected positions. Unreachable here: all 56 goldens and Puppeteer's screenshots are fully opaque.
  • Review round: two cold gpt-6.1-sol runs (review-branch, adversarial); the one finding is the pre-existing alpha note above.

@chalin
chalin merged commit a8867d2 into main Oct 28, 2026
18 checks passed
@chalin
chalin deleted the renovate/pixelmatch-8.x branch October 28, 2026 21:33
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant