Releases: WhatsApp/erlfmt
Releases · WhatsApp/erlfmt
Support OTP 27 features
v1.5.0 (03.09.2024)
Enhancements
- Support OTP 27 sigils https://www.erlang.org/blog/highlights-otp-27/#sigils
- Support OTP 27 triple-quoted strings https://www.erlang.org/blog/highlights-otp-27/#triple-quoted-strings
- Support new documentation attributes
Fixes
- Apply
exclude_files
tofiles
absolute paths - mixing relative & absolute paths could lead to
unexpected behaviour before
Support for trailing content in ignore tags
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
v1.3.0 (08.11.2023)
Enhancements
- Support map comprehensions,
import_type
attribute, andmaybe
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
Enhancements
- Support
erlfmt-ignore-begin
,erlfmt-ignore-end
to skip multiple top-level forms
Support formatting PIDs, Refs, Ports
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
No changes
1.0 Release Candidate 3.2
Fixes
- Formatting Ranges support for opt-out pragmas #311
Release Candidate 3.1
Enhancements
- Introduce semi-expanded format for containers #309
1.0 Release Candidate 3
1.0 Release Candidate 2.1
Fixes
- fix replace pragma to not crash on two blocks of comments