Skip to content

Commit 8f6aa2b

Browse files
committed
v2.2.0
1 parent e160123 commit 8f6aa2b

File tree

7 files changed

+13
-10
lines changed

7 files changed

+13
-10
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
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.2.0] - 2025-09-14
11+
1012
### Added
1113

1214
- Added option `block_newline_gaps` to determine whether newline gaps at the start / end of blocks should be preserved. Defaults to `Never`, which is the original behaviour. ([#857](https://github.com/JohnnyMorganz/StyLua/pull/857))
@@ -841,7 +843,8 @@ This feature is enabled by default, it can be disabled using `--no-editorconfig`
841843

842844
Initial alpha release
843845

844-
[unreleased]: https://github.com/JohnnyMorganz/StyLua/compare/v2.1.0...HEAD
846+
[unreleased]: https://github.com/JohnnyMorganz/StyLua/compare/v2.2.0...HEAD
847+
[2.2.0]: https://github.com/JohnnyMorganz/StyLua/releases/tag/v2.2.0
845848
[2.1.0]: https://github.com/JohnnyMorganz/StyLua/releases/tag/v2.1.0
846849
[2.0.2]: https://github.com/JohnnyMorganz/StyLua/releases/tag/v2.0.2
847850
[2.0.1]: https://github.com/JohnnyMorganz/StyLua/releases/tag/v2.0.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.1.0"
3+
version = "2.2.0"
44
authors = ["JohnnyMorganz <[email protected]>"]
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.1.0
63+
rev: v2.2.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.1.0 /stylua /usr/bin/stylua
87+
COPY --from=JohnnyMorganz/StyLua:2.2.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.1.0
113+
aftman add johnnymorganz/stylua@2.2.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-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stylua-npm-bin/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",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"description": "A code formatter for Lua",
55
"bin": {
66
"stylua": "./run.js"

wasm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"JohnnyMorganz <[email protected]>"
55
],
66
"description": "A code formatter for Lua",
7-
"version": "2.1.0",
7+
"version": "2.2.0",
88
"license": "MPL-2.0",
99
"readme": "README.md",
1010
"repository": {

0 commit comments

Comments
 (0)