# What changed in @cypress/code-coverage

> 7 changes in @cypress/code-coverage 4 from its official release notes, upgrade guides and advisories: 3 breaking, 1 new APIs and options. Each one cited. Sources checked 2026-10-27. HTML: https://unstale.sh/npm/@cypress/code-coverage/

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

## @cypress/code-coverage 4

### Breaking changes

- The minimum Cypress version is now v15.10.0. (4.0.0) — [release notes](https://github.com/cypress-io/code-coverage/releases/tag/v4.0.0)
- Configure with expose rather than env. (4.0.0) — [release notes](https://github.com/cypress-io/code-coverage/releases/tag/v4.0.0)
- The minimum node version is now 20.x. (4.0.0) — [release notes](https://github.com/cypress-io/code-coverage/releases/tag/v4.0.0)

### New APIs and options

- Adds an opt-in option to enforce nyc thresholds. (4.1.0) — [release notes](https://github.com/cypress-io/code-coverage/releases/tag/v4.1.0)

### Fixes and other changes

- Coverage created after page load is now collected. (4.1.2) — [release notes](https://github.com/cypress-io/code-coverage/releases/tag/v4.1.2)
- Non-file keys on window.__coverage__ are now ignored. (4.1.1) — [release notes](https://github.com/cypress-io/code-coverage/releases/tag/v4.1.1)
- Windows spec paths are now matched correctly. (4.1.1) — [release notes](https://github.com/cypress-io/code-coverage/releases/tag/v4.1.1)
