diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f40567b..a900e5d0 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.3.0 - 2025-05-13 + +### Fixed + +- Parsing `grant` and `revoke` statements with schema specified names, aka the following parses correctly: (#469) + + ```sql + GRANT ALL ON SEQUENCE public.s TO u; + ``` + ## v2.2.0 - 2025-05-12 ### Added diff --git a/Cargo.lock b/Cargo.lock index 6dba5c8f..ef1c2da3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2543,7 +2543,7 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" [[package]] name = "squawk" -version = "2.2.0" +version = "2.3.0" dependencies = [ "annotate-snippets", "anyhow", diff --git a/crates/squawk/Cargo.toml b/crates/squawk/Cargo.toml index 727ace55..c4b268b5 100644 --- a/crates/squawk/Cargo.toml +++ b/crates/squawk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "squawk" -version = "2.2.0" +version = "2.3.0" default-run = "squawk" authors.workspace = true diff --git a/flake.nix b/flake.nix index 761b2a4d..0243db1e 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,7 @@ { squawk = final.rustPlatform.buildRustPackage { pname = "squawk"; - version = "2.2.0"; + version = "2.3.0"; cargoLock = { lockFile = ./Cargo.lock; diff --git a/package.json b/package.json index d5449f23..2c380b2a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "squawk-cli", - "version": "2.2.0", + "version": "2.3.0", "description": "linter for PostgreSQL, focused on migrations", "repository": "git@github.com:sbdchd/squawk.git", "author": "Steve Dignam ", diff --git a/s/update-version b/s/update-version index d176158a..7c468aa4 100755 --- a/s/update-version +++ b/s/update-version @@ -6,10 +6,10 @@ function main { NEW_VERSION="$1" echo "updating version to '$NEW_VERSION'..." - fastmod '^version = ".*"' 'version = "'$NEW_VERSION'"' crates/squawk/Cargo.toml - fastmod -m '(name = "squawk"\n)version = ".*?"' '${1}version = "'$NEW_VERSION'"' Cargo.lock - fastmod '"version": ".*"' '"version": "'$NEW_VERSION'"' package.json - fastmod -m '(pname = "squawk";.*?)version = ".*?"' '${1}version = "'$NEW_VERSION'"' flake.nix + fastmod --accept-all '^version = ".*"' 'version = "'$NEW_VERSION'"' crates/squawk/Cargo.toml + fastmod --accept-all -m '(name = "squawk"\n)version = ".*?"' '${1}version = "'$NEW_VERSION'"' Cargo.lock + fastmod --accept-all '"version": ".*"' '"version": "'$NEW_VERSION'"' package.json + fastmod --accept-all -m '(pname = "squawk";.*?)version = ".*?"' '${1}version = "'$NEW_VERSION'"' flake.nix }