---
title: "esmock 3.0.0 Breaking Changes on npm | Since.dev"
description: "What each esmock release removed, renamed or changed: 8 breaking changes in 2 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/esmock
last_updated: 2026-12-04
---

# 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

Latest version `3.0.0`, released October 26, 2026. [Source repository](https://github.com/iambumblehead/esmock)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [2.0.0](#v-2-0-0) to [3.0.0](#v-3-0-0): 4 breaking changes in 1 version.

## esmock 3.0.0 breaking changes

esmock 3.0.0, released October 26, 2026: 4 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](https://github.com/iambumblehead/esmock/releases/tag/v3.0.0)
- **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](https://github.com/iambumblehead/esmock/releases/tag/v3.0.0)
- **Configuration changed**  

Commit marks a breaking change dropping support for older Node.js versions. [github.com](https://github.com/iambumblehead/esmock/commit/baea158a333f6fc6d86282993282440bb080aca2)
- **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](https://github.com/iambumblehead/esmock/releases/tag/v3.0.0)

## esmock 2.0.0 breaking changes

esmock 2.0.0, released September 6, 2022: 4 breaking changes.

- **Removed** `default.Options.isPackageNotFoundError`  

Code passing { isPackageNotFoundError: false } must change the option name to isModuleNotFoundError. [npmjs.com](https://www.npmjs.com/package/esmock/v/2.0.0)
- **Removed** `default.Options.partial`  

Options.partial was removed in esmock 2.0.0 [npmjs.com](https://www.npmjs.com/package/esmock/v/2.0.0)
- **Removed** `default.px`  

The esmock.px entry point is replaced by calling esmock directly with the same arguments. [npmjs.com](https://www.npmjs.com/package/esmock/v/2.0.0)
- **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](https://github.com/iambumblehead/esmock/releases/tag/v2.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
