From b57291873a8029fdc51f274040a401bc3976210b Mon Sep 17 00:00:00 2001 From: Steve Dignam Date: Sun, 15 Jun 2025 21:54:38 -0400 Subject: [PATCH] release: 2.13.0 --- CHANGELOG.md | 39 +++++++++++++++++++++++++++++++++++++++ Cargo.lock | 2 +- crates/squawk/Cargo.toml | 2 +- flake.nix | 2 +- package.json | 2 +- 5 files changed, 43 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8bdeb506..5a3d8eac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,45 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## v2.13.0 - 2025-06-15 + +### Fixed + +- parsing compound select statements & their trailing clauses, i.e. + + ```sql + (select 1) limit 1; + + select * from ( + (select 1) + union all + (select 1) + ); + ``` + +- join parsing to be more error resilent: + + ``` + error[syntax-error]: Join missing condition. + --> stdin:2:23 + | + 2 | select * from t join u; + | ^ + | + error[syntax-error]: Join `using` clause is not allowed for cross joins. + --> stdin:16:30 + | + 16 | select * from t cross join u using (id); + | ^^^^^^^^^^ + | + error[syntax-error]: Join condition is not allowed for cross joins. + --> stdin:18:30 + | + 18 | select * from t cross join u on true; + | ^^^^^^^ + | + ``` + ## v2.12.0 - 2025-06-09 ### Changed diff --git a/Cargo.lock b/Cargo.lock index b547c76f..c4434ee3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2543,7 +2543,7 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" [[package]] name = "squawk" -version = "2.12.0" +version = "2.13.0" dependencies = [ "annotate-snippets", "anyhow", diff --git a/crates/squawk/Cargo.toml b/crates/squawk/Cargo.toml index 71c9881c..8550a4bf 100644 --- a/crates/squawk/Cargo.toml +++ b/crates/squawk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "squawk" -version = "2.12.0" +version = "2.13.0" default-run = "squawk" authors.workspace = true diff --git a/flake.nix b/flake.nix index 58e292b9..1d2df7fc 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,7 @@ { squawk = final.rustPlatform.buildRustPackage { pname = "squawk"; - version = "2.12.0"; + version = "2.13.0"; cargoLock = { lockFile = ./Cargo.lock; diff --git a/package.json b/package.json index cd1e20f0..b9bbfdf1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "squawk-cli", - "version": "2.12.0", + "version": "2.13.0", "description": "linter for PostgreSQL, focused on migrations", "repository": "git@github.com:sbdchd/squawk.git", "author": "Squawk Team & Contributors",