v0.15.0
This release introduces support for Lua 5.3 and Lua 5.4!
When compiling/installing with cargo, pass --features lua53
or --features lua54
respectively. By default, the GitHub Releases build with Lua 5.3 and 5.4 enabled (but note issues such as #407)
Changes to GitHub Release Artifacts
This release changes the naming for binary artifacts. We now append the arch to the end of all artifacts
stylua-win64.zip
->stylua-windows-x86_64.zip
stylua-macos.zip
->stylua-macos-x86_64.zip
stylua-linux.zip
->stylua-linux-x86_64.zip
Linux aarch64 is also now supported, alongside macOS aarch64.
The old artifact naming is kept temporarily for backwards compatibility. We recommend any references to be changed, as these artifacts will no longer be produced in future versions.
[0.15.0] - 2022-09-21
Added
- Added support for Lua 5.3, gated behind the
lua53
feature flag (#534) - Added support for Lua 5.4, gated behind the
lua54
feature flag (#533) - Added
--allow-hidden
flag to allow entering and formatting hidden files/directories (#562) - Added
--output-format=summary
which can be used with--check
to output a summary of the list of files not correctly formatted (#573)
Changed
Fixed
- Precommit hook now supports downloading aarch64 binary for M1 macs (#558)
- Fixed mistransformations of generic for loop with comments in the expression list (#579)
- Fixed
then
/else
token not taken into account when formatting an if-expression (#582) - Fixed macos-aarch64 artifact for real
What's Changed
- Enforce locked on cargo publish by @JohnnyMorganz in #557
- Update pyproject to support installing on M1 machines by @IamTheFij in #558
- feat: add
--allow-hidden
option by @wincent in #563 - Allow alternative way to compute large scale diffs by @JohnnyMorganz in #564
- Don't expand call with nested comment by @JohnnyMorganz in #549
- Update external test cases by @github-actions in #521
- Add search parent dirs config for VSCode extension by @filiptibell in #568
- Fix release build target by @JohnnyMorganz in #569
- Improve comments within function calls by @JohnnyMorganz in #566
- Rename release targets and add linux-aarch64 by @IamTheFij in #559
- Fix aarch64 linux builds by @IamTheFij in #572
- Add
--output-format=summary
by @JohnnyMorganz in #575 - Fix mistransformation of generic for comments by @JohnnyMorganz in #580
- Update external test cases by @github-actions in #578
- Consider multiline comment when inlining function call by @JohnnyMorganz in #581
- Take into account token width for if expression formatting by @JohnnyMorganz in #583
- Add Lua 5.3 and 5.4 support with full-moon update by @JohnnyMorganz in #576
New Contributors
- @wincent made their first contribution in #563
- @filiptibell made their first contribution in #568
Full Changelog: v0.14.3...v0.15.0