v0.14.3
[0.14.3] - 2022-08-27
Fixed
General
- Fixed macOS aarch64 target in release workflow (#528)
- Fixed leading comments lost from an expression when excessive parentheses are removed from it (#530)
- Fixed comments present in a complex expression not forcing multiline hanging leading to a syntax error (#524)
- Take into account the extra line created when hanging at equals token in an assignment. This should prevent unnecessary hanging (#542)
- Fixed comments added to a newly created trailing comment not being formatted (#547)
- Fixed call chain with a small prefix not being kept inlined causing unstable formatting (#514)
- Fixed shape computation for table fields causing unnecessary expansion (#551)
- Fixed hanging the prefix string in
("str"):call
unnecessarily when it provides no benefit (#508) - Fixed table field value being expanded when it could be hanged instead (#541)
Luau
- Long union/interesection types inside of a parentheses will now cause the parentheses to expand multiline (#531)
- Fixed unnecessary break on
else
in an if-expression when the expression contains a comment (#520)
What's Changed
- Expand regression test suite by @JohnnyMorganz in #523
- Fix aarch64 target by @mvllow in #529
- Add changelog links by @LastTalon in #532
- Format type parentheses multiline if long union/intersection by @JohnnyMorganz in #536
- Keep leading comments when removing excess parentheses by @JohnnyMorganz in #537
- Fix collapsing when comment present in complex expr by @JohnnyMorganz in #538
- Remove unnecessary else break in if expression comments by @JohnnyMorganz in #539
- Create
@johnnymorganz/stylua-bin
installable through npm by @JohnnyMorganz in #540 - Take into account extra line when hanging assignment by @JohnnyMorganz in #544
- Temporarily disable BlizzardInterfaceCode in LST by @JohnnyMorganz in #546
- Format comments added to new trailing comma by @JohnnyMorganz in #548
- Keep small prefix inlined in call chain by @JohnnyMorganz in #550
- Fix table field shape calculation by @JohnnyMorganz in #552
- Don't attempt to hang a prefix string unnecessarily by @JohnnyMorganz in #545
- Prefer hanging table field value over expanding by @JohnnyMorganz in #553
New Contributors
Full Changelog: v0.14.2...v0.14.3