github JohnnyMorganz/StyLua v2.5.0

latest releases: v2.5.2, v2.5.1
6 hours ago

[2.5.0] - 2026-05-16

Added

  • Luau: Added support for const variable assignments (const x = 1) and const function declarations (#1102)

Changed

  • The npm package @johnnymorganz/stylua-bin now ships pre-built binaries via platform-specific optional packages (@johnnymorganz/stylua-bin-linux-x64, -linux-arm64, -darwin-x64, -darwin-arm64, -win32-x64) instead of downloading the binary at install time. This makes the packages self-contained with no extra dependencies.

Fixed

  • Fixed npm publishing by bumping Node.js from 16 to 22 in CI workflows to support npm trusted publishing
  • Luau: Fixed union/intersection type definitions not being hung when the type alone fits within the column width but the full line (including =) exceeds it (#1104)
  • Luau: Fixed stray leading newlines not being removed from local function and const function declarations that have attributes (e.g. @native) at the start of a block (#1109)

Full Changelog: v2.4.1...v2.5.0

Don't miss a new StyLua release

NewReleases is sending notifications on new releases.