Releases: adobe/elixir-styler
Releases · adobe/elixir-styler
v0.10.4 -- The Frame.io Contributors Edition!
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
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
Improvements
with
: remove identity singleton else clause (eg else {:error, e} -> {:error, e} end
, else error -> error end
)
v0.10.1
Fixes
- Fix function head shrink-failures causing comments to jump into blocks (Closes #67, h/t @APB9785)
v0.10.0
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
Fixes
- rewrite pipes starting with
quote
blocks like we do with case|if|cond|with
blocks (#82, h/t @SteffenDE)
v0.9.5
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
Improvements
if
statements: drop else
clauses whose body is simply nil
v0.9.3
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)