From c495e160758c24119435ae38c739e369ac7bdb2a Mon Sep 17 00:00:00 2001 From: Steve Dignam Date: Sun, 24 Aug 2025 22:18:38 -0400 Subject: [PATCH] release: 2.24.0 --- CHANGELOG.md | 12 ++++++++++++ Cargo.lock | 2 +- crates/squawk/Cargo.toml | 2 +- flake.nix | 2 +- package.json | 2 +- s/update-version | 9 +++++++-- squawk-vscode/package.json | 2 +- 7 files changed, 24 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8acd4b68..3cf11248 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.24.0 - 2025-08-24 + +## Added + +- linter: quick fixes for prefer-text-field (#621), ban-char-field (#620), prefer-bigint-over-int, prefer-bigint-over-small-int (#618), and prefer-timestamptz (#617). + +## Fixed + +- Fixed typos in linter docs (#623). Thanks @benedikt-bartscher! + +- linter: fix ban-char-field to be case insensitive (#619). + ## v2.23.0 - 2025-08-20 ## Added diff --git a/Cargo.lock b/Cargo.lock index 993a8d8a..7a8c0bb3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2596,7 +2596,7 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" [[package]] name = "squawk" -version = "2.23.0" +version = "2.24.0" dependencies = [ "annotate-snippets", "anyhow", diff --git a/crates/squawk/Cargo.toml b/crates/squawk/Cargo.toml index ea099ba6..94b6cb54 100644 --- a/crates/squawk/Cargo.toml +++ b/crates/squawk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "squawk" -version = "2.23.0" +version = "2.24.0" default-run = "squawk" authors.workspace = true diff --git a/flake.nix b/flake.nix index 72fc993a..1f3a08f2 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,7 @@ { squawk = final.rustPlatform.buildRustPackage { pname = "squawk"; - version = "2.23.0"; + version = "2.24.0"; cargoLock = { lockFile = ./Cargo.lock; diff --git a/package.json b/package.json index 0c973042..5070817d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "squawk-cli", - "version": "2.23.0", + "version": "2.24.0", "description": "linter for PostgreSQL, focused on migrations", "repository": "git@github.com:sbdchd/squawk.git", "author": "Squawk Team & Contributors", diff --git a/s/update-version b/s/update-version index 45d938b5..5af2e891 100755 --- a/s/update-version +++ b/s/update-version @@ -7,8 +7,13 @@ main() { NEW_VERSION="$1" if [ -z "$NEW_VERSION" ]; then - echo "Error: NEW_VERSION is required. Usage: $0 " - exit 1 + NEW_VERSION=$(awk -F'[".]' '/^version = / {print $2 "." ($3+1) ".0"}' crates/squawk/Cargo.toml) + if [ -z "$NEW_VERSION" ]; then + echo "Error: Could not determine current version" + exit 1 + fi + + echo "Auto-incrementing to $NEW_VERSION" fi echo "Checking out master branch..." diff --git a/squawk-vscode/package.json b/squawk-vscode/package.json index d1e172f7..e1cc0be1 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.23.0", + "version": "2.24.0", "engines": { "vscode": "^1.101.0" },