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

# 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

Latest version `10.0.2`, released November 26, 2026. [Source repository](https://github.com/lydell/js-tokens)

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

- From [9.0.0](#v-9-0-0) to [10.0.0](#v-10-0-0): 1 breaking change in 1 version.
- From [6.0.0](#v-6-0-0) to [10.0.0](#v-10-0-0): 4 breaking changes in 3 versions.

## js-tokens 10.0.0 breaking changes

js-tokens 10.0.0, released December 8, 2025: 1 breaking change.

- **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](https://github.com/lydell/js-tokens/blob/v10.0.0/CHANGELOG.md)

## js-tokens 9.0.0 breaking changes

js-tokens 9.0.0, released February 8, 2024: 1 breaking change.

- **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](https://www.npmjs.com/package/js-tokens/v/9.0.0)

## js-tokens 8.0.0 breaking changes

js-tokens 8.0.0, released May 15, 2022: 2 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](https://github.com/lydell/js-tokens/blob/v8.0.0/CHANGELOG.md)
- **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](https://www.npmjs.com/package/js-tokens/v/8.0.0)

## js-tokens 6.0.0 breaking changes

js-tokens 6.0.0, released April 13, 2020: 6 breaking changes.

- **Removed** `default`  

Code that reads .default from the CommonJS require result must use the module directly. [github.com](https://github.com/lydell/js-tokens/blob/v6.0.0/CHANGELOG.md)
- **Renamed**  

Token type names now follow the ECMAScript spec naming, so code that checks token type names must be updated. [github.com](https://github.com/lydell/js-tokens/blob/v6.0.0/CHANGELOG.md)
- **Behavior changed**  

Whitespace and line terminator sequences are emitted as separate tokens, so code that expects them merged will see different output. [github.com](https://github.com/lydell/js-tokens/blob/v6.0.0/CHANGELOG.md)
- **Behavior changed**  

Invalid non-ASCII characters are no longer tokenized as identifier names, so their token output changes. [github.com](https://github.com/lydell/js-tokens/blob/v6.0.0/CHANGELOG.md)
- **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](https://github.com/lydell/js-tokens/blob/v6.0.0/CHANGELOG.md)
- **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](https://github.com/lydell/js-tokens/blob/v6.0.0/CHANGELOG.md)

## 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.
