---
title: "prism 2.0.0 Breaking Changes on RubyGems | Since.dev"
description: "What each prism release removed, renamed or changed: 87 breaking changes in 17 versions on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/prism
last_updated: 2026-12-04
---

# prism breaking changes

prism 2.0.0 (October 21, 2026) is its newest release with breaking changes, 33 of them. The first: Removed Location.comments. Every breaking API change we have recorded in prism on RubyGems: 87 breaking changes in 17 versions. Below, its 17 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.1.0`. [Source repository](https://github.com/ruby/prism)

Packages on RubyGems run on Ruby. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [1.0.0](#v-1-0-0) to [2.0.0](#v-2-0-0): 33 breaking changes in 1 version.
- From [0.14.0](#v-0-14-0) to [2.0.0](#v-2-0-0): 85 breaking changes in 16 versions.

## prism 2.0.0 breaking changes

prism 2.0.0, released October 21, 2026: 33 breaking changes.

- **Removed** `Location.comments`  

Comment accessors on locations were removed; use the attach_comments option and Node#comments. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Removed** `Location.leading_comments`  

Comment accessors on locations were removed; use the attach_comments option and Node#comments. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Removed** `Location.trailing_comments`  

Comment accessors on locations were removed; use the attach_comments option and Node#comments. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Removed** `MissingNode`  

Code that handles MissingNode must handle ErrorRecoveryNode instead when walking syntax-invalid code. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Removed** `Node.leading_comments`  

Leading and trailing comment accessors on nodes were removed; use Node#comments from the attach_comments option. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Removed** `Node.trailing_comments`  

Leading and trailing comment accessors on nodes were removed; use Node#comments from the attach_comments option. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Removed** `ParseResult.attach_comments!`  

Pass the attach_comments option when parsing instead of calling this method afterward. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Removed** `pm_string_owned_init`  

pm_string_t is now a view of bytes owned elsewhere, so use pm_string_init instead. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Removed** `Prism.Pack`  

Prism::Pack is gone, so code using it must be changed. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Renamed** `MatchPredicateNode.operator_loc`  

The old name still works in the Ruby layer, but new code should use the new name. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Renamed** `newline_list`  

Use list_offset_list in the C and Rust interfaces. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Renamed** `pm_string_constant_init`  

Use pm_string_init, which takes the bytes as const uint8_t \*. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Renamed** `UnlessNode.keyword_loc`  

The old name still works in the Ruby layer, but new code should use the new name. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Renamed** `UntilNode.closing_loc`  

The old names still work in the Ruby layer, but new code should use the new names. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Renamed** `UntilNode.keyword_loc`  

The old names still work in the Ruby layer, but new code should use the new names. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Renamed** `WhenNode.keyword_loc`  

The old name still works in the Ruby layer, but new code should use the new name. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Renamed** `WhileNode.closing_loc`  

The old names still work in the Ruby layer, but new code should use the new names. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Renamed** `WhileNode.keyword_loc`  

The old names still work in the Ruby layer, but new code should use the new names. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Behavior changed** `BACKTICK`  

The token is split, so code matching BACKTICK may need to also handle XSTRING_BACKTICK. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Behavior changed** `BRACE_LEFT`  

The token is split, so code matching BRACE_LEFT may need to also handle BRACE_LEFT_ARGUMENT and BRACE_LEFT_HASH. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Behavior changed** `NEWLINE`  

The token is split, so code matching NEWLINE may need to also handle NEWLINE_TERMINATOR. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Behavior changed** `PARENTHESIS_LEFT`  

The token is split, so code matching PARENTHESIS_LEFT may need to also handle PARENTHESIS_LEFT_GROUPING. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Behavior changed** `parse`  

The parse method no longer transcodes input to UTF-16 and only accepts Uint8Array. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Behavior changed** `pm_options_free`  

Scope local names are no longer freed by pm_options_free and must stay valid only until the parser is created. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Behavior changed** `Prism.lex`  

Prism.lex now returns an array of tokens instead of pairs of token and parse state. Access like token\[0\] still works. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Behavior changed** `StringNode.closing_loc`  

Optional locations that were empty for syntax-invalid code are now nil, so code reading them must handle nil. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Behavior changed** `WORDS_SEP`  

The token is split, so code matching WORDS_SEP may need to also handle WORDS_SEP_IMPLICIT. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Default changed**  

Code is now parsed with the syntax of the running Ruby by default. Pass version: "latest" to keep the previous behavior. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Signature changed** `Diagnostic.message`  

Diagnostic::message now returns &\[u8\] instead of &str. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Signature changed** `ParseResult.new`  

Comments now live on the source, so ParseResult.new no longer accepts a comments argument. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Signature changed** `pm_visit_child_nodes`  

Visitor callbacks must return pm_visit_result_t instead of bool, using PM_VISIT_DESCEND, PM_VISIT_SKIP or PM_VISIT_STOP. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Signature changed** `pm_visit_node`  

Visitor callbacks must return pm_visit_result_t instead of bool, using PM_VISIT_DESCEND, PM_VISIT_SKIP or PM_VISIT_STOP. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)
- **Signature changed** `Prism.Source.for`  

The second and third positional parameters are now required and can no longer be omitted. [github.com](https://github.com/ruby/prism/releases/tag/v2.0.0)

## prism 1.0.0 breaking changes

prism 1.0.0, released August 28, 2024: 8 breaking changes.

- **Renamed** `CaseMatchNode.consequent`  

The old name still works but emits a deprecation warning. Switch to CaseMatchNode#else_clause. [github.com](https://github.com/ruby/prism/releases/tag/v1.0.0)
- **Renamed** `CaseNode.consequent`  

The old name still works but emits a deprecation warning. Switch to CaseNode#else_clause. [github.com](https://github.com/ruby/prism/releases/tag/v1.0.0)
- **Renamed** `IfNode.consequent`  

The old name still works but emits a deprecation warning. Switch to IfNode#subsequent. [github.com](https://github.com/ruby/prism/releases/tag/v1.0.0)
- **Renamed** `RescueNode.consequent`  

The old name still works but emits a deprecation warning. Switch to RescueNode#subsequent. [github.com](https://github.com/ruby/prism/releases/tag/v1.0.0)
- **Renamed** `UnlessNode.consequent`  

The old name still works but emits a deprecation warning. Switch to UnlessNode#else_clause. [github.com](https://github.com/ruby/prism/releases/tag/v1.0.0)
- **Behavior changed**  

Chained range operators that previously parsed are now rejected. Add parentheses to make the grouping explicit. [github.com](https://github.com/ruby/prism/releases/tag/v1.0.0)
- **Behavior changed**  

Code using multi-writes outside statement level now fails to parse. Move such assignments to statement level. [github.com](https://github.com/ruby/prism/releases/tag/v1.0.0)
- **Behavior changed**  

Code with invalid return statements that used to parse is now reported as an error. [github.com](https://github.com/ruby/prism/releases/tag/v1.0.0)

## prism 0.30.0 breaking changes

prism 0.30.0, released June 7, 2024: 1 breaking change.

- **Removed** `RationalNode.numeric`  

RationalNode now has numerator and denominator fields instead of a numeric field. The numeric method is kept for backwards compatibility, so code using it is not broken, but it is the one to migrate away from. [github.com](https://github.com/ruby/prism/releases/tag/v0.30.0)

## prism 0.29.0 breaking changes

prism 0.29.0, released May 10, 2024: 5 breaking changes.

- **Renamed** `operator`  

The operator fields on \*OperatorWriteNode nodes are renamed to binary_operator. Code reading the old field name must switch to the new one. [github.com](https://github.com/ruby/prism/releases/tag/v0.29.0)
- **Behavior changed**  

Keyword parameter names ending in ! or ? are no longer allowed and must be renamed. [github.com](https://github.com/ruby/prism/releases/tag/v0.29.0)
- **Behavior changed**  

Code using implicit hash patterns inside array patterns is no longer accepted and must use explicit braces. [github.com](https://github.com/ruby/prism/releases/tag/v0.29.0)
- **Behavior changed**  

Surrogate code points in Unicode escape sequences are now validated and rejected. [github.com](https://github.com/ruby/prism/releases/tag/v0.29.0)
- **Behavior changed**  

Parsing invalid implicit local variable writes now produces an error where it was previously accepted. [github.com](https://github.com/ruby/prism/releases/tag/v0.29.0)

## prism 0.28.0 breaking changes

prism 0.28.0, released May 3, 2024: 4 breaking changes.

- **Behavior changed**  

A static literal string may now directly interpolate another static literal string, matching CRuby. [github.com](https://github.com/ruby/prism/releases/tag/v0.28.0)
- **Behavior changed**  

The bundled RBI type signatures no longer use generics, which can affect Sorbet type checking of user code. [github.com](https://github.com/ruby/prism/releases/tag/v0.28.0)
- **Behavior changed**  

All translation layers now assume an eval context, so invalid jumps like yield are no longer reported as errors. [github.com](https://github.com/ruby/prism/releases/tag/v0.28.0)
- **Behavior changed** `Prism.Node.inspect`  

Prism::Node#inspect output is built iteratively to avoid stack overflows; callers relying on recursion details may see differences. [github.com](https://github.com/ruby/prism/releases/tag/v0.28.0)

## prism 0.27.0 breaking changes

prism 0.27.0, released April 23, 2024: 3 breaking changes.

- **Renamed** `DoubleField`  

The reflection class DoubleField was renamed to FloatField. Code that references DoubleField must use FloatField instead. [github.com](https://github.com/ruby/prism/releases/tag/v0.27.0)
- **Behavior changed**  

Code using omitted hash values whose keys end with ! or ? will no longer parse and must write out the value explicitly. [github.com](https://github.com/ruby/prism/releases/tag/v0.27.0)
- **Behavior changed** `Prism.ParseResult`  

Prism::ParseResult was split up into Prism::Result, which now has subclasses including Prism::ParseResult. Code that depends on the previous class structure may need to use Prism::Result. [github.com](https://github.com/ruby/prism/releases/tag/v0.27.0)

## Older versions

11 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### prism 0.26.0 breaking changes

prism 0.26.0, released April 18, 2024: 1 breaking change.

- **Behavior changed**  

Code that passes a block argument to yield, such as yield(&foo), will now fail to parse. Remove the block argument from the yield call. [github.com](https://github.com/ruby/prism/releases/tag/v0.26.0)

### prism 0.24.0 breaking changes

prism 0.24.0, released February 15, 2024: 2 breaking changes.

- **Behavior changed**  

The location reported for an empty symbol used as a hash key was corrected, so code reading these locations may see different values. [github.com](https://github.com/ruby/prism/releases/tag/v0.24.0)
- **Behavior changed** `Prism.Translation.Parser`  

Prism::Translation::Parser now supports multiple versions. Code that relied on the previous single-version behavior may see different results. [github.com](https://github.com/ruby/prism/releases/tag/v0.24.0)

### prism 0.23.0 breaking changes

prism 0.23.0, released February 14, 2024: 3 breaking changes.

- **Renamed** `Prism.RipperCompat`  

Prism::RipperCompat now lives at Prism::Translation::Ripper. Code that references the old name must switch to the new one. [github.com](https://github.com/ruby/prism/releases/tag/v0.23.0)
- **Behavior changed**  

Many error messages prism produces now match CRuby's wording. Code that matches on the old message text must be updated. [github.com](https://github.com/ruby/prism/releases/tag/v0.23.0)

And 1 more in this version.

### prism 0.22.0 breaking changes

prism 0.22.0, released February 7, 2024: 2 breaking changes.

- **Behavior changed** `BeginNode`  

BeginNode nodes built for inline rescue, ensure or else in classes, modules, methods and blocks now report their opening location at the start of that keyword. Code that reads these locations may see different values. [github.com](https://github.com/ruby/prism/releases/tag/v0.22.0)
- **Behavior changed** `Prism.parse_file`  

Prism.parse_file and similar APIs now raise more specific errors when the file does not exist or cannot be mapped. Code that rescues the previous error types may need to rescue the new ones. [github.com](https://github.com/ruby/prism/releases/tag/v0.22.0)

### prism 0.21.0 breaking changes

prism 0.21.0, released February 5, 2024: 1 breaking change.

- **Behavior changed**  

Code such as \`a.+ -= b\` that the parser previously accepted is now rejected. Rewrite such expressions to avoid the operator write. [github.com](https://github.com/ruby/prism/releases/tag/v0.21.0)

### prism 0.20.0 breaking changes

prism 0.20.0, released February 1, 2024: 5 breaking changes.

- **Removed** `locals_body_index`  

The locals_body_index field was removed from the release. Code that reads this field must stop using it. [github.com](https://github.com/ruby/prism/releases/tag/v0.20.0)
- **Removed** `verbose`  

The verbose option was removed from the various parse APIs. Warnings are now always emitted with their level, so callers must decide how to handle them. [github.com](https://github.com/ruby/prism/releases/tag/v0.20.0)

And 3 more in this version.

### prism 0.19.0 breaking changes

prism 0.19.0, released December 14, 2023: 3 breaking changes.

- **Behavior changed**  

Almost all error messages now begin with a lowercase letter to match ruby/spec. Code that matches on exact error message text must be updated. [github.com](https://github.com/ruby/prism/releases/tag/v0.19.0)
- **Behavior changed**  

Unterminated strings with only plain content now parse as StringNode rather than InterpolatedStringNode. Code that checks the node type must account for this. [github.com](https://github.com/ruby/prism/releases/tag/v0.19.0)

And 1 more in this version.

### prism 0.18.0 breaking changes

prism 0.18.0, released November 21, 2023: 7 breaking changes.

- **Removed** `--disable-static`  

The --disable-static option no longer exists in the C extension build. Builds that pass it will no longer work as before. [github.com](https://github.com/ruby/prism/releases/tag/v0.18.0)
- **Removed** `StringConcatNode`  

StringConcatNode no longer exists; adjacent string concatenation is represented by InterpolatedStringNode as a list. Code referencing StringConcatNode must be updated. [github.com](https://github.com/ruby/prism/releases/tag/v0.18.0)

And 5 more in this version.

### prism 0.17.0 breaking changes

prism 0.17.0, released November 3, 2023: 3 breaking changes.

- **Removed** `KeywordParameterNode`  

KeywordParameterNode is replaced by OptionalKeywordParameterNode and RequiredKeywordParameterNode. RequiredKeywordParameterNode has no value field, so code that reads value on keyword parameters must be updated. [github.com](https://github.com/ruby/prism/releases/tag/v0.17.0)
- **Removed** `type`  

Comments are now instances of InlineComment, EmbDocComment or DATAComment instead of one class, and the type field has been removed. Code that checks comment type must switch to the class. [github.com](https://github.com/ruby/prism/releases/tag/v0.17.0)

And 1 more in this version.

### prism 0.16.0 breaking changes

prism 0.16.0, released October 30, 2023: 4 breaking changes.

- **Removed** `Multi{Target,Write}Node.targets`  

The targets method is split into lefts, rest, and rights. Code calling targets must use these accessors instead. [github.com](https://github.com/ruby/prism/releases/tag/v0.16.0)
- **Removed** `RequiredDestructuredParameterNode`  

RequiredDestructuredParameterNode has been removed; destructured required parameters now use MultiTargetNode. Code referencing the old node must switch to MultiTargetNode. [github.com](https://github.com/ruby/prism/releases/tag/v0.16.0)

And 2 more in this version.

### prism 0.14.0 breaking changes

prism 0.14.0, released October 13, 2023: 2 breaking changes.

- **Behavior changed**  

For loops now treat the index value as part of the body, so depths of local variable assignments increase by 1. Code relying on the previous local variable depths must be updated. [github.com](https://github.com/ruby/prism/releases/tag/v0.14.0)
- **Behavior changed** `Call*Node.name`  

The name methods on Call nodes now return Symbol values rather than String values. Code comparing or manipulating these names as strings must be updated. [github.com](https://github.com/ruby/prism/releases/tag/v0.14.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.
