diff --git a/CHANGELOG.md b/CHANGELOG.md index 70b392bd..adfae118 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,36 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## v2.26.0 - 2025-09-15 + +## Added + +- linter: `adding-field-with-default` now allows more cases (#652). + + ```sql + alter table t add column c text[] default array[]::text[]; + alter table t add column c timestamptz default current_timestamp; + + -- const/non-volatile binary expressions are also allowed + alter table t add column c timestamptz default now() - interval '100 years'; + ``` + + +## Fixed + +- parser: parse materialized views using a paren select (#651). + + The following now parses: + + ```sql + create materialized view v + as (select * from t); + ``` + +## Changed + +- cli now uses unicode for snippet annotations (#654). + ## v2.25.1 - 2025-09-03 ## Fixed diff --git a/Cargo.lock b/Cargo.lock index 532f70a4..c3cc54a1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1756,7 +1756,7 @@ dependencies = [ [[package]] name = "squawk" -version = "2.25.1" +version = "2.26.0" dependencies = [ "annotate-snippets", "anyhow", @@ -1784,7 +1784,7 @@ dependencies = [ [[package]] name = "squawk_github" -version = "2.25.1" +version = "2.26.0" dependencies = [ "jsonwebtoken", "log", @@ -1795,14 +1795,14 @@ dependencies = [ [[package]] name = "squawk_lexer" -version = "2.25.1" +version = "2.26.0" dependencies = [ "insta", ] [[package]] name = "squawk_linter" -version = "2.25.1" +version = "2.26.0" dependencies = [ "enum-iterator", "insta", @@ -1816,7 +1816,7 @@ dependencies = [ [[package]] name = "squawk_parser" -version = "2.25.1" +version = "2.26.0" dependencies = [ "camino", "dir-test", @@ -1829,7 +1829,7 @@ dependencies = [ [[package]] name = "squawk_server" -version = "2.25.1" +version = "2.26.0" dependencies = [ "anyhow", "insta", @@ -1847,7 +1847,7 @@ dependencies = [ [[package]] name = "squawk_syntax" -version = "2.25.1" +version = "2.26.0" dependencies = [ "camino", "dir-test", @@ -1859,7 +1859,7 @@ dependencies = [ [[package]] name = "squawk_wasm" -version = "2.25.1" +version = "2.26.0" dependencies = [ "console_error_panic_hook", "console_log", @@ -2661,7 +2661,7 @@ checksum = "32ac00cd3f8ec9c1d33fb3e7958a82df6989c42d747bd326c822b1d625283547" [[package]] name = "xtask" -version = "2.25.1" +version = "2.26.0" dependencies = [ "anyhow", "camino", diff --git a/Cargo.toml b/Cargo.toml index 75ce7c4f..9b9a182d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = ["crates/*"] resolver = "2" [workspace.package] -version = "2.25.1" +version = "2.26.0" edition = "2024" rust-version = "1.88.0" authors = ["Squawk Team & Contributors"] diff --git a/crates/squawk_github/src/app.rs b/crates/squawk_github/src/app.rs index a693b58c..c873904e 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.25.1"; +pub(crate) const SQUAWK_USER_AGENT: &str = "squawk/2.26.0"; #[derive(Debug, Serialize)] struct CommentBody { diff --git a/flake.nix b/flake.nix index f2fe6f1b..5030a5fc 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,7 @@ { squawk = final.rustPlatform.buildRustPackage { pname = "squawk"; - version = "2.25.1"; + version = "2.26.0"; cargoLock = { lockFile = ./Cargo.lock; diff --git a/package.json b/package.json index 08939be8..a98a4f31 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "squawk-cli", - "version": "2.25.1", + "version": "2.26.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 20b9f7a3..ffbc0773 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.25.1", + "version": "2.26.0", "engines": { "vscode": "^1.101.0" },