# What changed in import-fresh

> 5 changes in import-fresh 4 from its official release notes, upgrade guides and advisories: 3 breaking. Each one cited. Sources checked 2026-10-20. HTML: https://unstale.sh/npm/import-fresh/

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

## import-fresh 4

### Breaking changes

- The package is now pure ESM, so consumers must use ESM imports rather than CommonJS require. (4.0.0) — [release notes](https://github.com/sindresorhus/import-fresh/releases/tag/v4.0.0)
- The import is now asynchronous, so callers must await the result. (4.0.0) — [release notes](https://github.com/sindresorhus/import-fresh/releases/tag/v4.0.0)
- Node.js 22.15 is now required to use the package. (4.0.0) — [release notes](https://github.com/sindresorhus/import-fresh/releases/tag/v4.0.0)

### Behavior and default changes

- Fresh imports now support ESM modules. (4.0.0) — [release notes](https://github.com/sindresorhus/import-fresh/releases/tag/v4.0.0)

### Fixes and other changes

- Rejects import attributes for CommonJS targets. (4.0.1) — [release notes](https://github.com/sindresorhus/import-fresh/releases/tag/v4.0.1)
