Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Apr 1, 2025

Bumps styler from 1.2.1 to 1.4.1.

Release notes

Sourced from styler's releases.

v1.4.1

Improvements

  • to_timeout/1 rewrites to use the next largest unit in some simple instances

    # before
    to_timeout(second: 60 * m)
    to_timeout(day: 7)
    # after
    to_timeout(minute: m)
    to_timeout(week: 1)

Fixes

  • fixed styler raising when encountering invalid function definition ast

v1.4.0

Improvements

Alias Lifting

This release taught Styler to try just that little bit harder when doing alias lifting.

  • general improvements around conflict detection, lifting in more correct places and fewer incorrect places (#193, h/t @​jsw800)

  • use knowledge of existing aliases to shorten invocations (#201, h/t me)

    example:

      alias A.B.C
    

    A.B.C.foo()

    becomes:

      alias A.B.C
    

    C.foo()

Struct Updates => Map Updates

1.19 deprecates struct update syntax in favor of map update syntax.

# This
%Struct{x | y}
# Styles to this
%{x | y}

... (truncated)

Changelog

Sourced from styler's changelog.

1.4.1

Improvements

  • to_timeout/1 rewrites to use the next largest unit in some simple instances

    # before
    to_timeout(second: 60 * m)
    to_timeout(day: 7)
    # after
    to_timeout(minute: m)
    to_timeout(week: 1)

Fixes

  • fixed styler raising when encountering invalid function definition ast

1.4

  • A very nice change in alias lifting means Styler will make sure that your code is using the aliases that it's specified.
  • Shoutout to the smartrent folks for finding pipifying recursion issues
  • Elixir 1.17 improvements and fixes
  • Elixir 1.19-dev: delete struct updates

Read on for details.

Improvements

Alias Lifting

This release taught Styler to try just that little bit harder when doing alias lifting.

  • general improvements around conflict detection, lifting in more correct places and fewer incorrect places (#193, h/t @​jsw800)

  • use knowledge of existing aliases to shorten invocations (#201, h/t me)

    example: alias A.B.C

      A.B.C.foo()
      A.B.C.bar()
      A.B.C.baz()
    

    becomes: alias A.B.C

      C.foo()
      C.bar()
      C.baz()
    

... (truncated)

Commits
  • be4dcec v1.4.1
  • 1df5f1d fix CI for older elixir
  • 13320e9 dont crash on invalid defs
  • 8fe1ca0 defs test describe formatting
  • 3b0571e rewrite to_timeout(unit: x * m) to use larger units in some cases
  • 9990eb6 link to quokka
  • 941d067 fix with redundant body + non-arrow behind redundant clause. Closes #221
  • d3318fd Merge pull request #222 from halfdan/expand-matrix
  • 3d5a485 Add OTP26/27 but only run for 1.17/1.18
  • aaedd0c v1.4.0
  • 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 [styler](https://github.com/adobe/elixir-styler) from 1.2.1 to 1.4.1.
- [Release notes](https://github.com/adobe/elixir-styler/releases)
- [Changelog](https://github.com/adobe/elixir-styler/blob/main/CHANGELOG.md)
- [Commits](adobe/elixir-styler@v1.2.1...v1.4.1)

---
updated-dependencies:
- dependency-name: styler
  dependency-type: direct:development
  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 elixir Pull requests that update elixir code labels Apr 1, 2025
@dependabot dependabot bot requested a review from gdwoolbert3 as a code owner April 1, 2025 10: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 elixir Pull requests that update elixir code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants