# What changed in @eslint/compat

> 5 changes in @eslint/compat 2 from its official release notes, upgrade guides and advisories: 1 breaking, 1 new APIs and options. Each one cited. Sources checked 2026-10-27. HTML: https://unstale.sh/npm/@eslint/compat/

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

## @eslint/compat 2

### Breaking changes

- Requires Node.js ^20.19.0, ^22.13.0, or >=24. (2.0.0) — [release notes](https://github.com/eslint/rewrite/releases/tag/compat-v2.0.0)

### New APIs and options

- Adds includeIgnoreFile() to config-helpers. (2.1.0) — [release notes](https://github.com/eslint/rewrite/releases/tag/compat-v2.1.0)

### Fixes and other changes

- Preserves the return value of markVariableAsUsed in the compat context. (2.1.1) — [release notes](https://github.com/eslint/rewrite/releases/tag/compat-v2.1.1)
- Adds ESLint 10 as a peer dependency. (2.0.2) — [release notes](https://github.com/eslint/rewrite/releases/tag/compat-v2.0.2)
- Patches missing context and SourceCode methods for v10. (2.0.0) — [release notes](https://github.com/eslint/rewrite/releases/tag/compat-v2.0.0)
