Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
stylua-windows-x86_64.zip | 2025-04-21 | 2.6 MB | |
stylua-linux-x86_64-musl.zip | 2025-04-21 | 3.1 MB | |
stylua-linux-aarch64-musl.zip | 2025-04-21 | 3.0 MB | |
stylua-macos-aarch64.zip | 2025-04-21 | 2.8 MB | |
stylua-macos-x86_64.zip | 2025-04-21 | 2.9 MB | |
stylua-linux-x86_64.zip | 2025-04-21 | 3.1 MB | |
stylua-linux-aarch64.zip | 2025-04-21 | 3.0 MB | |
README.md | 2025-04-21 | 3.2 kB | |
v2.1.0 source code.tar.gz | 2025-04-21 | 430.1 kB | |
v2.1.0 source code.zip | 2025-04-21 | 706.6 kB | |
Totals: 10 Items | 21.7 MB | 0 |
[2.1.0] - 2025-04-21
Added
- Luau: Added support for parsing user-defined type functions (#938)
- Luau: Added support for parsing attributes (
@native
/@deprecated
) on functions - Added support for CfxLua (FiveM) syntax formatting. This is available with
syntax = "cfxlua"
(#855) - Added a pre-built binary release for
stylua-linux-aarch64-musl.zip
- Added error hints on parse failurse when a potential Lua syntax conflict is noticed (e.g., Lua 5.2 vs Luau syntax for labels
::
and generics>>
) (#960 / #962)
Changed
- Updated StyLua release GitHub action to
ubuntu-22.04
workers due to GitHub's deprecation ofubuntu-20.04
. This may mean the pre-built release artifacts published to GitHub no longer work onubuntu-20.04
and require a manual build.
Fixed
- Luau: fixed parentheses incorrectly removed in
(expr :: assertion) < foo
when multilining the expression, leading to a syntax error (#940) - Fixed panic when attempting to format a file outside of the current working directory when
--respect-ignores
is enabled (#969) - Fixed unnecessary semicolons being introduced at the end of statements when incorrectly determined as ambiguous (#963)
- Fixed malformed formatting of function calls where parentheses are removed but there are comments in between the parentheses and the expression. Now, we will keep the parentheses in these cases, except for trailing comments (#964)
- Fixed malformed formatting of table field expression when there are comments in between the equals and the value (#942)
External Contributions
- Bump fullmoon to 1.2.0 by @Ukendio in https://github.com/JohnnyMorganz/StyLua/pull/945
- fix: use "summary" for the missing
--check
error message by @eitamal in https://github.com/JohnnyMorganz/StyLua/pull/949 - Document --stdin-filepath in README.md by @notpeter in https://github.com/JohnnyMorganz/StyLua/pull/954
- Fix panic when
--respect-ignores --stdin-filepath
on external path to cwd by @phanen in https://github.com/JohnnyMorganz/StyLua/pull/969 - Support Cfx Lua Syntax by @Kuuzoo in https://github.com/JohnnyMorganz/StyLua/pull/972
New Contributors
- @Ukendio made their first contribution in https://github.com/JohnnyMorganz/StyLua/pull/945
- @eitamal made their first contribution in https://github.com/JohnnyMorganz/StyLua/pull/949
- @notpeter made their first contribution in https://github.com/JohnnyMorganz/StyLua/pull/954
- @phanen made their first contribution in https://github.com/JohnnyMorganz/StyLua/pull/969
- @Kuuzoo made their first contribution in https://github.com/JohnnyMorganz/StyLua/pull/972
Full Changelog: https://github.com/JohnnyMorganz/StyLua/compare/v2.0.2...v2.1.0