js-tokens breaking changes
js-tokens 10.0.0 (December 8, 2025) is its newest release with breaking changes. The first: js-tokens is now an ESM package instead of CommonJS. Every breaking API change we have recorded in js-tokens on npm: 10 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 10.0.2, released November 26, 2026. Source repository
Its 6.0.0 release requires Node.js 10 or later. Node.js end of life dates.
- From 9.0.0 to 10.0.0: 1 breaking change in 1 version.
- From 6.0.0 to 10.0.0: 4 breaking changes in 3 versions.
js-tokens 10.0.0 breaking changes
- Behavior changed
The package is now ESM with "type": "module" and a default export instead of module.exports. ESM users are unaffected. CommonJS users need Node.js 20.19.0 or later to keep using require("js-tokens"). github.com
js-tokens 9.0.0 breaking changes
- Signature changed
Token
Was type Token = | {type: "StringLiteral"; value: string; closed: boolean} | {type: "NoSubstitutionTemplate"; value: string; closed: boolean} | {type: "TemplateHead"; value: string} | {type: "TemplateMiddle"; value: string} | {type... npmjs.com
js-tokens 8.0.0 breaking changes
- Behavior changed
Code that tokenizes `this.#name` now gets a PrivateIdentifier token for `#name` instead of Invalid `#` followed by IdentifierName `name`. Code that matches on the old Invalid tokens must be updated. github.com - Signature changed
Token
Was type Token = | {type: "StringLiteral"; value: string; closed: boolean} | {type: "NoSubstitutionTemplate"; value: string; closed: boolean} | {type: "TemplateHead"; value: string} | {type: "TemplateMiddle"; value: string} | {type... npmjs.com
js-tokens 6.0.0 breaking changes
- Removed
default
Code that reads .default from the CommonJS require result must use the module directly. github.com - Renamed
Token type names now follow the ECMAScript spec naming, so code that checks token type names must be updated. github.com - Behavior changed
Whitespace and line terminator sequences are emitted as separate tokens, so code that expects them merged will see different output. github.com - Behavior changed
Invalid non-ASCII characters are no longer tokenized as identifier names, so their token output changes. github.com - Configuration changed
The package now needs Node.js 10 or later because it uses Unicode property escapes. Older Node.js versions will not work. github.com - Signature changed
The only export is now a function that tokenizes JavaScript. Code that used the old regex export must call the function instead. 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.