import-fresh breaking changes
import-fresh 4.0.0 (February 25, 2026) is its newest release with breaking changes, 4 of them. The first: import-fresh 4.0.0 requires Node.js 22.15 or later. Every breaking API change we have recorded in import-fresh on npm: 4 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.0.1, released September 25, 2026. Source repository
Its 4.0.0 release requires Node.js 22.15 or later. Node.js end of life dates.
import-fresh 4.0.0 breaking changes
- Removed
The package now requires Node.js 22.15 or later. Older Node.js versions are no longer supported, so upgrade Node.js before updating. github.com - Behavior changed
The package is now ESM-only, so CommonJS require() calls must be changed to import. Read the linked migration guide before upgrading. github.com - Signature changed
default
Was function importFresh<T>(moduleId: string): T; now function createImportFresh(parentURL: string | URL, options?: Options): ImportFreshFunction. npmjs.com - Signature changed
importFresh
Calling the import function now returns a promise, so callers must await it. Create it with createImportFresh(import.meta.url) and use await importFresh('./foo.js'). github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.