Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update yarp requirement from >= 0.9, < 0.11 to >= 0.9, < 0.13 #10

Closed
wants to merge 2 commits into from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Sep 18, 2023

Updates the requirements on yarp to permit the latest version.

Release notes

Sourced from yarp's releases.

v0.12.0

Added

  • RegularExpressionNode#options and InterpolatedRegularExpressionNode#options are now provided. These return integers that match up to the Regexp#options API.
  • Greatly improved Node#inspect and Node#pretty_print APIs.
  • MatchLastLineNode and InterpolatedMatchLastLineNode are introduced to represent using a regular expression as the predicate of an if or unless statement.
  • IntegerNode now has a base flag on it.
  • Heredocs that were previously InterpolatedStringNode and InterpolatedXStringNode nodes without any actual interpolation are now StringNode and XStringNode, respectively.
  • StringNode now has a frozen? flag on it, which respects the frozen_string_literal magic comment.
  • Numbered parameters are now supported, and are properly represented using LocalVariableReadNode nodes.
  • ImplicitNode is introduced, which wraps implicit calls, local variable reads, or constant reads in omitted hash values.
  • YARP::Dispatcher is introduced, which provides a way for multiple objects to listen for certain events on the AST while it is being walked. This is effectively a way to implement a more efficient visitor pattern when you have many different uses for the AST.

Changed

  • BREAKING: Flags fields are now marked as private, to ensure we can change their implementation under the hood. Actually querying should be through the accessor methods.
  • BREAKING: AliasNode is now split into AliasMethodNode and AliasGlobalVariableNode.
  • Method definitions on local variables is now correctly handled.
  • Unary minus precedence has been fixed.
  • Concatenating character literals with string literals is now fixed.
  • Many more invalid syntaxes are now properly rejected.
  • BREAKING: Comments now no longer include their trailing newline.

v0.11.0

Added

  • Node#inspect is much improved.
  • YARP::Pattern is introduced, which can construct procs to match against nodes.
  • BlockLocalVariableNode is introduced to take the place of the locations array on BlockParametersNode.
  • ParseResult#attach_comments! is now provided to attach comments to locations in the tree.
  • MultiTargetNode is introduced as the target of multi writes and for loops.
  • Node#comment_targets is introduced to return the list of objects that can have attached comments.

Changed

  • BREAKING: GlobalVariable*Node#name now returns a symbol.
  • BREAKING: Constant*Node#name now returns a symbol.
  • BREAKING: BlockParameterNode, KeywordParameterNode, KeywordRestParameterNode, RestParameterNode, DefNode all have their name methods returning symbols now.
  • BREAKING: ClassNode#name and ModuleNode#name now return symbols.
  • BREAKING: Location#end_column is now exclusive instead of inclusive.
  • Location#slice now returns a properly encoded string.
  • CallNode#operator_loc is now CallNode#call_operator_loc.
  • CallOperatorAndWriteNode is renamed to CallAndWriteNode and its structure has changed.
  • CallOperatorOrWriteNode is renamed to CallOrWriteNode and its structure has changed.
Changelog

Sourced from yarp's changelog.

[0.12.0] - 2023-09-15

Added

  • RegularExpressionNode#options and InterpolatedRegularExpressionNode#options are now provided. These return integers that match up to the Regexp#options API.
  • Greatly improved Node#inspect and Node#pretty_print APIs.
  • MatchLastLineNode and InterpolatedMatchLastLineNode are introduced to represent using a regular expression as the predicate of an if or unless statement.
  • IntegerNode now has a base flag on it.
  • Heredocs that were previously InterpolatedStringNode and InterpolatedXStringNode nodes without any actual interpolation are now StringNode and XStringNode, respectively.
  • StringNode now has a frozen? flag on it, which respects the frozen_string_literal magic comment.
  • Numbered parameters are now supported, and are properly represented using LocalVariableReadNode nodes.
  • ImplicitNode is introduced, which wraps implicit calls, local variable reads, or constant reads in omitted hash values.
  • YARP::Dispatcher is introduced, which provides a way for multiple objects to listen for certain events on the AST while it is being walked. This is effectively a way to implement a more efficient visitor pattern when you have many different uses for the AST.

Changed

  • BREAKING: Flags fields are now marked as private, to ensure we can change their implementation under the hood. Actually querying should be through the accessor methods.
  • BREAKING: AliasNode is now split into AliasMethodNode and AliasGlobalVariableNode.
  • Method definitions on local variables is now correctly handled.
  • Unary minus precedence has been fixed.
  • Concatenating character literals with string literals is now fixed.
  • Many more invalid syntaxes are now properly rejected.
  • BREAKING: Comments now no longer include their trailing newline.

[0.11.0] - 2023-09-08

Added

  • Node#inspect is much improved.
  • YARP::Pattern is introduced, which can construct procs to match against nodes.
  • BlockLocalVariableNode is introduced to take the place of the locations array on BlockParametersNode.
  • ParseResult#attach_comments! is now provided to attach comments to locations in the tree.
  • MultiTargetNode is introduced as the target of multi writes and for loops.
  • Node#comment_targets is introduced to return the list of objects that can have attached comments.

Changed

  • BREAKING: GlobalVariable*Node#name now returns a symbol.
  • BREAKING: Constant*Node#name now returns a symbol.
  • BREAKING: BlockParameterNode, KeywordParameterNode, KeywordRestParameterNode, RestParameterNode, DefNode all have their name methods returning symbols now.
  • BREAKING: ClassNode#name and ModuleNode#name now return symbols.
  • BREAKING: Location#end_column is now exclusive instead of inclusive.
  • Location#slice now returns a properly encoded string.
  • CallNode#operator_loc is now CallNode#call_operator_loc.
  • CallOperatorAndWriteNode is renamed to CallAndWriteNode and its structure has changed.
  • CallOperatorOrWriteNode is renamed to CallOrWriteNode and its structure has changed.
Commits
  • 0d8d1be Merge pull request #1527 from ruby/v0_12_0
  • c711373 Bump to version 0.12.0
  • a20f976 Merge pull request #1508 from ruby/missing-clauses
  • 1ad7fba Handle missing clauses in case statement
  • b700c29 Merge pull request #1513 from ruby/fix-multi-target-validation
  • 5595fd8 Merge pull request #1497 from froydnj/froydnj-constant-pool-power-of-2
  • 8bffb8a Ensure multi targets are only in valid locations
  • 0d5be61 Merge pull request #1514 from ruby/alnum-percent
  • 1d84a76 Merge pull request #1361 from froydnj/froydnj-location-join
  • 4ba6d5c Alnum cannot be %-literal delimiters
  • Additional commits viewable in compare view

Dependabot compatibility score

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 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 <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Updates the requirements on [yarp](https://github.com/ruby/yarp) to permit the latest version.
- [Release notes](https://github.com/ruby/yarp/releases)
- [Changelog](https://github.com/ruby/yarp/blob/main/CHANGELOG.md)
- [Commits](ruby/prism@v0.10.0...v0.12.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Oct 2, 2023

Superseded by #13.

@dependabot dependabot bot closed this Oct 2, 2023
@dependabot dependabot bot deleted the dependabot/bundler/yarp-0.12.0 branch October 2, 2023 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants