Skip to content

Releases: adobe/elixir-styler

v0.9.0

12 Sep 13:50
Compare
Choose a tag to compare

Improvements

  • Added right-hand-pattern-matching rewrites to for and with left arrow expressions <-
    example: with map = %{} <- foo() => with %{} = map <- foo
  • with statement rewrites, solving the following credo rules
    • Credo.Check.Readability.WithSingleClause
    • Credo.Check.Refactor.RedundantWithClauseResult
    • Credo.Check.Refactor.WithClauses

v0.8.4

10 Aug 18:33
Compare
Choose a tag to compare

Fixes

Timex related fixes (#66):

  • Rewrite Timex.now/1 to DateTime.now!/1 instead of DateTime.utc_now/1
  • Only rewrite Timex.today/0, don't change Timex.today/1

v0.8.3

07 Aug 17:07
Compare
Choose a tag to compare

Improvements

  • DateTime rewrites (#62, ht @milmazz)
    • DateTime.compare => DateTime.{before/after} (elixir >= 1.15)
    • Timex.now => DateTime.utc_now
    • Timex.today => Date.utc_today

Fixes

  • Pipes: add ===, !==, and, or, != to list of valid infix operators (#64, ht @ugurtepecik)

v0.8.2

07 Aug 17:07
Compare
Choose a tag to compare

Fixes

  • Pipes always de-sugars keyword lists when unpiping them (#60)

v0.8.1

18 Jul 17:48
Compare
Choose a tag to compare

Fixes

  • ModuleDirectives doesn't mistake variables for directives (#57, h/t @leandrocp)

v0.8.0

22 Jun 21:27
Compare
Choose a tag to compare

Improvements (Bug Fix!?)

  • ModuleDirectives no longer throws comments around a file when hoisting directives up (#53)

v0.7.14

22 Jun 18:30
Compare
Choose a tag to compare

Improvements

  • rewrite Logger.warn/1,2 to Logger.warning/1,2 due to Elixir 1.15 deprecation

v0.7.13

19 Jun 15:40
Compare
Choose a tag to compare

Fixes

v0.7.12

19 Jun 15:41
Compare
Choose a tag to compare

Fixes

  • fix 0-arity paren removal on metaprogramming creating uncompilable code (h/t @simonprev)

v0.7.11

23 May 02:57
Compare
Choose a tag to compare

Fixes

  • fix crash from mix style running plugins as part of formatting (no longer runs formatter plugins) (@mhanberg)

Improvements

  • single-quote charlists are rewritten to use the ~c sigil ('foo' -> ~c'foo') (h/t @fhunleth)
  • mix style warns the user that Styler is primarily meant to be used as a plugin