esmock breaking changes
esmock 3.0.0 (October 26, 2026) is its newest release with breaking changes, 4 of them. The first: Removed --loader. Every breaking API change we have recorded in esmock on npm: 8 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.0.0, released October 26, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
esmock 3.0.0 breaking changes
- Removed
--loader
Support for the legacy --loader usage with Node.js versions before v20 was removed. Use the newer loader setup instead. github.com - Behavior changed
Previously a local import mock with the same name as a global one resolved to the global variant. Check mocks that share a name, since they now resolve separately. github.com - Configuration changed
Commit marks a breaking change dropping support for older Node.js versions. github.com - Configuration changed
esmock now requires Node.js 22.15 or later; older Node.js versions are no longer supported. Upgrade Node.js before using this release. github.com
esmock 2.0.0 breaking changes
- Removed
default.Options.isPackageNotFoundError
Code passing { isPackageNotFoundError: false } must change the option name to isModuleNotFoundError. npmjs.com - Removed
default.Options.partial
Options.partial was removed in esmock 2.0.0 npmjs.com - Removed
default.px
The esmock.px entry point is replaced by calling esmock directly with the same arguments. npmjs.com - Behavior changed
esmock
esmock now merges mock definitions with the original module by default. To keep the old strict behaviour, use esmock.strict or import { strict as esmock } from 'esmock'. 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.