re2 breaking changes
re2 2.0.0 (September 13, 2023) is its newest release with breaking changes, 2 of them. The first: re2 2.0.0 requires Ruby 2.6 or later. Every breaking API change we have recorded in re2 on RubyGems: 6 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 2.29.0. Source repository
Its 2.0.0 release requires Ruby 2.6 or later. Ruby end of life dates.
re2 2.0.0 breaking changes
- Behavior changed
The 2.0.0 major release no longer supports Ruby versions before 2.6. Users on older Ruby must upgrade Ruby or stay on the 1.x series. github.com - Default changed
Installing the gem now builds RE2 and Abseil from the bundled sources instead of linking a system RE2. To keep the old behaviour, install with the --enable-system-libraries option on the ruby platform. github.com
re2 0.6.0 breaking changes
- Removed
re2_gsub!
The in-place replacement methods are gone in this release. Code calling re2_gsub! must be changed to use the new-string functions instead. github.com - Removed
re2_sub!
The in-place replacement methods are gone in this release. Code calling re2_sub! must be changed to use the new-string functions instead. github.com - Behavior changed
RE2.GlobalReplace
RE2.GlobalReplace no longer modifies the string passed to it. Code that relied on the input being changed must use the returned value. github.com - Behavior changed
RE2.Replace
RE2.Replace no longer modifies the string passed to it. Code that relied on the input being changed must use the returned value. github.com
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.