Skip to content

stylua 2.6.0 - #317141

Merged
BrewTestBot merged 2 commits into
mainfrom
bump-stylua-2.6.0
Oct 10, 2026
Merged

BrewTestBot merged 2 commits into
mainfrom
bump-stylua-2.6.0

Conversation

@BrewTestBot

Copy link
Copy Markdown
Contributor

Created by brew bump


Created with brew bump-formula-pr.

Details

release notes
## [2.6.0] - 2026-10-10

Added

  • Luau: Added support for if local / if const condition bindings in both if statements and if expressions (e.g. if local x = getValue() then ... end)
  • Added Input mode for collapse_simple_statement, preserving whether simple statements are single-line or multi-line in the input while still formatting their contents (#1112)

Fixed

  • Fixed range formatting indenting statements one level too shallow when nested inside a function expression within a table constructor (#1145)
  • Fixed -- stylua: ignore start/end ranges inside multiline tables reformatting the ignored fields (#1134)
  • When using range formatting, semicolons outside of the provided range are no longer incorrectly formatted (#1147)
  • Luau: Fixed sort requires not recognizing imports declared with const, e.g. const Foo = require(path)
  • Luau: Fixed the read/write access modifier merging into the element type in array type shorthand, changing the meaning of the code ({ read Foo } was formatted as { readFoo }) (#1126)
  • Fixed single-line comments in CRLF files gaining an extra carriage return (\r\r\n) on every format when line_endings = "Windows", and keeping their original \r\n when formatting to Unix line endings (#1167)

External Contributions

New Contributors

Full Changelog: JohnnyMorganz/StyLua@v2.5.2...v2.6.0

View the full release notes at https://github.com/JohnnyMorganz/StyLua/releases/tag/v2.6.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 Oct 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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

Caution

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 Oct 10, 2026
@BrewTestBot
BrewTestBot enabled auto-merge October 10, 2026 18:33
@BrewTestBot
BrewTestBot added this pull request to the merge queue Oct 10, 2026
Merged via the queue into main with commit 05ccc49 Oct 10, 2026
23 checks passed
@BrewTestBot
BrewTestBot deleted the bump-stylua-2.6.0 branch October 10, 2026 18:44
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.

2 participants