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

# re2js breaking changes

re2js 2.9.1 (October 28, 2026) is its newest release with breaking changes. The first: Signature changed re. Every breaking API change we have recorded in re2js on npm: 4 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.10.0`, released November 10, 2026. [Source repository](https://github.com/le0pard/re2js)

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

- From [2.8.7](#v-2-8-7) to [2.9.1](#v-2-9-1): 2 breaking changes in 2 versions.

## re2js 2.9.1 breaking changes

re2js 2.9.1, released October 28, 2026: 1 breaking change.

- **Signature changed** `re`  

Was const re: (stringsOrFlags: TemplateStringsArray | number, ...values: any\[\]) => RE2JS | ((strings: TemplateStringsArray, ...tagValues: any\[\]) => RE2JS); now function re(stringsOrFlags: TemplateStringsArray, ...values: any): RE2JS... [npmjs.com](https://www.npmjs.com/package/re2js/v/2.9.1)

## re2js 2.9.0 breaking changes

re2js 2.9.0, released October 20, 2026: 1 breaking change.

- **Behavior changed** `Codepoint.CODES`  

Codepoint.CODES is now frozen, so code that writes to or changes it will fail. Stop modifying it or copy it first. [github.com](https://github.com/le0pard/re2js/releases/tag/2.9.0)

## re2js 2.8.7 breaking changes

re2js 2.8.7, released October 17, 2026: 2 breaking changes.

- **Signature changed** `MatcherInputBase.asBytes`  

Was asBytes(): Uint8Array | number\[\]; now asBytes(): Uint8Array | number\[\] | null. [npmjs.com](https://www.npmjs.com/package/re2js/v/2.8.7)
- **Signature changed** `re`  

Was function re(stringsOrFlags: TemplateStringsArray, ...values: any\[\]): RE2JS function re(stringsOrFlags: number): (strings: TemplateStringsArray, ...tagValues: any\[\]) => RE2JS; now const re: (stringsOrFlags: TemplateStringsArray |... [npmjs.com](https://www.npmjs.com/package/re2js/v/2.8.7)

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