From 01455bb8181fe69d7dae8e93b395c10a1be9dde4 Mon Sep 17 00:00:00 2001 From: Steve Dignam Date: Sat, 6 Jun 2026 19:26:19 -0400 Subject: [PATCH] release: 2.57.0 --- CHANGELOG.md | 28 ++++++++++++++++++++++++++++ Cargo.lock | 24 ++++++++++++------------ Cargo.toml | 18 +++++++++--------- README.md | 2 +- crates/squawk_github/src/app.rs | 2 +- flake.nix | 2 +- npm/darwin-arm64/package.json | 2 +- npm/darwin-x64/package.json | 2 +- npm/linux-arm64/package.json | 2 +- npm/linux-x64/package.json | 2 +- npm/win32-x64/package.json | 2 +- package.json | 12 ++++++------ squawk-vscode/package.json | 2 +- 13 files changed, 64 insertions(+), 36 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c8373d1..e8c19521 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,34 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## v2.57.0 - 2026-06-06 + +### Added + +- fmt: support comments in group by (#1194) + +### Fixed + +- linter: fix github actions output clobbering json/gcc (#1192) +- linter: fix require table schema false positive on temp tables (#1191) + + Previously this would error: + + ```sql + create temp table t (id bigint); + ``` + +- parser: fix various ast gaps (#1190) +- parser: fix index option parsing (#1188) + + Previously this wouldn't parse: + + ```sql + create index index_name on public.table_name using gin (column_name public.gin__int_ops); + ``` + +- parser: add ast nodes & fix alter restart (#1193) + ## v2.56.0 - 2026-06-02 ### Fixed diff --git a/Cargo.lock b/Cargo.lock index ca726ed1..2bd28e39 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2435,7 +2435,7 @@ dependencies = [ [[package]] name = "squawk" -version = "2.56.0" +version = "2.57.0" dependencies = [ "annotate-snippets", "anyhow", @@ -2466,7 +2466,7 @@ dependencies = [ [[package]] name = "squawk-fmt" -version = "2.56.0" +version = "2.57.0" dependencies = [ "anyhow", "camino", @@ -2482,7 +2482,7 @@ dependencies = [ [[package]] name = "squawk-github" -version = "2.56.0" +version = "2.57.0" dependencies = [ "jsonwebtoken", "log", @@ -2493,7 +2493,7 @@ dependencies = [ [[package]] name = "squawk-ide" -version = "2.56.0" +version = "2.57.0" dependencies = [ "annotate-snippets", "etcetera", @@ -2515,14 +2515,14 @@ dependencies = [ [[package]] name = "squawk-lexer" -version = "2.56.0" +version = "2.57.0" dependencies = [ "insta", ] [[package]] name = "squawk-linter" -version = "2.56.0" +version = "2.57.0" dependencies = [ "annotate-snippets", "enum-iterator", @@ -2537,7 +2537,7 @@ dependencies = [ [[package]] name = "squawk-parser" -version = "2.56.0" +version = "2.57.0" dependencies = [ "annotate-snippets", "camino", @@ -2550,7 +2550,7 @@ dependencies = [ [[package]] name = "squawk-server" -version = "2.56.0" +version = "2.57.0" dependencies = [ "anyhow", "crossbeam-channel", @@ -2576,7 +2576,7 @@ dependencies = [ [[package]] name = "squawk-syntax" -version = "2.56.0" +version = "2.57.0" dependencies = [ "annotate-snippets", "camino", @@ -2590,7 +2590,7 @@ dependencies = [ [[package]] name = "squawk-thread" -version = "2.56.0" +version = "2.57.0" dependencies = [ "crossbeam-channel", "crossbeam-utils", @@ -2602,7 +2602,7 @@ dependencies = [ [[package]] name = "squawk-wasm" -version = "2.56.0" +version = "2.57.0" dependencies = [ "console_error_panic_hook", "console_log", @@ -3478,7 +3478,7 @@ checksum = "32ac00cd3f8ec9c1d33fb3e7958a82df6989c42d747bd326c822b1d625283547" [[package]] name = "xtask" -version = "2.56.0" +version = "2.57.0" dependencies = [ "anyhow", "camino", diff --git a/Cargo.toml b/Cargo.toml index c3282e8c..a9ea6c0f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = ["crates/*"] resolver = "2" [workspace.package] -version = "2.56.0" +version = "2.57.0" edition = "2024" rust-version = "1.94" authors = ["Squawk Team & Contributors"] @@ -79,14 +79,14 @@ rustc-hash = "2.1.1" # local # we have to make the versions explicit otherwise `cargo publish` won't work -squawk-github = { path = "./crates/squawk_github", version = "2.56.0" } -squawk-ide = { path = "./crates/squawk_ide", version = "2.56.0" } -squawk-lexer = { path = "./crates/squawk_lexer", version = "2.56.0" } -squawk-parser = { path = "./crates/squawk_parser", version = "2.56.0" } -squawk-syntax = { path = "./crates/squawk_syntax", version = "2.56.0" } -squawk-linter = { path = "./crates/squawk_linter", version = "2.56.0" } -squawk-server = { path = "./crates/squawk_server", version = "2.56.0" } -squawk-thread = { path = "./crates/squawk_thread", version = "2.56.0" } +squawk-github = { path = "./crates/squawk_github", version = "2.57.0" } +squawk-ide = { path = "./crates/squawk_ide", version = "2.57.0" } +squawk-lexer = { path = "./crates/squawk_lexer", version = "2.57.0" } +squawk-parser = { path = "./crates/squawk_parser", version = "2.57.0" } +squawk-syntax = { path = "./crates/squawk_syntax", version = "2.57.0" } +squawk-linter = { path = "./crates/squawk_linter", version = "2.57.0" } +squawk-server = { path = "./crates/squawk_server", version = "2.57.0" } +squawk-thread = { path = "./crates/squawk_thread", version = "2.57.0" } [workspace.lints.clippy] collapsible_else_if = "allow" diff --git a/README.md b/README.md index 710eec82..db497e02 100644 --- a/README.md +++ b/README.md @@ -265,7 +265,7 @@ to your project's `.pre-commit-config.yaml`: ```yaml repos: - repo: https://github.com/sbdchd/squawk - rev: v2.56.0 + rev: v2.57.0 hooks: - id: squawk files: path/to/postgres/migrations/written/in/sql diff --git a/crates/squawk_github/src/app.rs b/crates/squawk_github/src/app.rs index 691b7502..f094a1d9 100644 --- a/crates/squawk_github/src/app.rs +++ b/crates/squawk_github/src/app.rs @@ -11,7 +11,7 @@ use serde_json::Value; use std::time::Duration; use std::time::{SystemTime, UNIX_EPOCH}; -pub(crate) const SQUAWK_USER_AGENT: &str = "squawk/2.56.0"; +pub(crate) const SQUAWK_USER_AGENT: &str = "squawk/2.57.0"; #[derive(Debug, Serialize)] struct CommentBody { diff --git a/flake.nix b/flake.nix index 399f0bbd..790f02a3 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,7 @@ { squawk = final.rustPlatform.buildRustPackage { pname = "squawk"; - version = "2.56.0"; + version = "2.57.0"; cargoLock = { lockFile = ./Cargo.lock; diff --git a/npm/darwin-arm64/package.json b/npm/darwin-arm64/package.json index 75c1a655..d3890ecf 100644 --- a/npm/darwin-arm64/package.json +++ b/npm/darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@squawk-cli/darwin-arm64", - "version": "2.56.0", + "version": "2.57.0", "description": "squawk-cli binary for darwin-arm64", "repository": "git@github.com:sbdchd/squawk.git", "license": "(Apache-2.0 OR MIT)", diff --git a/npm/darwin-x64/package.json b/npm/darwin-x64/package.json index bedcc776..7ff7889c 100644 --- a/npm/darwin-x64/package.json +++ b/npm/darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "@squawk-cli/darwin-x64", - "version": "2.56.0", + "version": "2.57.0", "description": "squawk-cli binary for darwin-x64", "repository": "git@github.com:sbdchd/squawk.git", "license": "(Apache-2.0 OR MIT)", diff --git a/npm/linux-arm64/package.json b/npm/linux-arm64/package.json index 9a2b141c..2b5feb2d 100644 --- a/npm/linux-arm64/package.json +++ b/npm/linux-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@squawk-cli/linux-arm64", - "version": "2.56.0", + "version": "2.57.0", "description": "squawk-cli binary for linux-arm64", "repository": "git@github.com:sbdchd/squawk.git", "license": "(Apache-2.0 OR MIT)", diff --git a/npm/linux-x64/package.json b/npm/linux-x64/package.json index dde66fae..9261b8db 100644 --- a/npm/linux-x64/package.json +++ b/npm/linux-x64/package.json @@ -1,6 +1,6 @@ { "name": "@squawk-cli/linux-x64", - "version": "2.56.0", + "version": "2.57.0", "description": "squawk-cli binary for linux-x64", "repository": "git@github.com:sbdchd/squawk.git", "license": "(Apache-2.0 OR MIT)", diff --git a/npm/win32-x64/package.json b/npm/win32-x64/package.json index f8ce30ec..d8a9e604 100644 --- a/npm/win32-x64/package.json +++ b/npm/win32-x64/package.json @@ -1,6 +1,6 @@ { "name": "@squawk-cli/win32-x64", - "version": "2.56.0", + "version": "2.57.0", "description": "squawk-cli binary for win32-x64", "repository": "git@github.com:sbdchd/squawk.git", "license": "(Apache-2.0 OR MIT)", diff --git a/package.json b/package.json index de3a69f6..e69a012b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "squawk-cli", - "version": "2.56.0", + "version": "2.57.0", "description": "linter for PostgreSQL, focused on migrations", "repository": "git@github.com:sbdchd/squawk.git", "author": "Squawk Team & Contributors", @@ -29,11 +29,11 @@ "typescript": "^3.9.5" }, "optionalDependencies": { - "@squawk-cli/darwin-arm64": "2.56.0", - "@squawk-cli/darwin-x64": "2.56.0", - "@squawk-cli/linux-arm64": "2.56.0", - "@squawk-cli/linux-x64": "2.56.0", - "@squawk-cli/win32-x64": "2.56.0" + "@squawk-cli/darwin-arm64": "2.57.0", + "@squawk-cli/darwin-x64": "2.57.0", + "@squawk-cli/linux-arm64": "2.57.0", + "@squawk-cli/linux-x64": "2.57.0", + "@squawk-cli/win32-x64": "2.57.0" }, "volta": { "node": "20.19.0", diff --git a/squawk-vscode/package.json b/squawk-vscode/package.json index 8bf5d448..f8aef87e 100644 --- a/squawk-vscode/package.json +++ b/squawk-vscode/package.json @@ -12,7 +12,7 @@ "icon": "icon.png", "author": "Squawk Team & Contributors", "license": "(Apache-2.0 OR MIT)", - "version": "2.56.0", + "version": "2.57.0", "engines": { "vscode": "^1.101.0" },