Skip to content

Commit 6316385

Browse files
authored
release: 2.2.0 (#465)
1 parent 576ae9c commit 6316385

File tree

5 files changed

+25
-4
lines changed

5 files changed

+25
-4
lines changed

CHANGELOG.md

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

88
## [Unreleased]
99

10+
## v2.2.0 - 2025-05-12
11+
12+
### Added
13+
14+
- Style guide for linter error messages
15+
16+
### Fixed
17+
18+
- Error messages for `prefer-robust-statements` to be less confusing. We were saying to add `if not exists` every time, even when the statement didn't have that option.
19+
20+
- Fixed parsing nested compound select that has parens (#464).
21+
The following now parses:
22+
23+
```sql
24+
SELECT (
25+
(SELECT id FROM code_categories WHERE "language" = @language::char(4) ORDER BY "id" ASC LIMIT 1)
26+
UNION
27+
(SELECT id FROM code_categories WHERE "language" = 'nl-NL' ORDER BY "id" ASC LIMIT 1)
28+
) LIMIT 1;
29+
```
30+
1031
## v2.1.0 - 2025-05-08
1132

1233
### Added

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.

crates/squawk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "squawk"
3-
version = "2.1.0"
3+
version = "2.2.0"
44
default-run = "squawk"
55

66
authors.workspace = true

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{
1919
squawk = final.rustPlatform.buildRustPackage {
2020
pname = "squawk";
21-
version = "2.1.0";
21+
version = "2.2.0";
2222

2323
cargoLock = {
2424
lockFile = ./Cargo.lock;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "squawk-cli",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"description": "linter for PostgreSQL, focused on migrations",
55
"repository": "git@github.com:sbdchd/squawk.git",
66
"author": "Steve Dignam <steve@dignam.xyz>",

0 commit comments

Comments
 (0)