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
On this page
Latest version 3.0.5, released November 16, 2026. Source repository
Its 3.0.0 release requires Node.js 18 or later. Node.js end of life dates.
- From 2.3.2 to 3.0.0: 19 breaking changes in 1 version.
- From 2.0.0 to 3.0.0: 21 breaking changes in 3 versions.
es-module-lexer 3.0.0 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 - Removed
ExportSpecifier
ExportSpecifier was removed in es-module-lexer 3.0.0 npmjs.com - Removed
ImportSpecifier
ImportSpecifier was removed in es-module-lexer 3.0.0 npmjs.com - Removed
ImportType.Dynamic
ImportType.Dynamic was removed in es-module-lexer 3.0.0 npmjs.com - Removed
ImportType.DynamicDeferPhase
ImportType.DynamicDeferPhase was removed in es-module-lexer 3.0.0 npmjs.com - Removed
ImportType.DynamicSourcePhase
ImportType.DynamicSourcePhase was removed in es-module-lexer 3.0.0 npmjs.com - Removed
ImportType.ImportMeta
ImportType.ImportMeta was removed in es-module-lexer 3.0.0 npmjs.com - Removed
ImportType.Static
ImportType.Static was removed in es-module-lexer 3.0.0 npmjs.com - Removed
ImportType.StaticDeferPhase
ImportType.StaticDeferPhase was removed in es-module-lexer 3.0.0 npmjs.com - Removed
ImportType.StaticSourcePhase
ImportType.StaticSourcePhase was removed in es-module-lexer 3.0.0 npmjs.com - Removed
initSync
parse now initializes on first use, so callers of initSync must rely on parse instead. npmjs.com - Removed
minimal:ImportSpecifier.at
ImportSpecifier.at was removed in es-module-lexer 3.0.0 npmjs.com - Behavior changed
The package now requires Node.js 18 or newer; older Node.js versions are no longer supported. github.com - Behavior changed
Invalid escape sequences in static specifiers throw a parse error instead of yielding undefined. github.com - 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 - Behavior changed
init
parse initializes the Wasm synchronously on first call; await init is only required on browser main threads. github.com - 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 - Signature changed
ImportType
ImportType is now type-only; no runtime enum is exported, so runtime references to it break. npmjs.com - 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
es-module-lexer 2.3.2 breaking changes
- 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
es-module-lexer 2.1.0 breaking changes
- 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
es-module-lexer 2.0.0 breaking changes
- Removed
import assertions
Import assertion parsing was removed; code relying on it must move to import attributes syntax. 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.