rouge breaking changes
rouge 5.0.0 (May 27, 2026) is its newest release with breaking changes, 3 of them. The first: rouge 5.0.0 drops support for Ruby 2.7. Every breaking API change we have recorded in rouge on RubyGems: 12 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 5.1.0. Source repository
Its 5.0.0 release drops Ruby 2.7. Ruby end of life dates.
- From 4.0.0 to 5.0.0: 3 breaking changes in 1 version.
- From 0.3.0 to 5.0.0: 11 breaking changes in 6 versions.
rouge 5.0.0 breaking changes
- Removed
Ruby 2.7 is no longer supported, so code that must run on Ruby 2.7 should stay on rouge 4.x or upgrade Ruby. github.com - Renamed
Coq
The Coq lexer was renamed to Rocq to reflect the project's renaming, so code referring to the Coq lexer must use Rocq. github.com - Behavior changed
The HTML formatter delegation was reworked, so code relying on the previous delegation behavior may need to be checked. github.com
rouge 4.0.0 breaking changes
- Removed
The gem no longer supports Ruby versions earlier than 2.7, so projects on older Ruby must upgrade Ruby before using this release. github.com - Removed
Rouge.Lexers.Solidity
The Solidity lexer is no longer included, so code that selects it will no longer find a lexer for Solidity. github.com
rouge 3.0.0 breaking changes
- Removed
Rouge 3.0.0 requires Ruby 2.0.0 or later; Ruby 1.9 is no longer supported. github.com - Behavior changed
Input is now stripped of byte order marks and has newlines normalized before lexing, which may change token output for existing code. github.com
rouge 2.0.0 breaking changes
- Behavior changed
The release adds new formatters. Code that needs the old HTML output must switch to Rouge::Formatters::HTMLLegacy. github.com
rouge 1.1.0 breaking changes
- Behavior changed
The table for tableized line numbers is no longer surrounded by a pre tag, which changes generated markup; stylesheets that only target the formatter scope are unaffected, others may need updating. github.com
rouge 0.5.0 breaking changes
- Renamed
Rouge.Lexers.Text
The Text lexer was renamed to PlainText. Code that references Rouge::Lexers::Text must use Rouge::Lexers::PlainText instead. github.com - Behavior changed
Token values are now constants rather than strings. Code that works with tokens as strings is affected if it wrote a custom lexer, formatter, or theme. github.com
Older versions
1 older version.
Show 1 older version
rouge 0.3.0 breaking changes
- Behavior changed
Filename-based language guessing was refactored to reduce false positives and disambiguate matches such as nginx.conf versus *.conf. Code that relied on the previous guesses may now get different lexers. 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.