ansi-regex breaking changes
ansi-regex 6.6.0 (November 8, 2026) is its newest release with breaking changes. The first: Regex now matches more ANSI escape cases, including escapes ending in a digit in ansi-regex 6.6.0. Every breaking API change we have recorded in ansi-regex on npm: 9 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 6.6.0, released November 8, 2026. Source repository
Its 6.0.0 release requires Node.js 12 or later. Node.js end of life dates.
ansi-regex 6.6.0 breaking changes
- Behavior changed
The ansi-regex pattern now matches additional escape sequences, including those whose final byte is a digit. Code relying on the previous match set may see different results. github.com
ansi-regex 6.4.0 breaking changes
- Behavior changed
The regex now matches OSC escape sequences introduced by the C1 control character, so code that relied on those strings not being matched may see different results. github.com
ansi-regex 6.1.0 breaking changes
- Signature changed
Options
Was interface Options; now type Options = {readonly onlyFirst: boolean;}. npmjs.com
ansi-regex 6.0.0 breaking changes
- Removed
The package now requires Node.js 12 or later. Users on older Node.js versions must upgrade Node.js before using this release. github.com - Behavior changed
The package ships only as ES modules and no longer works with CommonJS require(). Users must switch to import or use a dynamic import() from CommonJS code. github.com - Signature changed
default
Was function ansiRegex(options?: ansiRegex.Options): RegExp namespace ansiRegex; now function ansiRegex(options?: Options): RegExp. npmjs.com - Signature changed
Options.onlyFirst
Was onlyFirst: boolean; now readonly onlyFirst: boolean. npmjs.com
ansi-regex 5.0.0 breaking changes
- Removed
The package now requires Node.js 8 or later. Users on older Node.js versions must upgrade before using this release. github.com - Signature changed
Options.onlyFirst
Was onlyFirst?: boolean; now onlyFirst: boolean. npmjs.com
Related packages
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.