From f86ca8c38f3e928e3c366aa6ce2d1f94dbe60950 Mon Sep 17 00:00:00 2001 From: Steve Dignam Date: Tue, 27 May 2025 19:10:19 -0400 Subject: [PATCH 1/2] release: 2.10.0 --- 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 7cbbac5a..673a6806 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2543,7 +2543,7 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" [[package]] name = "squawk" -version = "2.9.0" +version = "2.10.0" dependencies = [ "annotate-snippets", "anyhow", diff --git a/crates/squawk/Cargo.toml b/crates/squawk/Cargo.toml index 56b3f558..d886604d 100644 --- a/crates/squawk/Cargo.toml +++ b/crates/squawk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "squawk" -version = "2.9.0" +version = "2.10.0" default-run = "squawk" authors.workspace = true diff --git a/flake.nix b/flake.nix index 2688155e..aaf07ac3 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,7 @@ { squawk = final.rustPlatform.buildRustPackage { pname = "squawk"; - version = "2.9.0"; + version = "2.10.0"; cargoLock = { lockFile = ./Cargo.lock; diff --git a/package.json b/package.json index 9ca503a4..8106dadd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "squawk-cli", - "version": "2.9.0", + "version": "2.10.0", "description": "linter for PostgreSQL, focused on migrations", "repository": "git@github.com:sbdchd/squawk.git", "author": "Steve Dignam ", From b6f1e53085a027043042eec9f9873d4fccd86392 Mon Sep 17 00:00:00 2001 From: Steve Dignam Date: Tue, 27 May 2025 19:15:00 -0400 Subject: [PATCH 2/2] fix --- CHANGELOG.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a8aae2a6..65fd2475 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,33 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## v2.10.0 - 2025-05-27 + +### Fixed + +- Fix typo in rule name parsing causing `unused-ignore` to warn for `prefer-timestamp-tz`. (#511) + +- Fix parsing window definition. (#510) + + Previously the following would error: + + ```sql + WITH ranked_notifications AS ( + SELECT + notification_id, + ROW_NUMBER() OVER ( + PARTITION BY user_id, board_id ORDER BY created_at DESC + ) AS rn + FROM public.notification + WHERE android_channel_id = 'watchlist' + ) + UPDATE public.notification + SET dismissed_at = current_timestamp + WHERE notification_id IN ( + SELECT notification_id FROM ranked_notifications WHERE rn > 1 + ); + ``` + ## v2.9.0 - 2025-05-25 ### Added