---
title: "ansi-regex 6.6.0 Breaking Changes on npm | Since.dev"
description: "What each ansi-regex release removed, renamed or changed: 9 breaking changes in 5 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/ansi-regex
last_updated: 2026-12-04
---

# 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

Latest version `6.6.0`, released November 8, 2026. [Source repository](https://github.com/chalk/ansi-regex)

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

- From [5.0.0](#v-5-0-0) to [6.6.0](#v-6-6-0): 7 breaking changes in 4 versions.

## ansi-regex 6.6.0 breaking changes

ansi-regex 6.6.0, released November 8, 2026: 1 breaking change.

- **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](https://github.com/chalk/ansi-regex/releases/tag/v6.6.0)

## ansi-regex 6.4.0 breaking changes

ansi-regex 6.4.0, released September 27, 2026: 1 breaking change.

- **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](https://github.com/chalk/ansi-regex/releases/tag/v6.4.0)

## ansi-regex 6.1.0 breaking changes

ansi-regex 6.1.0, released September 9, 2024: 1 breaking change.

- **Signature changed** `Options`  

Was interface Options; now type Options = {readonly onlyFirst: boolean;}. [npmjs.com](https://www.npmjs.com/package/ansi-regex/v/6.1.0)

## ansi-regex 6.0.0 breaking changes

ansi-regex 6.0.0, released April 16, 2021: 4 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](https://github.com/chalk/ansi-regex/releases/tag/v6.0.0)
- **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](https://github.com/chalk/ansi-regex/releases/tag/v6.0.0)
- **Signature changed** `default`  

Was function ansiRegex(options?: ansiRegex.Options): RegExp namespace ansiRegex; now function ansiRegex(options?: Options): RegExp. [npmjs.com](https://www.npmjs.com/package/ansi-regex/v/6.0.0)
- **Signature changed** `Options.onlyFirst`  

Was onlyFirst: boolean; now readonly onlyFirst: boolean. [npmjs.com](https://www.npmjs.com/package/ansi-regex/v/6.0.0)

## ansi-regex 5.0.0 breaking changes

ansi-regex 5.0.0, released October 4, 2019: 2 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](https://github.com/chalk/ansi-regex/releases/tag/v5.0.0)
- **Signature changed** `Options.onlyFirst`  

Was onlyFirst?: boolean; now onlyFirst: boolean. [npmjs.com](https://www.npmjs.com/package/ansi-regex/v/5.0.0)

## Related packages

- [ansi-styles](https://since.dev/packages/npm/ansi-styles.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.
