From 5a3da57c9410264f8c7e5c7766bbc716a1b30250 Mon Sep 17 00:00:00 2001 From: Steve Dignam Date: Mon, 12 May 2025 09:58:20 -0400 Subject: [PATCH 1/2] release: 2.2.0 --- CHANGELOG.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd257c9a..5f40567b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## v2.2.0 - 2025-05-12 + +### Added + +- Style guide for linter error messages + +### Fixed + +- 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. + +- Fixed parsing nested compound select that has parens (#464). + The following now parses: + + ```sql + SELECT ( + (SELECT id FROM code_categories WHERE "language" = @language::char(4) ORDER BY "id" ASC LIMIT 1) + UNION + (SELECT id FROM code_categories WHERE "language" = 'nl-NL' ORDER BY "id" ASC LIMIT 1) + ) LIMIT 1; + ``` + ## v2.1.0 - 2025-05-08 ### Added From 29df48ed5ecae791a78c5a87906e5a84fe791d0b Mon Sep 17 00:00:00 2001 From: Steve Dignam Date: Mon, 12 May 2025 09:58:54 -0400 Subject: [PATCH 2/2] update versions --- Cargo.lock | 2 +- crates/squawk/Cargo.toml | 2 +- flake.nix | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2a1f8f0e..6dba5c8f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2543,7 +2543,7 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" [[package]] name = "squawk" -version = "2.1.0" +version = "2.2.0" dependencies = [ "annotate-snippets", "anyhow", diff --git a/crates/squawk/Cargo.toml b/crates/squawk/Cargo.toml index 47c7d2e3..727ace55 100644 --- a/crates/squawk/Cargo.toml +++ b/crates/squawk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "squawk" -version = "2.1.0" +version = "2.2.0" default-run = "squawk" authors.workspace = true diff --git a/flake.nix b/flake.nix index 6902e2d7..761b2a4d 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,7 @@ { squawk = final.rustPlatform.buildRustPackage { pname = "squawk"; - version = "2.1.0"; + version = "2.2.0"; cargoLock = { lockFile = ./Cargo.lock; diff --git a/package.json b/package.json index e6626ac0..d5449f23 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "squawk-cli", - "version": "2.1.0", + "version": "2.2.0", "description": "linter for PostgreSQL, focused on migrations", "repository": "git@github.com:sbdchd/squawk.git", "author": "Steve Dignam ",