diff --git a/CHANGELOG.md b/CHANGELOG.md index 075a4d68..42909674 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,45 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## v2.37.0 - 2026-01-18 + +### Added + +- ide: cast function <-> cast operator code actions (#834) +- ide: values <-> select code actions (#846, #847) +- ide: insert schema code action (#855, #856) +- code completion + - ide: delete from completion improvements (#861) + - ide: completion for truncate, table, select (#857) + - ide: code completion in playground & prettier upgrade (#859) + - ide: code completion for schemas (#858) +- many goto def & hover improvements + - ide: goto def for create/alter/drop role (#854) + - ide: create/alter/drop event trigger (#852) + - ide: listen/notify/unlisten (#851) + - ide: goto def with create/drop trigger (#850) + - ide: goto def/hover/document symbol support for prepare stmt (#849) + - ide: add support for declare/fetch/move/close cursor (#848) + - ide: better goto def support for returning clause in insert/update/delete (#828) + - ide: improved goto def & hover for merge stmts (#830) + - ide: goto def/hover for like and inherits clauses (#832) + - ide: goto def nested table/values (#844) + - ide: goto def with column list alias (#843) + - ide: goto def on function using table as type (#842) + - ide: goto def on named params & special functions (#841) + - ide: goto def on extensions (#840) +- ide: inlay hints for select in insert stmt (#845) +- parser: improve error handling for unfinished select stmt (#838) +- playground: expand selection support (#829) + +### Changed + +- parser: update role grammar to use refs like names (#853) + +### Fixed + +- ide: fix default search path to include pg_catalog (#864) + ## v2.36.0 - 2026-01-06 ### Added diff --git a/Cargo.lock b/Cargo.lock index d2aa0bdf..98de395e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1882,7 +1882,7 @@ dependencies = [ [[package]] name = "squawk" -version = "2.36.0" +version = "2.37.0" dependencies = [ "annotate-snippets", "anyhow", @@ -1911,7 +1911,7 @@ dependencies = [ [[package]] name = "squawk-github" -version = "2.36.0" +version = "2.37.0" dependencies = [ "jsonwebtoken", "log", @@ -1922,7 +1922,7 @@ dependencies = [ [[package]] name = "squawk-ide" -version = "2.36.0" +version = "2.37.0" dependencies = [ "annotate-snippets", "insta", @@ -1940,14 +1940,14 @@ dependencies = [ [[package]] name = "squawk-lexer" -version = "2.36.0" +version = "2.37.0" dependencies = [ "insta", ] [[package]] name = "squawk-linter" -version = "2.36.0" +version = "2.37.0" dependencies = [ "annotate-snippets", "enum-iterator", @@ -1962,7 +1962,7 @@ dependencies = [ [[package]] name = "squawk-parser" -version = "2.36.0" +version = "2.37.0" dependencies = [ "annotate-snippets", "camino", @@ -1976,7 +1976,7 @@ dependencies = [ [[package]] name = "squawk-server" -version = "2.36.0" +version = "2.37.0" dependencies = [ "anyhow", "insta", @@ -1996,7 +1996,7 @@ dependencies = [ [[package]] name = "squawk-syntax" -version = "2.36.0" +version = "2.37.0" dependencies = [ "annotate-snippets", "camino", @@ -2009,7 +2009,7 @@ dependencies = [ [[package]] name = "squawk-wasm" -version = "2.36.0" +version = "2.37.0" dependencies = [ "console_error_panic_hook", "console_log", @@ -2862,7 +2862,7 @@ checksum = "32ac00cd3f8ec9c1d33fb3e7958a82df6989c42d747bd326c822b1d625283547" [[package]] name = "xtask" -version = "2.36.0" +version = "2.37.0" dependencies = [ "anyhow", "camino", diff --git a/Cargo.toml b/Cargo.toml index d5eb25a2..08d5e1fb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = ["crates/*"] resolver = "2" [workspace.package] -version = "2.36.0" +version = "2.37.0" edition = "2024" rust-version = "1.90.0" authors = ["Squawk Team & Contributors"] @@ -63,13 +63,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.36.0" } -squawk-ide = { path = "./crates/squawk_ide", version = "2.36.0" } -squawk-lexer = { path = "./crates/squawk_lexer", version = "2.36.0" } -squawk-parser = { path = "./crates/squawk_parser", version = "2.36.0" } -squawk-syntax = { path = "./crates/squawk_syntax", version = "2.36.0" } -squawk-linter = { path = "./crates/squawk_linter", version = "2.36.0" } -squawk-server = { path = "./crates/squawk_server", version = "2.36.0" } +squawk-github = { path = "./crates/squawk_github", version = "2.37.0" } +squawk-ide = { path = "./crates/squawk_ide", version = "2.37.0" } +squawk-lexer = { path = "./crates/squawk_lexer", version = "2.37.0" } +squawk-parser = { path = "./crates/squawk_parser", version = "2.37.0" } +squawk-syntax = { path = "./crates/squawk_syntax", version = "2.37.0" } +squawk-linter = { path = "./crates/squawk_linter", version = "2.37.0" } +squawk-server = { path = "./crates/squawk_server", version = "2.37.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 8178ade7..a3852a06 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.36.0"; +pub(crate) const SQUAWK_USER_AGENT: &str = "squawk/2.37.0"; #[derive(Debug, Serialize)] struct CommentBody { diff --git a/flake.nix b/flake.nix index 598c9ee0..db12b694 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,7 @@ { squawk = final.rustPlatform.buildRustPackage { pname = "squawk"; - version = "2.36.0"; + version = "2.37.0"; cargoLock = { lockFile = ./Cargo.lock; diff --git a/package.json b/package.json index 8b2e39c7..b94c0179 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "squawk-cli", - "version": "2.36.0", + "version": "2.37.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 55c480f6..70a77aa1 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.36.0", + "version": "2.37.0", "engines": { "vscode": "^1.101.0" },