# What changed in fast-average-color

> 8 changes in fast-average-color 9 from its official release notes, upgrade guides and advisories: 1 breaking. Each one cited. Sources checked 2026-10-20. HTML: https://unstale.sh/npm/fast-average-color/

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

## fast-average-color 9

### Breaking changes

- Validates step as a positive safe integer; invalid values, including 0 and NaN, now throw during pixel processing instead of silently falling back to 1 or producing incorrect results. (9.6.0) — [release notes](https://github.com/fast-average-color/fast-average-color/releases/tag/v9.6.0)

### Behavior and default changes

- Recognizes HTML images, videos, and canvases across windows and iframes using their object tags. (9.6.0) — [release notes](https://github.com/fast-average-color/fast-average-color/releases/tag/v9.6.0)

### Fixes and other changes

- Preserves the original processing error instead of replacing it with a generic CORS error, and logs each error once. (9.6.0) — [release notes](https://github.com/fast-average-color/fast-average-color/releases/tag/v9.6.0)
- Preserves the original processing error instead of replacing it with a generic CORS error, and logs each error once. (9.6.0) — [release notes](https://github.com/fast-average-color/fast-average-color/releases/tag/v9.6.0)
- Disables image smoothing after resizing the canvas so the setting is preserved during color sampling. (9.6.0) — [release notes](https://github.com/fast-average-color/fast-average-color/releases/tag/v9.6.0)
- Uses display dimensions to calculate average color and avoid sampling only part of a frame when display and coded sizes differ. (9.6.0) — [release notes](https://github.com/fast-average-color/fast-average-color/releases/tag/v9.6.0)
- Fixed the image loading completion check. (9.5.2) — [release notes](https://github.com/fast-average-color/fast-average-color/releases/tag/v9.5.2)
- Fixed binding of the event handler for images. (9.5.1) — [release notes](https://github.com/fast-average-color/fast-average-color/releases/tag/v9.5.1)
