[2.5.0] - 2026-05-16
Added
- Luau: Added support for
constvariable assignments (const x = 1) andconst functiondeclarations (#1102)
Changed
- The npm package
@johnnymorganz/stylua-binnow 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 functionandconst functiondeclarations that have attributes (e.g.@native) at the start of a block (#1109)
Full Changelog: v2.4.1...v2.5.0