Skip to content

Releases: adobe/elixir-styler

v1.0.0-rc.1

12 Jun 23:00

Choose a tag to compare

Lots of documentation added. Module Directives, Simple Style, and Control Flow are fleshed out. Pipes, Configs, and the manifesto prelude to control flow all need work still.

New Styles

  • Enum.into(x, []) => Enum.to_list(x)
  • Enum.into(x, [], mapper) => Enum.map(x, mapper)
  • a |> Enum.map(m) |> Enum.join() to map_join(a, m). we already did this for join/2, but missed the case for join/1

v1.0.0-rc.0

20 May 18:50

Choose a tag to compare

Please see the CHANGELOG for all 1.0.0 changes

At this point, 1.0.0 feels feature complete. Two things remains for a full release:

  1. feedback!
  2. documentation overhaul! monitor progress here

I believe it's safe to start using the 1.0 branch on your codebase. (We've been using it at Adobe since the alpha without issue). I'm releasing as an RC to reserve the ability to make a breaking change before shipping the final product, but I believe no additional breaking changes will occur and 1.0 will ship once I've wrapped documentation updates.

v1.0.0-alpha.0

18 Apr 20:27

Choose a tag to compare

v0.11.9

26 Jan 20:10

Choose a tag to compare

Improvements

  • pipes: check for Stream.foo equivalents to Enum.foo in a few more cases

Fixes

  • pipes: |> then(&(&1 op y)) rewrites with |> Kernel.op(y) as long as the operator is defined in Kernel; skips the rewrite otherwise (h/t @kerryb for the report & @saveman71 for the fix)

v0.11.8

25 Jan 19:40

Choose a tag to compare

Two releases in one day!? @koudelka made too good a point about Map.new having some siblings we were ignoring

Improvements

  • pipes: treat MapSet.new and Keyword.new the same way we do Map.new (h/t @koudelka)

v0.11.7

25 Jan 18:14

Choose a tag to compare

Improvements

  • deprecations: ~R -> ~r, Date.range/2 -> Date.range/3 with decreasing dates (h/t @milmazz)
  • if: rewrite if not x, do: y => unless x, do: y
  • pipes: |> Enum.map(foo) |> Map.new() => |> Map.new(foo)
  • pipes: remove unnecessary then/2 on named function captures: |> then(&foo/1) => |> foo(), |> then(&foo(&1, ...)) => |> foo(...) (thanks to @tfiedlerdejanze for the idea + impl!)

v0.11.6

25 Jan 18:13

Choose a tag to compare

Fixes

  • directives: maintain order of module compilation callbacks (@before_compile etc) relative to use statements (Closes #120, h/t @frankdugan3)

v0.11.5

18 Jan 14:34

Choose a tag to compare

Fixes

  • deprecations: fix parsing ranges with non-integer bounds like x..y (Closes #119, h/t @maennchen)

v0.11.4

17 Jan 21:08

Choose a tag to compare

Improvements

Shoutout @milmazz for all the deprecation work below =)

  • Deprecations: Rewrite 1.16 Deprecations (h/t @milmazz for all the work here)
    • add //1 step to Enum.slice/2|String.slice/2 with decreasing ranges
    • File.stream!(file, options, line_or_bytes) => File.stream!(file, line_or_bytes, options)
  • Deprecations: Path.safe_relative_to/2 => Path.safe_relative/2

v0.11.3

08 Jan 18:26

Choose a tag to compare

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