From 5cd6cd08b0c05f93b7b21c16b0689c1d050e0979 Mon Sep 17 00:00:00 2001 From: Steve Dignam Date: Tue, 23 Sep 2025 20:29:29 -0700 Subject: [PATCH] release: 2.27.0 --- CHANGELOG.md | 38 +++++++++++++++++++++++++++++++++ Cargo.lock | 20 ++++++++--------- Cargo.toml | 14 ++++++------ crates/squawk_github/src/app.rs | 2 +- flake.nix | 2 +- package.json | 2 +- squawk-vscode/package.json | 2 +- 7 files changed, 59 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 068fab1f..ff5954e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,44 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## v2.27.0 - 2025-09-23 + +## Added + +- cli: rendering of diffs for suggestions in output. (#662) + + We now include a diff below the rule error. + + ``` + warning[require-concurrent-index-creation]: During normal index creation, table updates are blocked, but reads are still allowed. + ╭▸ example.sql:10:1 + │ + 10 │ CREATE INDEX "field_name_idx" ON "table_name" ("field_name"); + │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + │ + ├ help: Use `concurrently` to avoid blocking writes. + ╭╴ + 10 │ CREATE INDEX concurrently "field_name_idx" ON "table_name" ("field_name"); + ╰╴ ++++++++++++ + ``` + +## Fixed + +- parser: parsing some `set` related commands. (#657) + + The following now parse: + + ```sql + set schema 'foo'; + set foo.bar from current; + set bar from current; + ``` + +## Changed + +- internal: bump rust to 1.90.0 (#659) +- syntax: fill out more of the ast (#658) + ## v2.26.0 - 2025-09-15 ## Added diff --git a/Cargo.lock b/Cargo.lock index 7b5c5f13..ea7aa913 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1831,7 +1831,7 @@ dependencies = [ [[package]] name = "squawk" -version = "2.26.0" +version = "2.27.0" dependencies = [ "annotate-snippets", "anyhow", @@ -1860,7 +1860,7 @@ dependencies = [ [[package]] name = "squawk_github" -version = "2.26.0" +version = "2.27.0" dependencies = [ "jsonwebtoken", "log", @@ -1871,7 +1871,7 @@ dependencies = [ [[package]] name = "squawk_ide" -version = "2.26.0" +version = "2.27.0" dependencies = [ "annotate-snippets", "insta", @@ -1883,14 +1883,14 @@ dependencies = [ [[package]] name = "squawk_lexer" -version = "2.26.0" +version = "2.27.0" dependencies = [ "insta", ] [[package]] name = "squawk_linter" -version = "2.26.0" +version = "2.27.0" dependencies = [ "enum-iterator", "insta", @@ -1904,7 +1904,7 @@ dependencies = [ [[package]] name = "squawk_parser" -version = "2.26.0" +version = "2.27.0" dependencies = [ "camino", "dir-test", @@ -1917,7 +1917,7 @@ dependencies = [ [[package]] name = "squawk_server" -version = "2.26.0" +version = "2.27.0" dependencies = [ "anyhow", "insta", @@ -1935,7 +1935,7 @@ dependencies = [ [[package]] name = "squawk_syntax" -version = "2.26.0" +version = "2.27.0" dependencies = [ "camino", "dir-test", @@ -1947,7 +1947,7 @@ dependencies = [ [[package]] name = "squawk_wasm" -version = "2.26.0" +version = "2.27.0" dependencies = [ "console_error_panic_hook", "console_log", @@ -2764,7 +2764,7 @@ checksum = "32ac00cd3f8ec9c1d33fb3e7958a82df6989c42d747bd326c822b1d625283547" [[package]] name = "xtask" -version = "2.26.0" +version = "2.27.0" dependencies = [ "anyhow", "camino", diff --git a/Cargo.toml b/Cargo.toml index 4c35ac4c..42974c2e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = ["crates/*"] resolver = "2" [workspace.package] -version = "2.26.0" +version = "2.27.0" edition = "2024" rust-version = "1.90.0" authors = ["Squawk Team & Contributors"] @@ -55,12 +55,12 @@ snapbox = { version = "0.6.0", features = ["diff", "term-svg", "cmd"] } # local # we have to make the versions explicit otherwise `cargo publish` won't work -squawk_github = { path = "./crates/squawk_github", version = "2.26.0" } -squawk_lexer = { path = "./crates/squawk_lexer", version = "2.26.0" } -squawk_parser = { path = "./crates/squawk_parser", version = "2.26.0" } -squawk_syntax = { path = "./crates/squawk_syntax", version = "2.26.0" } -squawk_linter = { path = "./crates/squawk_linter", version = "2.26.0" } -squawk_server = { path = "./crates/squawk_server", version = "2.26.0" } +squawk_github = { path = "./crates/squawk_github", version = "2.27.0" } +squawk_lexer = { path = "./crates/squawk_lexer", version = "2.27.0" } +squawk_parser = { path = "./crates/squawk_parser", version = "2.27.0" } +squawk_syntax = { path = "./crates/squawk_syntax", version = "2.27.0" } +squawk_linter = { path = "./crates/squawk_linter", version = "2.27.0" } +squawk_server = { path = "./crates/squawk_server", version = "2.27.0" } [workspace.lints.clippy] collapsible_else_if = "allow" diff --git a/crates/squawk_github/src/app.rs b/crates/squawk_github/src/app.rs index 385b545e..c5a4a236 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.26.0"; +pub(crate) const SQUAWK_USER_AGENT: &str = "squawk/2.27.0"; #[derive(Debug, Serialize)] struct CommentBody { diff --git a/flake.nix b/flake.nix index 5030a5fc..f8d8a518 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,7 @@ { squawk = final.rustPlatform.buildRustPackage { pname = "squawk"; - version = "2.26.0"; + version = "2.27.0"; cargoLock = { lockFile = ./Cargo.lock; diff --git a/package.json b/package.json index a98a4f31..b62015be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "squawk-cli", - "version": "2.26.0", + "version": "2.27.0", "description": "linter for PostgreSQL, focused on migrations", "repository": "git@github.com:sbdchd/squawk.git", "author": "Squawk Team & Contributors", diff --git a/squawk-vscode/package.json b/squawk-vscode/package.json index ffbc0773..1a5efbe8 100644 --- a/squawk-vscode/package.json +++ b/squawk-vscode/package.json @@ -9,7 +9,7 @@ "icon": "icon.png", "author": "Squawk Team & Contributors", "license": "(Apache-2.0 OR MIT)", - "version": "2.26.0", + "version": "2.27.0", "engines": { "vscode": "^1.101.0" },