diff --git a/CHANGELOG.md b/CHANGELOG.md index f685208a..86a2967e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## v2.40.0 - 2026-02-06 + +### Added + +- parser: improve error recovery in `where`, `having`, & `join` `on` (#911, #912) +- ide: goto def on conflict clause (#907) +- ide: goto def func calls inside constraints/columns/indexes/partitions (#906) + +### Fixed + +- ide: goto def with recursive CTEs (#909) + ## v2.39.0 - 2026-01-31 ### Added diff --git a/Cargo.lock b/Cargo.lock index 407d2da2..0920c4f9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1895,7 +1895,7 @@ dependencies = [ [[package]] name = "squawk" -version = "2.39.0" +version = "2.40.0" dependencies = [ "annotate-snippets", "anyhow", @@ -1924,7 +1924,7 @@ dependencies = [ [[package]] name = "squawk-fmt" -version = "2.39.0" +version = "2.40.0" dependencies = [ "insta", "itertools 0.14.0", @@ -1934,7 +1934,7 @@ dependencies = [ [[package]] name = "squawk-github" -version = "2.39.0" +version = "2.40.0" dependencies = [ "jsonwebtoken", "log", @@ -1945,7 +1945,7 @@ dependencies = [ [[package]] name = "squawk-ide" -version = "2.39.0" +version = "2.40.0" dependencies = [ "annotate-snippets", "insta", @@ -1963,14 +1963,14 @@ dependencies = [ [[package]] name = "squawk-lexer" -version = "2.39.0" +version = "2.40.0" dependencies = [ "insta", ] [[package]] name = "squawk-linter" -version = "2.39.0" +version = "2.40.0" dependencies = [ "annotate-snippets", "enum-iterator", @@ -1985,7 +1985,7 @@ dependencies = [ [[package]] name = "squawk-parser" -version = "2.39.0" +version = "2.40.0" dependencies = [ "annotate-snippets", "camino", @@ -1999,7 +1999,7 @@ dependencies = [ [[package]] name = "squawk-server" -version = "2.39.0" +version = "2.40.0" dependencies = [ "anyhow", "insta", @@ -2019,7 +2019,7 @@ dependencies = [ [[package]] name = "squawk-syntax" -version = "2.39.0" +version = "2.40.0" dependencies = [ "annotate-snippets", "camino", @@ -2032,7 +2032,7 @@ dependencies = [ [[package]] name = "squawk-wasm" -version = "2.39.0" +version = "2.40.0" dependencies = [ "console_error_panic_hook", "console_log", @@ -2885,7 +2885,7 @@ checksum = "32ac00cd3f8ec9c1d33fb3e7958a82df6989c42d747bd326c822b1d625283547" [[package]] name = "xtask" -version = "2.39.0" +version = "2.40.0" dependencies = [ "anyhow", "camino", diff --git a/Cargo.toml b/Cargo.toml index b5c90d0c..651a68b0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = ["crates/*"] resolver = "2" [workspace.package] -version = "2.39.0" +version = "2.40.0" edition = "2024" rust-version = "1.90.0" authors = ["Squawk Team & Contributors"] @@ -64,13 +64,13 @@ tabled = "0.17.0" # local # we have to make the versions explicit otherwise `cargo publish` won't work -squawk-github = { path = "./crates/squawk_github", version = "2.39.0" } -squawk-ide = { path = "./crates/squawk_ide", version = "2.39.0" } -squawk-lexer = { path = "./crates/squawk_lexer", version = "2.39.0" } -squawk-parser = { path = "./crates/squawk_parser", version = "2.39.0" } -squawk-syntax = { path = "./crates/squawk_syntax", version = "2.39.0" } -squawk-linter = { path = "./crates/squawk_linter", version = "2.39.0" } -squawk-server = { path = "./crates/squawk_server", version = "2.39.0" } +squawk-github = { path = "./crates/squawk_github", version = "2.40.0" } +squawk-ide = { path = "./crates/squawk_ide", version = "2.40.0" } +squawk-lexer = { path = "./crates/squawk_lexer", version = "2.40.0" } +squawk-parser = { path = "./crates/squawk_parser", version = "2.40.0" } +squawk-syntax = { path = "./crates/squawk_syntax", version = "2.40.0" } +squawk-linter = { path = "./crates/squawk_linter", version = "2.40.0" } +squawk-server = { path = "./crates/squawk_server", version = "2.40.0" } [workspace.lints.clippy] collapsible_else_if = "allow" diff --git a/README.md b/README.md index fbd5534b..142ba088 100644 --- a/README.md +++ b/README.md @@ -252,7 +252,7 @@ to your project's `.pre-commit-config.yaml`: ```yaml repos: - repo: https://github.com/sbdchd/squawk - rev: 2.39.0 + rev: 2.40.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 d27eefd0..4838fd3f 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.39.0"; +pub(crate) const SQUAWK_USER_AGENT: &str = "squawk/2.40.0"; #[derive(Debug, Serialize)] struct CommentBody { diff --git a/flake.nix b/flake.nix index 33a2a472..5ef2d992 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,7 @@ { squawk = final.rustPlatform.buildRustPackage { pname = "squawk"; - version = "2.39.0"; + version = "2.40.0"; cargoLock = { lockFile = ./Cargo.lock; diff --git a/package.json b/package.json index ba36f9d4..e76699c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "squawk-cli", - "version": "2.39.0", + "version": "2.40.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 745cc92b..d23e0b06 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.39.0", + "version": "2.40.0", "engines": { "vscode": "^1.101.0" },