Skip to content

Commit 0578f35

Browse files
committed
v2.5.0
1 parent acf62e7 commit 0578f35

11 files changed

Lines changed: 22 additions & 19 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [2.5.0] - 2026-05-16
11+
1012
### Added
1113

1214
- Luau: Added support for `const` variable assignments (`const x = 1`) and `const function` declarations ([#1102](https://github.com/JohnnyMorganz/StyLua/issues/1102))
@@ -18,7 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1820
### Fixed
1921

2022
- Fixed npm publishing by bumping Node.js from 16 to 22 in CI workflows to support npm trusted publishing
21-
- 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](https://github.com/JohnnyMorganz/StyLua/issues/1104))
23+
- 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](https://github.com/JohnnyMorganz/StyLua/issues/1104))
2224
- 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](https://github.com/JohnnyMorganz/StyLua/issues/1109))
2325

2426
## [2.4.1] - 2026-04-06
@@ -905,7 +907,8 @@ This feature is enabled by default, it can be disabled using `--no-editorconfig`
905907

906908
Initial alpha release
907909

908-
[unreleased]: https://github.com/JohnnyMorganz/StyLua/compare/v2.4.1...HEAD
910+
[unreleased]: https://github.com/JohnnyMorganz/StyLua/compare/v2.5.0...HEAD
911+
[2.5.0]: https://github.com/JohnnyMorganz/StyLua/releases/tag/v2.5.0
909912
[2.4.1]: https://github.com/JohnnyMorganz/StyLua/releases/tag/v2.4.1
910913
[2.4.0]: https://github.com/JohnnyMorganz/StyLua/releases/tag/v2.4.0
911914
[2.3.1]: https://github.com/JohnnyMorganz/StyLua/releases/tag/v2.3.1

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "stylua"
3-
version = "2.4.1"
3+
version = "2.5.0"
44
authors = ["JohnnyMorganz <johnnymorganz@outlook.com>"]
55
description = "A code formatter for Lua"
66
license = "MPL-2.0"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Add the following to your `.pre-commit-config.yaml` file:
6060

6161
```yaml
6262
- repo: https://github.com/JohnnyMorganz/StyLua
63-
rev: v2.4.1
63+
rev: v2.5.0
6464
hooks:
6565
- id: stylua # or stylua-system / stylua-github
6666
```
@@ -84,7 +84,7 @@ StyLua is available on the [Docker Hub](https://hub.docker.com/r/johnnymorganz/s
8484
If you are using Docker, the easiest way to install StyLua is:
8585

8686
```dockerfile
87-
COPY --from=JohnnyMorganz/StyLua:2.4.1 /stylua /usr/bin/stylua
87+
COPY --from=JohnnyMorganz/StyLua:2.5.0 /stylua /usr/bin/stylua
8888
```
8989

9090
### Homebrew
@@ -110,7 +110,7 @@ uv tool install git+https://github.com/johnnymorganz/stylua
110110
- [Aftman](https://github.com/LPGhatguy/aftman)
111111

112112
```sh
113-
aftman add johnnymorganz/stylua@2.4.1
113+
aftman add johnnymorganz/stylua@2.5.0
114114
```
115115

116116
- A community maintained package repository. Please note, these packages are maintained by third-parties and we do not control their packaging manifests.

stylua-npm-bin/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@johnnymorganz/stylua-bin",
3-
"version": "2.4.1",
3+
"version": "2.5.0",
44
"description": "A code formatter for Lua",
55
"bin": {
66
"stylua": "./run.js"
@@ -33,10 +33,10 @@
3333
},
3434
"homepage": "https://github.com/johnnymorganz/stylua#readme",
3535
"optionalDependencies": {
36-
"@johnnymorganz/stylua-bin-linux-x64": "2.4.1",
37-
"@johnnymorganz/stylua-bin-linux-arm64": "2.4.1",
38-
"@johnnymorganz/stylua-bin-darwin-x64": "2.4.1",
39-
"@johnnymorganz/stylua-bin-darwin-arm64": "2.4.1",
40-
"@johnnymorganz/stylua-bin-win32-x64": "2.4.1"
36+
"@johnnymorganz/stylua-bin-linux-x64": "2.5.0",
37+
"@johnnymorganz/stylua-bin-linux-arm64": "2.5.0",
38+
"@johnnymorganz/stylua-bin-darwin-x64": "2.5.0",
39+
"@johnnymorganz/stylua-bin-darwin-arm64": "2.5.0",
40+
"@johnnymorganz/stylua-bin-win32-x64": "2.5.0"
4141
}
4242
}

stylua-npm-bin/platforms/darwin-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@johnnymorganz/stylua-bin-darwin-arm64",
3-
"version": "2.4.1",
3+
"version": "2.5.0",
44
"description": "StyLua binary for macOS arm64",
55
"os": [
66
"darwin"

stylua-npm-bin/platforms/darwin-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@johnnymorganz/stylua-bin-darwin-x64",
3-
"version": "2.4.1",
3+
"version": "2.5.0",
44
"description": "StyLua binary for macOS x64",
55
"os": [
66
"darwin"

stylua-npm-bin/platforms/linux-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@johnnymorganz/stylua-bin-linux-arm64",
3-
"version": "2.4.1",
3+
"version": "2.5.0",
44
"description": "StyLua binary for Linux arm64",
55
"os": [
66
"linux"

stylua-npm-bin/platforms/linux-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@johnnymorganz/stylua-bin-linux-x64",
3-
"version": "2.4.1",
3+
"version": "2.5.0",
44
"description": "StyLua binary for Linux x64",
55
"os": [
66
"linux"

stylua-npm-bin/platforms/win32-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@johnnymorganz/stylua-bin-win32-x64",
3-
"version": "2.4.1",
3+
"version": "2.5.0",
44
"description": "StyLua binary for Windows x64",
55
"os": [
66
"win32"

0 commit comments

Comments
 (0)