Skip to content

Releases: WhatsApp/erlfmt

Support OTP 27 features

03 Sep 10:51
Compare
Choose a tag to compare

v1.5.0 (03.09.2024)

Enhancements

Fixes

  • Apply exclude_files to files absolute paths - mixing relative & absolute paths could lead to
    unexpected behaviour before

Support for trailing content in ignore tags

28 Aug 12:02
Compare
Choose a tag to compare

v1.4.0 (28.08.2024)

Enhancements

  • Support trailing content on ignore comments
  • Support (and recommend) erlfmt:ignore-style ignore comments to align with ELP & eqWAlizer

Fixes

  • Fix compiler warnings on OTP 27

Support for maybe and map comprehensions

08 Nov 20:40
Compare
Choose a tag to compare

v1.3.0 (08.11.2023)

Enhancements

  • Support map comprehensions, import_type attribute, and maybe constructs

POTENTIAL RE-FORMATTING

All "raw" maybe and else atoms will be automatically re-quoted to make
the code compatible with the maybe feature, if enabled.
After the transformation the code will be compatible with the maybe feature
both enabled & disabled.

v1.2.0

24 Mar 17:30
Compare
Choose a tag to compare

Enhancements

  • Support erlfmt-ignore-begin, erlfmt-ignore-end to skip multiple top-level forms

Support formatting PIDs, Refs, Ports

29 Jul 16:52
Compare
Choose a tag to compare

v1.1.0 (29.07.2022)

Enhancements

  • Handle try clauses in define
  • Support formatting PIDs, Refs, Ports
  • Handle ;-separated guards in macro expressions

Fixes

  • Ensure proper IO opts when reading from stdin
  • Handle Int#{} edge case without crashing

1.0.0 Release

30 Jun 09:16
b856b95
Compare
Choose a tag to compare

No changes

1.0 Release Candidate 3.2

24 Jun 15:04
0909258
Compare
Choose a tag to compare

Fixes

  • Formatting Ranges support for opt-out pragmas #311

Release Candidate 3.1

23 Jun 16:48
d4efabf
Compare
Choose a tag to compare

Enhancements

  • Introduce semi-expanded format for containers #309

1.0 Release Candidate 3

21 Jun 05:57
36986b2
Compare
Choose a tag to compare

Enhancements

  • Add --range as a command line option #299, #300, #295
  • Introduce semi-expanded format for function calls #305
  • Introduce noformat pragma #302

Fixes

  • Return exit code 2 when option isn't recognized #304

1.0 Release Candidate 2.1

10 May 13:59
ca8a237
Compare
Choose a tag to compare

Fixes

  • fix replace pragma to not crash on two blocks of comments