Skip to content

Releases: adobe/elixir-styler

v0.10.4 -- The Frame.io Contributors Edition!

05 Dec 15:18
Compare
Choose a tag to compare

Improvements

  • alias: delete noop single-module aliases (alias Foo, #87, h/t @mgieger)

Fixes

  • pipes: unnest all pipe starts in one pass (f(g(h(x))) |> j() => x |> h() |> g() |> f() |> j(), #94, h/t @tomjschuster)

v0.10.3

01 Dec 18:01
Compare
Choose a tag to compare

Improvements

  • charlists: leave charlist rewriting to elixir's formatter on elixir >= 1.15 (apparently we aren't the only people who thought that was a good idea!)

Fixes

  • charlists: rewrite empty charlist to use sigil ('' => ~c"")
  • pipes: don't blow up extracting fully-qualified macros (Foo.bar do end |> foo(), #91, h/t @NikitaNaumenko)

v0.10.2

20 Nov 21:33
Compare
Choose a tag to compare

Improvements

  • with: remove identity singleton else clause (eg else {:error, e} -> {:error, e} end, else error -> error end)

v0.10.1

07 Nov 21:13
Compare
Choose a tag to compare

Fixes

  • Fix function head shrink-failures causing comments to jump into blocks (Closes #67, h/t @APB9785)

v0.10.0

01 Nov 19:31
Compare
Choose a tag to compare

Improvements

  • hoist all block-starts to pipes to their own variables (makes styler play better with piped macros)

Fixes

  • fix pipes starting with a macro do-block creating invalid ast (#83, h/t @mhanberg)

v0.9.7

27 Oct 15:50
Compare
Choose a tag to compare

Fixes

  • rewrite pipes starting with quote blocks like we do with case|if|cond|with blocks (#82, h/t @SteffenDE)

v0.9.6

02 Oct 19:16
Compare
Choose a tag to compare

Breaking Change

  • removed mix style task

v0.9.5

22 Sep 16:44
Compare
Choose a tag to compare

Fixes

  • fix mistaking Timex.now/1 in a pipe for Timex.now/0 (#66, h/t @sabiwara)

Removed style

  • stop rewriting Timex.today/0 given that we allow Timex.today/1 -- too inconsistent.

v0.9.4

18 Sep 13:31
Compare
Choose a tag to compare

Improvements

  • if statements: drop else clauses whose body is simply nil

v0.9.3

15 Sep 15:21
Compare
Choose a tag to compare

Fixes

  • fix unless a do b else c end rewrites to if not flopping do/else bodies! (#77, h/t @jcowgar)
  • fix pipes styling ranges with steps (a..b//c) incorrectly (#76, h/t @cschmatzler)