Skip to content

Bump prism from 0.22.0 to 0.30.0#282

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/prism-0.30.0
Closed

Bump prism from 0.22.0 to 0.30.0#282
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/prism-0.30.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Jun 10, 2024

Bumps prism from 0.22.0 to 0.30.0.

Release notes

Sourced from prism's releases.

v0.30.0

Added

  • More correctly raise mixed encoding errors.
  • Implement ambiguous binary operator warning.
  • Fix up regexp escapes with control and meta characters.
  • Fix up support for the it implicit local variable.
  • Heredoc identifiers now properly disallow CLRF.
  • Errors added for void value expressions in begin clauses.
  • Many updates to more closely match the parser gem in parser translation.
  • Many errors added for invalid regular expressions.

Changed

  • Handle parser translation missing the parser gem.
  • Handle ruby_parser translation missing the ruby_parser gem.
  • Various error messages have been updated to more closely match CRuby.
  • RationalNode now has a numerator and denominator field instead of a numeric field. For the Ruby API we provide a RationalNode#numeric method for backwards-compatibility.

v0.29.0

Added

  • Added Prism::CallNode#full_message_loc, which gives the location including the = if there is one.
  • A warning for when # shareable_constant_value is not used on its own line.
  • An error for invalid implicit local variable writes.
  • Implicit hash patterns in array patterns are disallowed.
  • We now validate that Unicode escape sequences are not surrogates.

Changed

  • All fields named operator have been renamed to binary_operator for *OperatorWriteNode nodes. This is to make it easier to provide C++ support. In the Ruby API, the old fields are aliased to the new fields with a deprecation warning.
  • Many updated error messages to more closely match CRuby.
  • We ensure keyword parameters do not end in ! or ?.
  • Fixed some escaping in string literals with control sequences and hex escapes.
  • Fix a bug with RBS types when used outside the ruby/prism codebase.

v0.28.0

Added

  • Nested hashes will now warn for duplicated keys, as in: { foo: 1, **{ foo: 2 } }.
  • Prism::ReturnNode now has a flag on it to indicate if it is redundant.
  • Prism::Location#slice_lines and Prism::Node#slice_lines are now provided to slice the source code of a node including the content before the node on the same line that it starts on and the content after the node on the same line that it ends on.
  • Symbols with invalid byte sequences now give errors.
  • You can now pass "3.3.1" to the version: parameter on all Prism.* APIs.
  • Prism::Source#lines, Prism::Location#source_lines, Prism::Node#source_lines, and Prism::Node#script_lines are now provided, which will all return the source code of the source as an array of strings.
  • Prism::ASCIISource is now provided, which is a subclass of Prism::Source but specialized to increase performance when the source is entirely ASCII.
  • Prism now provides errors when parsing Ruby 3.4+ syntax for index expressions with keywords or blocks.
  • Prism now provides an error when **nil is used after other keyword parameters.
  • Prism now provides errors when safe navigation is used in call target expressions, e.g., foo&.bar, = 1.
  • Prism::Node#tunnel is now provided, which returns an array of nodes starting at the current node that contain a given line and column.

... (truncated)

Changelog

Sourced from prism's changelog.

[0.30.0] - 2024-06-07

Added

  • More correctly raise mixed encoding errors.
  • Implement ambiguous binary operator warning.
  • Fix up regexp escapes with control and meta characters.
  • Fix up support for the it implicit local variable.
  • Heredoc identifiers now properly disallow CLRF.
  • Errors added for void value expressions in begin clauses.
  • Many updates to more closely match the parser gem in parser translation.
  • Many errors added for invalid regular expressions.

Changed

  • Handle parser translation missing the parser gem.
  • Handle ruby_parser translation missing the ruby_parser gem.
  • Various error messages have been updated to more closely match CRuby.
  • RationalNode now has a numerator and denominator field instead of a numeric field. For the Ruby API we provide a RationalNode#numeric method for backwards-compatibility.

[0.29.0] - 2024-05-10

Added

  • Added Prism::CallNode#full_message_loc, which gives the location including the = if there is one.
  • A warning for when # shareable_constant_value is not used on its own line.
  • An error for invalid implicit local variable writes.
  • Implicit hash patterns in array patterns are disallowed.
  • We now validate that Unicode escape sequences are not surrogates.

Changed

  • All fields named operator have been renamed to binary_operator for *OperatorWriteNode nodes. This is to make it easier to provide C++ support. In the Ruby API, the old fields are aliased to the new fields with a deprecation warning.
  • Many updated error messages to more closely match CRuby.
  • We ensure keyword parameters do not end in ! or ?.
  • Fixed some escaping in string literals with control sequences and hex escapes.
  • Fix a bug with RBS types when used outside the ruby/prism codebase.

[0.28.0] - 2024-05-03

Added

  • Nested hashes will now warn for duplicated keys, as in: { foo: 1, **{ foo: 2 } }.
  • Prism::ReturnNode now has a flag on it to indicate if it is redundant.
  • Prism::Location#slice_lines and Prism::Node#slice_lines are now provided to slice the source code of a node including the content before the node on the same line that it starts on and the content after the node on the same line that it ends on.
  • Symbols with invalid byte sequences now give errors.
  • You can now pass "3.3.1" to the version: parameter on all Prism.* APIs.
  • Prism::Source#lines, Prism::Location#source_lines, Prism::Node#source_lines, and Prism::Node#script_lines are now provided, which will all return the source code of the source as an array of strings.
  • Prism::ASCIISource is now provided, which is a subclass of Prism::Source but specialized to increase performance when the source is entirely ASCII.
  • Prism now provides errors when parsing Ruby 3.4+ syntax for index expressions with keywords or blocks.

... (truncated)

Commits
  • 8e7d126 Bump to v0.30.0
  • 1528d3c Handle chomped bytesize with lines without newlines
  • d218e65 Document that nested heredocs are not properly parsed for parser
  • 100340b Ensure inner heredoc nodes have the correct location
  • 4a9a7a6 Use correct newlines for heredoc inner lines
  • 8b54e16 Reverse-sync CRuby
  • 90d570a Reject additional patterns under splat in target
  • a4fe79f Provide some docs on differences to ripper, fixes https://github.com/ruby/pri...
  • f5c883a Add some code samples
  • 6a4fe21 Add some samples for using prism APIs
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR 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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [prism](https://github.com/ruby/prism) from 0.22.0 to 0.30.0.
- [Release notes](https://github.com/ruby/prism/releases)
- [Changelog](https://github.com/ruby/prism/blob/main/CHANGELOG.md)
- [Commits](ruby/prism@v0.22.0...v0.30.0)

---
updated-dependencies:
- dependency-name: prism
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code labels Jun 10, 2024
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Aug 29, 2024

Superseded by #327.

@dependabot dependabot Bot closed this Aug 29, 2024
@dependabot dependabot Bot deleted the dependabot/bundler/prism-0.30.0 branch August 29, 2024 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants