npm / import-fresh
import-fresh
What changed in import-fresh 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-20.
3 breaking1 behavior and defaults1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initimport-fresh 45 changes
Breaking changes 3
The package is now pure ESM, so consumers must use ESM imports rather than CommonJS require.
The import is now asynchronous, so callers must await the result.
Node.js 22.15 is now required to use the package.
Behavior and default changes 1
Fresh imports now support ESM modules.
Fixes and other changes 1
Rejects import attributes for CommonJS targets.