diff --git a/CHANGELOG.md b/CHANGELOG.md index a00b832b..a556643e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## v2.32.0 - 2025-12-04 + +## Fixed + +- parser: fixed issue parsing some `insert`'s with `select`s and `conflict` clauses (#720, #721, #722). + +## Added + +- parser: special case functions like `extract` are now properly typed in the ast (#719). + ## v2.31.0 - 2025-11-24 ## Added diff --git a/Cargo.lock b/Cargo.lock index b173d54f..1a82d000 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1831,7 +1831,7 @@ dependencies = [ [[package]] name = "squawk" -version = "2.31.0" +version = "2.32.0" dependencies = [ "annotate-snippets", "anyhow", @@ -1860,7 +1860,7 @@ dependencies = [ [[package]] name = "squawk-github" -version = "2.31.0" +version = "2.32.0" dependencies = [ "jsonwebtoken", "log", @@ -1871,7 +1871,7 @@ dependencies = [ [[package]] name = "squawk-ide" -version = "2.31.0" +version = "2.32.0" dependencies = [ "annotate-snippets", "insta", @@ -1884,14 +1884,14 @@ dependencies = [ [[package]] name = "squawk-lexer" -version = "2.31.0" +version = "2.32.0" dependencies = [ "insta", ] [[package]] name = "squawk-linter" -version = "2.31.0" +version = "2.32.0" dependencies = [ "enum-iterator", "insta", @@ -1905,7 +1905,7 @@ dependencies = [ [[package]] name = "squawk-parser" -version = "2.31.0" +version = "2.32.0" dependencies = [ "camino", "dir-test", @@ -1918,7 +1918,7 @@ dependencies = [ [[package]] name = "squawk-server" -version = "2.31.0" +version = "2.32.0" dependencies = [ "anyhow", "insta", @@ -1938,7 +1938,7 @@ dependencies = [ [[package]] name = "squawk-syntax" -version = "2.31.0" +version = "2.32.0" dependencies = [ "camino", "dir-test", @@ -1950,7 +1950,7 @@ dependencies = [ [[package]] name = "squawk-wasm" -version = "2.31.0" +version = "2.32.0" dependencies = [ "console_error_panic_hook", "console_log", @@ -2767,7 +2767,7 @@ checksum = "32ac00cd3f8ec9c1d33fb3e7958a82df6989c42d747bd326c822b1d625283547" [[package]] name = "xtask" -version = "2.31.0" +version = "2.32.0" dependencies = [ "anyhow", "camino", diff --git a/Cargo.toml b/Cargo.toml index c678caf6..367b7a69 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = ["crates/*"] resolver = "2" [workspace.package] -version = "2.31.0" +version = "2.32.0" edition = "2024" rust-version = "1.90.0" authors = ["Squawk Team & Contributors"] @@ -59,13 +59,13 @@ 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.31.0" } -squawk-ide = { path = "./crates/squawk_ide", version = "2.31.0" } -squawk-lexer = { path = "./crates/squawk_lexer", version = "2.31.0" } -squawk-parser = { path = "./crates/squawk_parser", version = "2.31.0" } -squawk-syntax = { path = "./crates/squawk_syntax", version = "2.31.0" } -squawk-linter = { path = "./crates/squawk_linter", version = "2.31.0" } -squawk-server = { path = "./crates/squawk_server", version = "2.31.0" } +squawk-github = { path = "./crates/squawk_github", version = "2.32.0" } +squawk-ide = { path = "./crates/squawk_ide", version = "2.32.0" } +squawk-lexer = { path = "./crates/squawk_lexer", version = "2.32.0" } +squawk-parser = { path = "./crates/squawk_parser", version = "2.32.0" } +squawk-syntax = { path = "./crates/squawk_syntax", version = "2.32.0" } +squawk-linter = { path = "./crates/squawk_linter", version = "2.32.0" } +squawk-server = { path = "./crates/squawk_server", version = "2.32.0" } [workspace.lints.clippy] collapsible_else_if = "allow" diff --git a/README.md b/README.md index 94beb9af..8a58c5d8 100644 --- a/README.md +++ b/README.md @@ -330,17 +330,17 @@ cargo xtask new-rule 'prefer big serial' ### Releasing a New Version -1. Update the `CHANGELOG.md` - - Include a description of any fixes / additions. Make sure to include the PR numbers and credit the authors. - -2. Run `s/update-version` +1. Run `s/update-version` ```bash # update version in squawk/Cargo.toml, package.json, flake.nix to 4.5.3 s/update-version 4.5.3 ``` +2. Update the `CHANGELOG.md` + + Include a description of any fixes / additions. Make sure to include the PR numbers and credit the authors. + 3. Create a new release on GitHub Use the text and version from the `CHANGELOG.md` diff --git a/crates/squawk_github/src/app.rs b/crates/squawk_github/src/app.rs index e2238a4f..2676e13b 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.31.0"; +pub(crate) const SQUAWK_USER_AGENT: &str = "squawk/2.32.0"; #[derive(Debug, Serialize)] struct CommentBody { diff --git a/flake.nix b/flake.nix index 60048861..80b994be 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,7 @@ { squawk = final.rustPlatform.buildRustPackage { pname = "squawk"; - version = "2.31.0"; + version = "2.32.0"; cargoLock = { lockFile = ./Cargo.lock; diff --git a/package.json b/package.json index 8809e091..d3456ec7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "squawk-cli", - "version": "2.31.0", + "version": "2.32.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 99f9ae69..f9805ba5 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.31.0", + "version": "2.32.0", "engines": { "vscode": "^1.101.0" },