GeezerVison is showing github.com — Bump prism from 1.9.0 to 2.1.0 by dependabot[bot] · Pull Request #381 · errbit/errbit_github_plugin
Conversation
Bumps prism from 1.9.0 to 2.1.0.
Release notes
Sourced from prism's releases.
v2.1.0
Added
- Add
Version::CRuby4_0 to the Rust bindings. Version::CRuby3_5 remains available but is deprecated in favor of the new name; both select Ruby 4.0 syntax.
- Let embedders set the allocation size for the first block allocated in an arena via
PM_ARENA_INITIAL_SIZE.
- Let embedders set the minimum initial size for the constant pool via
PM_CONSTANT_POOL_MIN_CAPACITY.
v2.0.0
Highlights
- Significant performance and memory usage improvements.
- Precompiled platform-specific variants on rubygems.org.
- Many documentation improvements, including a new playground.
- Prism now ships accurate and complete RBS and RBI definitions.
- The license is now owned by the Ruby developers.
- Prism now ships an official C++ interface.
Added
- Support for parsing Ruby 4.1 syntax:
- Add support for
&nil to declare that a method accepts no block.
- Thoroughly implement void value expression check.
- Allow trailing commas in method signatures like
def foo(a,); end.
- Reject
END { break } and END { next }.
a /b/ no longer warns about ambiguous /.
version: "nearest" is now supported. It behaves similarly to version: "current" but will not raise when the version is unsupported, instead falling back to the nearest syntax version prism currently supports.
raise_error was added as a valid option. Prism will raise a SyntaxError when given syntax-invalid code. When true is given, prism decides the formatting (tty?, NO_COLOR, etc.). If you need a specific style, :plain, :style, and :color are also supported values.
- Added
Prism::ParseResult#continuable to check if the parsed source can become valid by appending more code.
Prism.find takes a Method, UnboundMethod, Proc, or Thread::Backtrace::Location and returns the associated prism AST node.
ForwardingSuperNode now has keyword_loc.
- Allow pattern matching with prism nodes to match on location slices, like
node in Prism::StringNode[content: "foo"].
Prism.parse_file and similar now accept anything responding to to_path (like Pathname) directly.
attach_comments was added as a valid option. Each comment is attached to the node that ends latest on the comment's line before it, otherwise to the innermost node that contains it (or to that node's statements, if only whitespace and comments come between the comment and the statements), otherwise to the top-level statements. The attached comments are available through Node#comments and through pm_node_comments_size and pm_node_comment in the C API, as well as pm_parser_comment_attachment, pm_parser_comment_ranges_size, and pm_parser_comment_range, which expose the attachments grouped by node. When the option is set, the comments on the parse result are sorted by start offset.
StringQuery#keyword? was added to check if the string query matches a keyword.
Source#checksum was added to retrieve the checksum of the source content.
Changed
Note that for this major version, almost every change listed below is breaking.
- Prism now defaults to
version: "nearest" instead of version: "latest", so code is parsed with the syntax of the running Ruby (or the closest version prism supports). Pass version: "latest" to keep the previous behavior.
MissingNode has been replaced by ErrorRecoveryNode. ErrorRecoveryNode wraps unexpected nodes, so when walking syntax-invalid code you will now only need to handle this one specific node type.
- Some fields were renamed for consistency. Previous names are aliased and will continue to work in the Ruby layer.
InNode#{in,then}_loc -> InNode#{in,then}_keyword_loc
MatchPredicateNode#operator_loc -> MatchPredicateNode#keyword_loc
UnlessNode#keyword_loc -> UnlessNode#unless_keyword_loc
UntilNode#{keyword,closing}_loc -> UntilNode#{until,end}_keyword_loc
WhenNode#keyword_loc -> WhenNode#when_keyword_loc
WhileNode#{keyword,closing}_loc -> WhileNode#{while,end}_keyword_loc
- Optional locations like
StringNode#closing_loc in 'foo that were empty for syntax-invalid code will now be nil instead.
... (truncated)
Changelog
Sourced from prism's changelog.
[2.1.0] - 2026-10-28
Added
- Add
Version::CRuby4_0 to the Rust bindings. Version::CRuby3_5 remains available but is deprecated in favor of the new name; both select Ruby 4.0 syntax.
- Let embedders set the allocation size for the first block allocated in an arena via
PM_ARENA_INITIAL_SIZE.
- Let embedders set the minimum initial size for the constant pool via
PM_CONSTANT_POOL_MIN_CAPACITY.
[2.0.0] - 2026-10-21
Highlights
- Significant performance and memory usage improvements.
- Precompiled platform-specific variants on rubygems.org.
- Many documentation improvements, including a new playground.
- Prism now ships accurate and complete RBS and RBI definitions.
- The license is now owned by the Ruby developers.
- Prism now ships an official C++ interface.
Added
- Support for parsing Ruby 4.1 syntax:
- Add support for
&nil to declare that a method accepts no block.
- Thoroughly implement void value expression check.
- Allow trailing commas in method signatures like
def foo(a,); end.
- Reject
END { break } and END { next }.
a /b/ no longer warns about ambiguous /.
version: "nearest" is now supported. It behaves similarly to version: "current" but will not raise when the version is unsupported, instead falling back to the nearest syntax version prism currently supports.
raise_error was added as a valid option. Prism will raise a SyntaxError when given syntax-invalid code. When true is given, prism decides the formatting (tty?, NO_COLOR, etc.). If you need a specific style, :plain, :style, and :color are also supported values.
- Added
Prism::ParseResult#continuable to check if the parsed source can become valid by appending more code.
Prism.find takes a Method, UnboundMethod, Proc, or Thread::Backtrace::Location and returns the associated prism AST node.
ForwardingSuperNode now has keyword_loc.
- Allow pattern matching with prism nodes to match on location slices, like
node in Prism::StringNode[content: "foo"].
Prism.parse_file and similar now accept anything responding to to_path (like Pathname) directly.
attach_comments was added as a valid option. Each comment is attached to the node that ends latest on the comment's line before it, otherwise to the innermost node that contains it (or to that node's statements, if only whitespace and comments come between the comment and the statements), otherwise to the top-level statements. The attached comments are available through Node#comments and through pm_node_comments_size and pm_node_comment in the C API, as well as pm_parser_comment_attachment, pm_parser_comment_ranges_size, and pm_parser_comment_range, which expose the attachments grouped by node. When the option is set, the comments on the parse result are sorted by start offset.
StringQuery#keyword? was added to check if the string query matches a keyword.
Source#checksum was added to retrieve the checksum of the source content.
Changed
Note that for this major version, almost every change listed below is breaking.
- Prism now defaults to
version: "nearest" instead of version: "latest", so code is parsed with the syntax of the running Ruby (or the closest version prism supports). Pass version: "latest" to keep the previous behavior.
MissingNode has been replaced by ErrorRecoveryNode. ErrorRecoveryNode wraps unexpected nodes, so when walking syntax-invalid code you will now only need to handle this one specific node type.
- Some fields were renamed for consistency. Previous names are aliased and will continue to work in the Ruby layer.
InNode#{in,then}_loc -> InNode#{in,then}_keyword_loc
MatchPredicateNode#operator_loc -> MatchPredicateNode#keyword_loc
UnlessNode#keyword_loc -> UnlessNode#unless_keyword_loc
UntilNode#{keyword,closing}_loc -> UntilNode#{until,end}_keyword_loc
WhenNode#keyword_loc -> WhenNode#when_keyword_loc
... (truncated)
Commits
ca15cb3 Bump to v2.1.0
f654777 Bump org.apache.maven.plugins:maven-surefire-plugin
841eb2b Move fuzz tests under test
9016780 Move cpp tests under test
19762c9 Test embedded in CI
7ed8c71 Let an embedder set PM_CONSTANT_POOL_MIN_CAPACITY
ff42521 Include sys/types.h before inttypes.h again, for newlib
f7a062e Let an embedder set PM_ARENA_INITIAL_SIZE
557cffe Avoid vsnprintf when possible
30a2555 Scratch arena
- Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase will rebase this PR
@dependabot recreate will recreate this PR, overwriting any edits that have been made to it
@dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
@dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Labels
dependencies
Pull requests that update a dependency file
ruby
Pull requests that update ruby code
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|