# What changed in jest-canvas-mock-compare

> 12 changes in jest-canvas-mock-compare 0.0 to 0.1 from its official release notes, upgrade guides and advisories: 1 breaking, 10 new APIs and options. Each one cited. Sources checked 2026-10-18. HTML: https://unstale.sh/npm/jest-canvas-mock-compare/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## jest-canvas-mock-compare 0.1

### Breaking changes

- jest-canvas-mock snapshot output now serializes jest mocks, such as CanvasGradient. (0.1.0) — [release notes](https://github.com/grafana/jest-canvas-mock-compare/releases/tag/jest-canvas-mock-compare%400.1.0)

### Fixes and other changes

- The project license changed from AGPL-3.0-only to Apache-2.0, which may affect a developer’s decision to use the project. (0.1.1) — [release notes](https://github.com/grafana/jest-canvas-mock-compare/releases/tag/jest-canvas-mock-compare%400.1.1)

## jest-canvas-mock-compare 0.0

### New APIs and options

- Introduces TypeScript types for canvas snapshot comparison. (0.0.4) — [release notes](https://github.com/grafana/jest-canvas-mock-compare/releases/tag/jest-canvas-mock-compare%400.0.4)
- Makes the payload output directory configurable via this environment variable. (0.0.4) — [release notes](https://github.com/grafana/jest-canvas-mock-compare/releases/tag/jest-canvas-mock-compare%400.0.4)
- Introduces a viewer URL hint via this environment variable. (0.0.4) — [release notes](https://github.com/grafana/jest-canvas-mock-compare/releases/tag/jest-canvas-mock-compare%400.0.4)
- Introduces matchers for canvas snapshot comparison. (0.0.4) — [release notes](https://github.com/grafana/jest-canvas-mock-compare/releases/tag/jest-canvas-mock-compare%400.0.4)
- Introduces removeCanvasTransforms for canvas snapshot comparison. (0.0.4) — [release notes](https://github.com/grafana/jest-canvas-mock-compare/releases/tag/jest-canvas-mock-compare%400.0.4)
- Payload output is written under `.jest-canvas-mock-compare/`; the directory can be configured with JEST_CANVAS_MOCK_COMPARE_DIR. (0.0.2) — [release notes](https://github.com/grafana/jest-canvas-mock-compare/releases/tag/jest-canvas-mock-compare%400.0.2)
- Configures the directory used for payload output. (0.0.2) — [release notes](https://github.com/grafana/jest-canvas-mock-compare/releases/tag/jest-canvas-mock-compare%400.0.2)
- Provides a viewer URL hint. (0.0.2) — [release notes](https://github.com/grafana/jest-canvas-mock-compare/releases/tag/jest-canvas-mock-compare%400.0.2)
- Introduces matchers for canvas snapshot comparison. (0.0.2) — [release notes](https://github.com/grafana/jest-canvas-mock-compare/releases/tag/jest-canvas-mock-compare%400.0.2)
- Introduces removeCanvasTransforms for canvas snapshot comparison. (0.0.2) — [release notes](https://github.com/grafana/jest-canvas-mock-compare/releases/tag/jest-canvas-mock-compare%400.0.2)
