Skip to content

Conversation

@clason
Copy link
Contributor

@clason clason commented Apr 21, 2025

Created with brew bump-formula-pr.

Details

release notes
## [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 of ubuntu-20.04. This may mean the pre-built release artifacts published to GitHub no longer work on ubuntu-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

New Contributors

Full Changelog: JohnnyMorganz/StyLua@v2.0.2...v2.1.0

@github-actions github-actions bot added rust Rust use is a significant feature of the PR or issue bump-formula-pr PR was created using `brew bump-formula-pr` labels Apr 21, 2025
@github-actions
Copy link
Contributor

🤖 An automated task has requested bottles to be published to this PR.

Please do not push to this PR branch before the bottle commits have been pushed, as this results in a state that is difficult to recover from. If you need to resolve a merge conflict, please use a merge commit. Do not force-push to this PR branch.

@github-actions github-actions bot added the CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. label Apr 21, 2025
@BrewTestBot BrewTestBot enabled auto-merge April 21, 2025 23:08
@BrewTestBot BrewTestBot added this pull request to the merge queue Apr 21, 2025
Merged via the queue into Homebrew:master with commit 7c46c50 Apr 21, 2025
14 checks passed
@clason clason deleted the bump-stylua-2.1.0 branch April 26, 2025 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bump-formula-pr PR was created using `brew bump-formula-pr` CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. rust Rust use is a significant feature of the PR or issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants