prism breaking changes
Updated December 4, 2026
On this page
Latest version 2.1.0. Source repository
Packages on RubyGems run on Ruby. Ruby end of life dates.
- From 1.0.0 to 2.0.0: 33 breaking changes in 1 version.
- From 0.14.0 to 2.0.0: 85 breaking changes in 16 versions.
prism 2.0.0 breaking changes
- Removed
Location.comments
Comment accessors on locations were removed; use the attach_comments option and Node#comments. github.com - Removed
Location.leading_comments
Comment accessors on locations were removed; use the attach_comments option and Node#comments. github.com - Removed
Location.trailing_comments
Comment accessors on locations were removed; use the attach_comments option and Node#comments. github.com - Removed
MissingNode
Code that handles MissingNode must handle ErrorRecoveryNode instead when walking syntax-invalid code. github.com - Removed
Node.leading_comments
Leading and trailing comment accessors on nodes were removed; use Node#comments from the attach_comments option. github.com - Removed
Node.trailing_comments
Leading and trailing comment accessors on nodes were removed; use Node#comments from the attach_comments option. github.com - Removed
ParseResult.attach_comments!
Pass the attach_comments option when parsing instead of calling this method afterward. github.com - Removed
pm_string_owned_init
pm_string_t is now a view of bytes owned elsewhere, so use pm_string_init instead. github.com - Removed
Prism.Pack
Prism::Pack is gone, so code using it must be changed. github.com - Renamed
MatchPredicateNode.operator_loc
The old name still works in the Ruby layer, but new code should use the new name. github.com - Renamed
newline_list
Use list_offset_list in the C and Rust interfaces. github.com - Renamed
pm_string_constant_init
Use pm_string_init, which takes the bytes as const uint8_t *. github.com - Renamed
UnlessNode.keyword_loc
The old name still works in the Ruby layer, but new code should use the new name. github.com - Renamed
UntilNode.closing_loc
The old names still work in the Ruby layer, but new code should use the new names. github.com - Renamed
UntilNode.keyword_loc
The old names still work in the Ruby layer, but new code should use the new names. github.com - Renamed
WhenNode.keyword_loc
The old name still works in the Ruby layer, but new code should use the new name. github.com - Renamed
WhileNode.closing_loc
The old names still work in the Ruby layer, but new code should use the new names. github.com - Renamed
WhileNode.keyword_loc
The old names still work in the Ruby layer, but new code should use the new names. github.com - Behavior changed
BACKTICK
The token is split, so code matching BACKTICK may need to also handle XSTRING_BACKTICK. github.com - 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 - Behavior changed
NEWLINE
The token is split, so code matching NEWLINE may need to also handle NEWLINE_TERMINATOR. github.com - Behavior changed
PARENTHESIS_LEFT
The token is split, so code matching PARENTHESIS_LEFT may need to also handle PARENTHESIS_LEFT_GROUPING. github.com - Behavior changed
parse
The parse method no longer transcodes input to UTF-16 and only accepts Uint8Array. github.com - 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 - 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 - 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 - Behavior changed
WORDS_SEP
The token is split, so code matching WORDS_SEP may need to also handle WORDS_SEP_IMPLICIT. github.com - 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 - Signature changed
Diagnostic.message
Diagnostic::message now returns &[u8] instead of &str. github.com - Signature changed
ParseResult.new
Comments now live on the source, so ParseResult.new no longer accepts a comments argument. github.com - 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 - 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 - Signature changed
Prism.Source.for
The second and third positional parameters are now required and can no longer be omitted. github.com
prism 1.0.0 breaking changes
- Renamed
CaseMatchNode.consequent
The old name still works but emits a deprecation warning. Switch to CaseMatchNode#else_clause. github.com - Renamed
CaseNode.consequent
The old name still works but emits a deprecation warning. Switch to CaseNode#else_clause. github.com - Renamed
IfNode.consequent
The old name still works but emits a deprecation warning. Switch to IfNode#subsequent. github.com - Renamed
RescueNode.consequent
The old name still works but emits a deprecation warning. Switch to RescueNode#subsequent. github.com - Renamed
UnlessNode.consequent
The old name still works but emits a deprecation warning. Switch to UnlessNode#else_clause. github.com - Behavior changed
Chained range operators that previously parsed are now rejected. Add parentheses to make the grouping explicit. github.com - Behavior changed
Code using multi-writes outside statement level now fails to parse. Move such assignments to statement level. github.com - Behavior changed
Code with invalid return statements that used to parse is now reported as an error. github.com
prism 0.30.0 breaking changes
- 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
prism 0.29.0 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 - Behavior changed
Keyword parameter names ending in ! or ? are no longer allowed and must be renamed. github.com - Behavior changed
Code using implicit hash patterns inside array patterns is no longer accepted and must use explicit braces. github.com - Behavior changed
Surrogate code points in Unicode escape sequences are now validated and rejected. github.com - Behavior changed
Parsing invalid implicit local variable writes now produces an error where it was previously accepted. github.com
prism 0.28.0 breaking changes
- Behavior changed
A static literal string may now directly interpolate another static literal string, matching CRuby. github.com - Behavior changed
The bundled RBI type signatures no longer use generics, which can affect Sorbet type checking of user code. github.com - Behavior changed
All translation layers now assume an eval context, so invalid jumps like yield are no longer reported as errors. github.com - 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
prism 0.27.0 breaking changes
- Renamed
DoubleField
The reflection class DoubleField was renamed to FloatField. Code that references DoubleField must use FloatField instead. github.com - 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 - 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
Older versions
11 older versions, each with its first changes. Sign up to see every change
Show 11 older versions
prism 0.26.0 breaking changes
- 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
prism 0.24.0 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 - 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
prism 0.23.0 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 - 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
And 1 more in this version.
prism 0.22.0 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 - 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
prism 0.21.0 breaking changes
- 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
prism 0.20.0 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 - 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
And 3 more in this version.
prism 0.19.0 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 - 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
And 1 more in this version.
prism 0.18.0 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 - Removed
StringConcatNode
StringConcatNode no longer exists; adjacent string concatenation is represented by InterpolatedStringNode as a list. Code referencing StringConcatNode must be updated. github.com
And 5 more in this version.
prism 0.17.0 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 - 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
And 1 more in this version.
prism 0.16.0 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 - Removed
RequiredDestructuredParameterNode
RequiredDestructuredParameterNode has been removed; destructured required parameters now use MultiTargetNode. Code referencing the old node must switch to MultiTargetNode. github.com
And 2 more in this version.
prism 0.14.0 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 - 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
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.