Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 25, 2022

Bumps syntax_tree from 2.2.0 to 2.3.1.

Changelog

Sourced from syntax_tree's changelog.

[2.3.1] - 2022-04-22

Changed

  • SyntaxTree::If nodes inside of SyntaxTree::Command arguments should include a space before if they are flat.

[2.3.0] - 2022-04-22

Added

  • #52 - SyntaxTree::Formatter.format for formatting an already parsed node.
  • #56 - if and unless can now be transformed into ternaries if they're simple enough.
  • #56 - Nicely format call chains by one indentation.
  • #56 - Handle trailing operators in call chains when they are necessary because of comments.
  • #56 - Add some specialized formatting for Sorbet sig blocks to make them appear nicer.

Changed

  • #53 - Optional keyword arguments on method declarations have a value of nil now instead of false. This makes it easier to use the visitor.
  • #54 - Flow control operators can now skip parentheses for simple, individual arguments. e.g., break(1) becomes break 1.
  • #54 - Don't allow modifier conditionals to modify ternaries.
  • #55 - Skip parentheses and brackets on arrays for flow control operators. e.g., break([1, 2, 3]) becomes break 1, 2, 3.
  • #56 - Don't add parentheses to method calls if you don't need them.
  • #56 - Format comments on empty parameter sets. e.g., def foo # bar should keeps its comment.
  • #56 - %s[] symbols on assignments should not indent to the next line.
  • #56 - Empty hash and array literals with comments inside of them should be formatted correctly.
Commits
  • 1ea3b6a Bump to v2.3.1
  • e536c2a Bump to v2.3.0
  • 0975f49 Merge pull request #56 from ruby-syntax-tree/a-bunch-of-fixes
  • 752b494 More random fixes and simplification
  • b847e88 Specialized formatting for sorbet
  • 368889f Handle trailing operators if necessary
  • b75aa49 Better call chain formatting with method add blocks factored in
  • ffb6531 Even better chained calls
  • b7c0232 Format correctly for chained call nodes with arguments
  • e739d62 Alignment on command and command call for ternaries
  • 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 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)

Bumps [syntax_tree](https://github.com/kddnewton/syntax_tree) from 2.2.0 to 2.3.1.
- [Release notes](https://github.com/kddnewton/syntax_tree/releases)
- [Changelog](https://github.com/ruby-syntax-tree/syntax_tree/blob/main/CHANGELOG.md)
- [Commits](ruby-syntax-tree/syntax_tree@v2.2.0...v2.3.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Apr 25, 2022
@github-actions github-actions bot merged commit 415b628 into main Apr 25, 2022
@dependabot dependabot bot deleted the dependabot/bundler/syntax_tree-2.3.1 branch April 25, 2022 12:42
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant