From bdc4c4c3efccf215c98f855eb3474f1ff9dc63ae Mon Sep 17 00:00:00 2001 From: Steve Dignam Date: Sun, 25 May 2025 19:07:08 -0400 Subject: [PATCH] release: 2.8.0 --- CHANGELOG.md | 48 ++++++++++++++++++++++++++++++++++++++++ Cargo.lock | 2 +- crates/squawk/Cargo.toml | 2 +- flake.nix | 2 +- package.json | 2 +- 5 files changed, 52 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b107280f..60d62e24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,54 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## v2.8.0 - 2025-05-25 + +### Fixed + +- Fix parsing `select select`. (#499) + + Previously, the following would panic: + + ```sql + select select + ``` + +- Fix displaying warnings as errors. (#502) + + We were highlighting warnings using the error syntax (red `^` instead of yellow `-`). We also were rendering syntax errors as warnings instead of errors! + +- Fix parsing aggregate args with modifiers like `distinct` or `all`. (#498) Thanks @psteinroe! + + Previously the following would error: + + ```sql + select string_agg(distinct c, ',') + filter (where length(c) > 1) + from t; + ``` + +- Fix parsing data sources within params. (#497) Thanks @psteinroe! + + Previously the following would error: + + ```sql + select f1, count(*) from + t1 x(x0,x1) left join (t1 left join t2 using(f1)) on (x0 = 0) + ``` + +- Fix parsing alternative boolean keywords. (#493) Thanks @psteinroe! + + Previously the following would error: + + ```sql + explain (costs off) select; + ``` + +## Changed + +- Renamed `ast::Item` to `ast::Stmt`. (#483) +- Split `select` into `select`, `tables`, and `values` statements. (#484) + ## v2.7.0 - 2025-05-14 ### Fixed diff --git a/Cargo.lock b/Cargo.lock index fd5a6f9e..3e8ea81e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2543,7 +2543,7 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" [[package]] name = "squawk" -version = "2.7.0" +version = "2.8.0" dependencies = [ "annotate-snippets", "anyhow", diff --git a/crates/squawk/Cargo.toml b/crates/squawk/Cargo.toml index 24d73839..5a718ace 100644 --- a/crates/squawk/Cargo.toml +++ b/crates/squawk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "squawk" -version = "2.7.0" +version = "2.8.0" default-run = "squawk" authors.workspace = true diff --git a/flake.nix b/flake.nix index 275a56b7..649abe89 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,7 @@ { squawk = final.rustPlatform.buildRustPackage { pname = "squawk"; - version = "2.7.0"; + version = "2.8.0"; cargoLock = { lockFile = ./Cargo.lock; diff --git a/package.json b/package.json index a1caab13..f1ae978c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "squawk-cli", - "version": "2.7.0", + "version": "2.8.0", "description": "linter for PostgreSQL, focused on migrations", "repository": "git@github.com:sbdchd/squawk.git", "author": "Steve Dignam ",