npm / @blazediff/core
@blazediff/core
What changed in @blazediff/core 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
1 breaking1 new APIs and options3 performance2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@blazediff/core 17 changes
Breaking changes 1
Removed @blazediff/types to keep @blazediff/core zero-dependency.
New APIs and options 1
Adds named exports to the package.
Performance 3
Pixels proven under threshold are rejected with integer math before the float YIQ metric runs; opaque pixels reuse channels already loaded for equality testing. Diff counts and output images are unchanged.
The core is faster when there is no output, using a single pass.
Improves JIT optimization for color delta.
Fixes and other changes 2
Passing null as the output buffer no longer crashes; null and undefined both produce count-only results, matching pixelmatch's API.
The fast path now compares both bytes and color delta.