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

# regex breaking changes

regex 6.0.0 (January 29, 2025) is its newest release with breaking changes, 13 of them. The first: Removed internals:emulationGroupMarker. Every breaking API change we have recorded in regex on npm: 13 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `6.1.0`, released December 9, 2025. [Source repository](https://github.com/slevithan/regex)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

## regex 6.0.0 breaking changes

regex 6.0.0, released January 29, 2025: 13 breaking changes.

- **Removed** `internals:emulationGroupMarker`  

emulationGroupMarker was removed in regex 6.0.0 [npmjs.com](https://www.npmjs.com/package/regex/v/6.0.0)
- **Removed** `internals.emulationGroupMarker`  

emulationGroupMarker is removed because markers are no longer used for hidden captures. [github.com](https://github.com/slevithan/regex/releases/tag/v6.0.0)
- **Removed** `internals.RegExpSubclass`  

RegExpSubclass no longer supports the undocumented capture transfer feature. [github.com](https://github.com/slevithan/regex/releases/tag/v6.0.0)
- **Removed** `PluginData.useEmulationGroups`  

PluginData.useEmulationGroups was removed in regex 6.0.0 [npmjs.com](https://www.npmjs.com/package/regex/v/6.0.0)
- **Behavior changed** `Plugins`  

Plugins must now return an object with a string pattern property instead of a plain string. [github.com](https://github.com/slevithan/regex/releases/tag/v6.0.0)
- **Signature changed** `internals:atomic`  

Was function atomic(expression: string, data?: import("./regex.js").PluginData): string; now function atomic(expression: string, data?: import("./regex.js").PluginData): Required\<import("./regex.js").PluginResult>. [npmjs.com](https://www.npmjs.com/package/regex/v/6.0.0)
- **Signature changed** `internals:possessive`  

Was function possessive(expression: string): string; now function possessive(expression: string): import("./regex.js").PluginResult. [npmjs.com](https://www.npmjs.com/package/regex/v/6.0.0)
- **Signature changed** `internals:RegExpSubclass.constructor`  

Was constructor(expression: string | RegExpSubclass, flags?: string, options?: {useEmulationGroups: boolean;}); now constructor(expression: RegExpSubclass, flags?: string) constructor(expression: string, flags?: string, options?... [npmjs.com](https://www.npmjs.com/package/regex/v/6.0.0)
- **Signature changed** `PluginData`  

Was type PluginData = {flags?: string; useEmulationGroups?: boolean;}; now type PluginData = {flags?: string; captureTransfers?: Map\<number | string, number>; hiddenCaptures?: Array\<number>;}. [npmjs.com](https://www.npmjs.com/package/regex/v/6.0.0)
- **Signature changed** `RegexTagOptions`  

Was type RegexTagOptions = {flags?: string; subclass?: boolean; plugins?: Array<(expression: string, data: PluginData) => string>; unicodeSetsPlugin?: ((expression: string, data: PluginData) => string) | null; disable?: {x?: boolean; n?... [npmjs.com](https://www.npmjs.com/package/regex/v/6.0.0)
- **Signature changed** `RegexTagOptions.plugins`  

Was plugins?: Array<(expression: string, data: PluginData) => string>; now plugins?: Array<(expression: string, data: PluginData) => PluginResult>. [npmjs.com](https://www.npmjs.com/package/regex/v/6.0.0)
- **Signature changed** `RegexTagOptions.unicodeSetsPlugin`  

Was unicodeSetsPlugin?: ((expression: string, data: PluginData) => string) | null; now unicodeSetsPlugin?: ((expression: string, data: PluginData) => PluginResult) | null. [npmjs.com](https://www.npmjs.com/package/regex/v/6.0.0)
- **Signature changed** `rewrite`  

The returned expression property of rewrite is now named pattern; update code reading it. [npmjs.com](https://www.npmjs.com/package/regex/v/6.0.0)

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