From 1d3c6ee9327b2e5e9cbb0b80ede559fac9744900 Mon Sep 17 00:00:00 2001 From: Steve Dignam Date: Sat, 21 Jun 2025 19:30:58 -0400 Subject: [PATCH 1/2] release: 2.15.0 --- CHANGELOG.md | 70 ++++++++++++++++++++++++++++++++++++++++ Cargo.lock | 2 +- crates/squawk/Cargo.toml | 2 +- flake.nix | 2 +- package.json | 2 +- 5 files changed, 74 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 17c29a4b..ad81395d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,76 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## v2.15.0 - 2025-06-17 + +### Added + +- validation for missing types in `create table` args. (#550) + + The following now parses with an error: + + ```sql + create table t ( + x int, + description + ); + ``` + + ``` + error[syntax-error]: Missing column type + --> stdin:3:14 + | + 3 | description + | ^ + | + ``` + +- Make `alter table` actions robust to missing commas. (#549) + + The following now parses with an error: + + ```sql + alter table t + validate constraint foo + validate constraint b; + ``` + + ``` + error[syntax-error]: missing comma + --> stdin:2:26 + | + 2 | validate constraint foo + | ^ + | + ``` + +### Fixed + +- Crash with trailing comma in select target list. (#551) + + The following now parses with an error: + + ```sql + select a, from t; + ``` + + ``` + error[syntax-error]: unexpected trailing comma + --> stdin:1:9 + | + 1 | select a, from t; + | ^ + | + ``` + +- Parsing idents with `uescape`. (#533) + + The following now parses: + + ```sql + select U&"d!0061t!+000061" UESCAPE '!'; + ``` + ## v2.14.0 - 2025-06-17 ### Added diff --git a/Cargo.lock b/Cargo.lock index 30eec9fd..c77aba94 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2543,7 +2543,7 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" [[package]] name = "squawk" -version = "2.14.0" +version = "2.15.0" dependencies = [ "annotate-snippets", "anyhow", diff --git a/crates/squawk/Cargo.toml b/crates/squawk/Cargo.toml index b3c6943d..201349e8 100644 --- a/crates/squawk/Cargo.toml +++ b/crates/squawk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "squawk" -version = "2.14.0" +version = "2.15.0" default-run = "squawk" authors.workspace = true diff --git a/flake.nix b/flake.nix index 2b475c06..bb189c50 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,7 @@ { squawk = final.rustPlatform.buildRustPackage { pname = "squawk"; - version = "2.14.0"; + version = "2.15.0"; cargoLock = { lockFile = ./Cargo.lock; diff --git a/package.json b/package.json index c79abcc5..2f6aaffe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "squawk-cli", - "version": "2.14.0", + "version": "2.15.0", "description": "linter for PostgreSQL, focused on migrations", "repository": "git@github.com:sbdchd/squawk.git", "author": "Squawk Team & Contributors", From cdf9b1410561ccd63b26778f40824f795dcdc636 Mon Sep 17 00:00:00 2001 From: Steve Dignam Date: Sat, 21 Jun 2025 19:32:02 -0400 Subject: [PATCH 2/2] fix --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ad81395d..87b1caa1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## v2.15.0 - 2025-06-17 +## v2.15.0 - 2025-06-21 ### Added