Skip to content

Releases: WhatsApp/erlfmt

Support OTP 28 features

13 Jun 09:13
Compare
Choose a tag to compare

v1.7.0 (13.06.2025)

Enhancements

  • Support for zip and strict generators in comprehensions from OTP 28
  • Support for nominal types from OTP 28
  • Support some partially invalid code - e.g. case or receive with no clauses

Fixes

  • Fix crash with sigils inside ignored sections
  • Improve erlfmt:error_info() type

v1.6.2

25 Apr 14:09
Compare
Choose a tag to compare

v1.6.2 (25.04.2025)

Fixes

  • Fix crash when two erlfmt-ignore-begin/end blocks immediately followed

v1.6.1

04 Apr 11:18
Compare
Choose a tag to compare

v1.6.1 (04.04.2025)

Fixes

  • Fix crash when formatting an indented tripple quoted string with empty lines

Full Changelog: v1.6.0...v1.6.1

Handle trailing commas and semicolons

29 Jan 13:40
Compare
Choose a tag to compare

v1.6.0 (29.01.2025)

Enhancements

  • Parse code with trailing commas and semicolons and just remove them when reprinting

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