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

# es-module-lexer breaking changes

es-module-lexer 3.0.0 (September 7, 2026) is its newest release with breaking changes, 19 of them. The first: Removed es-module-lexer.js. Every breaking API change we have recorded in es-module-lexer on npm: 22 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `3.0.5`, released November 16, 2026. [Source repository](https://github.com/guybedford/es-module-lexer)

Its 3.0.0 release requires [Node.js 18](https://since.dev/calendar/nodejs/18.md) or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

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

## es-module-lexer 3.0.0 breaking changes

es-module-lexer 3.0.0, released September 7, 2026: 19 breaking changes.

- **Removed** `es-module-lexer.js`  

The es-module-lexer/js entry now points to the asm.js build; the pure-JS port is removed, so code relying on the pure-JS port must change. [github.com](https://github.com/guybedford/es-module-lexer/releases/tag/3.0.0)
- **Removed** `ExportSpecifier`  

ExportSpecifier was removed in es-module-lexer 3.0.0 [npmjs.com](https://www.npmjs.com/package/es-module-lexer/v/3.0.0)
- **Removed** `ImportSpecifier`  

ImportSpecifier was removed in es-module-lexer 3.0.0 [npmjs.com](https://www.npmjs.com/package/es-module-lexer/v/3.0.0)
- **Removed** `ImportType.Dynamic`  

ImportType.Dynamic was removed in es-module-lexer 3.0.0 [npmjs.com](https://www.npmjs.com/package/es-module-lexer/v/3.0.0)
- **Removed** `ImportType.DynamicDeferPhase`  

ImportType.DynamicDeferPhase was removed in es-module-lexer 3.0.0 [npmjs.com](https://www.npmjs.com/package/es-module-lexer/v/3.0.0)
- **Removed** `ImportType.DynamicSourcePhase`  

ImportType.DynamicSourcePhase was removed in es-module-lexer 3.0.0 [npmjs.com](https://www.npmjs.com/package/es-module-lexer/v/3.0.0)
- **Removed** `ImportType.ImportMeta`  

ImportType.ImportMeta was removed in es-module-lexer 3.0.0 [npmjs.com](https://www.npmjs.com/package/es-module-lexer/v/3.0.0)
- **Removed** `ImportType.Static`  

ImportType.Static was removed in es-module-lexer 3.0.0 [npmjs.com](https://www.npmjs.com/package/es-module-lexer/v/3.0.0)
- **Removed** `ImportType.StaticDeferPhase`  

ImportType.StaticDeferPhase was removed in es-module-lexer 3.0.0 [npmjs.com](https://www.npmjs.com/package/es-module-lexer/v/3.0.0)
- **Removed** `ImportType.StaticSourcePhase`  

ImportType.StaticSourcePhase was removed in es-module-lexer 3.0.0 [npmjs.com](https://www.npmjs.com/package/es-module-lexer/v/3.0.0)
- **Removed** `initSync`  

parse now initializes on first use, so callers of initSync must rely on parse instead. [npmjs.com](https://www.npmjs.com/package/es-module-lexer/v/3.0.0)
- **Removed** `minimal:ImportSpecifier.at`  

ImportSpecifier.at was removed in es-module-lexer 3.0.0 [npmjs.com](https://www.npmjs.com/package/es-module-lexer/v/3.0.0)
- **Behavior changed**  

The package now requires Node.js 18 or newer; older Node.js versions are no longer supported. [github.com](https://github.com/guybedford/es-module-lexer/releases/tag/3.0.0)
- **Behavior changed**  

Invalid escape sequences in static specifiers throw a parse error instead of yielding undefined. [github.com](https://github.com/guybedford/es-module-lexer/releases/tag/3.0.0)
- **Behavior changed** `es-module-lexer.minimal`  

The minimal entry point holds the v2-shaped API; parse returns \[imports, exports\] only and at is dropped, so read attributes via source.slice instead. [github.com](https://github.com/guybedford/es-module-lexer/releases/tag/3.0.0)
- **Behavior changed** `init`  

parse initializes the Wasm synchronously on first call; await init is only required on browser main threads. [github.com](https://github.com/guybedford/es-module-lexer/releases/tag/3.0.0)
- **Behavior changed** `parse`  

Full build records are now tagged unions discriminated by type, replacing terse v2 names and numeric type tags; code reading old fields must be updated. [github.com](https://github.com/guybedford/es-module-lexer/releases/tag/3.0.0)
- **Signature changed** `ImportType`  

ImportType is now type-only; no runtime enum is exported, so runtime references to it break. [npmjs.com](https://www.npmjs.com/package/es-module-lexer/v/3.0.0)
- **Signature changed** `parse`  

Was function parse(source: string, name?: string): readonly \[imports: ReadonlyArray\<ImportSpecifier>, exports: ReadonlyArray\<ExportSpecifier>, facade: boolean, hasModuleSyntax: boolean\]; now function parse(source: string, name?: string)... [npmjs.com](https://www.npmjs.com/package/es-module-lexer/v/3.0.0)

## es-module-lexer 2.3.2 breaking changes

es-module-lexer 2.3.2, released August 17, 2026: 1 breaking change.

- **Configuration changed**  

The package.json gained a sideEffects field, which lets bundlers drop unused imports of this package. Code that relies on importing it only for side effects may need an explicit import. [github.com](https://github.com/guybedford/es-module-lexer/releases/tag/2.3.2)

## es-module-lexer 2.1.0 breaking changes

es-module-lexer 2.1.0, released April 25, 2026: 1 breaking change.

- **Behavior changed**  

Dynamic import specifier ranges now always exclude import attributes. Code that reads the specifier range from dynamic imports with attributes will get a shorter range. [github.com](https://github.com/guybedford/es-module-lexer/releases/tag/2.1.0)

## es-module-lexer 2.0.0 breaking changes

es-module-lexer 2.0.0, released December 7, 2025: 1 breaking change.

- **Removed** `import assertions`  

Import assertion parsing was removed; code relying on it must move to import attributes syntax. [github.com](https://github.com/guybedford/es-module-lexer/releases/tag/2.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.
