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

Bump styler from 0.10.2 to 0.11.3 #476

Merged
merged 1 commit into from
Jan 8, 2024
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 8, 2024

Bumps styler from 0.10.2 to 0.11.3.

Release notes

Sourced from styler's releases.

v0.11.3

Fixes

  • directives: fix infinite loop when encountering @spec import(...) :: ... (Closes #115, h/t @​kerryb)
  • with: fix deletion of arrow-less with statements within function invocations

v0.11.2

Fixes

  • pipes: fix unpiping do-blocks into variables when the parent expression is a function invocation like a(if x do y end |> z(), b) (Closes #114, h/t @​wkirschbaum)

v0.11.1

Fixes

  • with: fix with replacement when it's the only child of a do or -> block (Closes #107, h/t @​kerryb -- turns out those edge cases did exist in the wild!)

v0.11.0

Improvements

Comments

Styler will no longer make comments jump around in any situation, and will move comments with the appropriate node in all cases but module directive rearrangement (where they'll just be left behind - sorry! we're still working on it).

  • Keep comments in logical places when rewriting if/unless/cond/with (#79, #97, #101, #103)

with Statements

This release has a slew of improvements for with statements. It's not surprising that there's lots of style rules for with given that just about any case, if, or even cond do could also be expressed as a with. They're very powerful! And with great power...

  • style trivial pattern matches ala lhs <- rhs to lhs = rhs (#86)
  • style _ <- rhs to rhs
  • style keyword , do: to do end rather than wrapping multiple statements in parens
  • rewrite as an if statement when appropriate (#100)

Other

  • Rewrite {Map|Keyword}.merge(single_key: value) to use put/3 instead (#96)

Fixes

  • with: various edge cases we can only hope no one's encountered and thus never reported

v0.10.5

After being bitten by two of them in a row, Styler's test suite now makes sure that there are no idempotency bugs as part of its tests.

In short, we now have assert style(x) == style(style(x)) as part of every test. Sorry for not thinking to include this before :)

Fixes

... (truncated)

Changelog

Sourced from styler's changelog.

v0.11.3

Fixes

  • directives: fix infinite loop when encountering @spec import(...) :: ... (Closes #115, h/t @​kerryb)
  • with: fix deletion of arrow-less with statements within function invocations

v0.11.2

Fixes

  • pipes: fix unpiping do-blocks into variables when the parent expression is a function invocation like a(if x do y end |> z(), b) (Closes #114, h/t @​wkirschbaum)

v0.11.1

Fixes

  • with: fix with replacement when it's the only child of a do or -> block (Closes #107, h/t @​kerryb -- turns out those edge cases did exist in the wild!)

v0.11.0

Improvements

Comments

Styler will no longer make comments jump around in any situation, and will move comments with the appropriate node in all cases but module directive rearrangement (where they'll just be left behind - sorry! we're still working on it).

  • Keep comments in logical places when rewriting if/unless/cond/with (#79, #97, #101, #103)

With Statements

This release has a slew of improvements for with statements. It's not surprising that there's lots of style rules for with given that just about any case, if, or even cond do could also be expressed as a with. They're very powerful! And with great power...

  • style trivial pattern matches ala lhs <- rhs to lhs = rhs (#86)
  • style _ <- rhs to rhs
  • style keyword , do: to do end rather than wrapping multiple statements in parens
  • style statements all the way to if statements when appropriate (#100)

Other

  • Rewrite {Map|Keyword}.merge(single_key: value) to use put/3 instead (#96)

Fixes

  • with: various edge cases we can only hope no one's encountered and thus never reported

v0.10.5

After being bitten by two of them in a row, Styler's test suite now makes sure that there are no

... (truncated)

Commits
  • 7dbea2d v0.11.3
  • 241b1a1 Indulge my need to make private apis prettier with some 🍐s!
  • 8747527 with: fix bug in replacement within function invocations or assignments
  • bc90906 Fix: module directives locking on @spec import(...). Closes #115
  • eb18a1b v0.11.2
  • 912c877 Fix: unpiped do-blocks with function invocation parents. Closes #114
  • f8d53eb Revert "Add support for negated Enum.any? -> Enum.empty? (#111)"
  • 1cdc7a2 Add support for negated Enum.any? -> Enum.empty? (#111)
  • e5f6c63 v0.11.1
  • f16b65c fix: with replacement edge cases (#108)
  • 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 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 [styler](https://github.com/adobe/elixir-styler) from 0.10.2 to 0.11.3.
- [Release notes](https://github.com/adobe/elixir-styler/releases)
- [Changelog](https://github.com/adobe/elixir-styler/blob/main/CHANGELOG.md)
- [Commits](adobe/elixir-styler@v0.10.2...v0.11.3)

---
updated-dependencies:
- dependency-name: styler
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file elixir Pull requests that update Elixir code labels Jan 8, 2024
@remi
Copy link
Member

remi commented Jan 8, 2024

@dependabot merge

@dependabot dependabot bot merged commit 9baa052 into main Jan 8, 2024
1 check passed
@dependabot dependabot bot deleted the dependabot/hex/styler-0.11.3 branch January 8, 2024 19:43
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 elixir Pull requests that update Elixir code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant