chore: update JohnnyMorganz/StyLua (2.5.2 → 2.6.0) #4

Merged
Wuast94 merged 1 commit from updatarr/johnnymorganz-stylua-0b6f0ef165 into main 2026-10-15 01:46:10 +02:00
Owner

Updates JohnnyMorganz/StyLua.

Automerge: Disabled because no Updatarr config was found

Updates

Dependency From To Type Locations
JohnnyMorganz/StyLua 2.5.2 2.6.0 minor .forgejo/workflows/publish.yml L17
Release notes: JohnnyMorganz/StyLua

v2.6.0 v2.6.0

[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: https://github.com/JohnnyMorganz/StyLua/compare/v2.5.2...v2.6.0

Source

Release

Compare source

Updates <code>JohnnyMorganz/StyLua</code>. Automerge: Disabled because no Updatarr config was found ### Updates | Dependency | From | To | Type | Locations | | --- | --- | --- | --- | --- | | <code>JohnnyMorganz/StyLua</code> | <code>2.5.2</code> | <code>2.6.0</code> | minor | <code>.forgejo/workflows/publish.yml</code> L17 | <details> <summary>Release notes: <code>JohnnyMorganz/StyLua</code></summary> #### <code>v2.6.0</code> <code>v2.6.0</code> ## [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](https://github.com/JohnnyMorganz/StyLua/pull/1112)) ### Fixed - Fixed range formatting indenting statements one level too shallow when nested inside a function expression within a table constructor ([#1145](https://github.com/JohnnyMorganz/StyLua/issues/1145)) - Fixed `-- stylua: ignore start`/`end` ranges inside multiline tables reformatting the ignored fields ([#1134](https://github.com/JohnnyMorganz/StyLua/issues/1134)) - When using range formatting, semicolons outside of the provided range are no longer incorrectly formatted ([#1147](https://github.com/JohnnyMorganz/StyLua/issues/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](https://github.com/JohnnyMorganz/StyLua/issues/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](https://github.com/JohnnyMorganz/StyLua/pull/1167)) --- ## External Contributions * Mention conform.nvim as a Neovim formatter plugin that supports stylua by @alerque in https://github.com/JohnnyMorganz/StyLua/pull/1124 * Clarify the syntax for command-line formatting configuration by @kormide in https://github.com/JohnnyMorganz/StyLua/pull/1132 * Fix sort_requires not recognizing `const` imports in luau by @ddashdev in https://github.com/JohnnyMorganz/StyLua/pull/1123 * Fix Luau array access modifier formatting by @Companion in https://github.com/JohnnyMorganz/StyLua/pull/1148 * Keep out-of-range semicolons when formatting a range by @GhostCoder6969 in https://github.com/JohnnyMorganz/StyLua/pull/1158 * support if-local and if-const by @annieetang in https://github.com/JohnnyMorganz/StyLua/pull/1160 * Add Input mode for collapse_simple_statement by @ddashdev in https://github.com/JohnnyMorganz/StyLua/pull/1112 ## New Contributors * @kormide made their first contribution in https://github.com/JohnnyMorganz/StyLua/pull/1132 * @ddashdev made their first contribution in https://github.com/JohnnyMorganz/StyLua/pull/1123 * @Companion made their first contribution in https://github.com/JohnnyMorganz/StyLua/pull/1148 * @GhostCoder6969 made their first contribution in https://github.com/JohnnyMorganz/StyLua/pull/1158 * @annieetang made their first contribution in https://github.com/JohnnyMorganz/StyLua/pull/1160 **Full Changelog**: https://github.com/JohnnyMorganz/StyLua/compare/v2.5.2...v2.6.0 <a href="https://github.com/JohnnyMorganz/StyLua">Source</a> <a href="https://github.com/JohnnyMorganz/StyLua/releases/tag/v2.6.0">Release</a> <a href="https://github.com/JohnnyMorganz/StyLua/compare/v2.5.2...main">Compare source</a> </details>
Wuast94 force-pushed updatarr/johnnymorganz-stylua-0b6f0ef165 from 763c2fa29b to 52c980b34d 2026-10-12 19:41:10 +02:00 Compare
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Wuast94/wuastbude-pack!4
No description provided.