diff --git a/CHANGELOG.md b/CHANGELOG.md index 74937fe5..2e93917c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## v2.0.0 - 2025-05-07 + +### Added + +- [Ignore comments to disable a rule inline](https://squawkhq.com/docs/cli#disabling-rules-via-comments). +- Fancier lint violation formatting in the terminal using [annotate-snippets](https://github.com/rust-lang/annotate-snippets-rs). +- [WASM powered playground](https://play.squawkhq.com) to run Squawk locally in the browser. +- [New parser with error recovery](https://github.com/sbdchd/squawk/blob/master/crates/squawk_parser/src/grammar.rs) -- it doesn't fail if you're missing a comma, semicolon, etc! This also means we've removed the dependency on libpg_query. +- Dockerfile to run Squawk in a container (#422). Thanks @alphayax! + +### Removed + +- `prefer-big-int` rule, which has been deprecated in favor of `prefer-bigint-over-int` and `prefer-bigint-over-smallint` for a while now. + ## v1.6.1 - 2025-05-02 ### Fixed diff --git a/Cargo.lock b/Cargo.lock index 7aa2b883..9ca92dc6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2543,7 +2543,7 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" [[package]] name = "squawk" -version = "1.6.1" +version = "2.0.0" dependencies = [ "annotate-snippets", "anyhow", diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index e82829d6..8c749b23 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "squawk" -version = "1.6.1" +version = "2.0.0" default-run = "squawk" authors.workspace = true diff --git a/flake.nix b/flake.nix index 65000a3b..63409812 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,7 @@ { squawk = final.rustPlatform.buildRustPackage { pname = "squawk"; - version = "1.6.1"; + version = "2.0.0"; cargoLock = { lockFile = ./Cargo.lock; diff --git a/package.json b/package.json index 46667b74..80b1ab7a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "squawk-cli", - "version": "1.6.1", + "version": "2.0.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 80b9bfb0..bd13e427 100755 --- a/s/update-version +++ b/s/update-version @@ -6,7 +6,7 @@ function main { NEW_VERSION="$1" echo "updating version to '$NEW_VERSION'..." - fastmod '^version = ".*"' 'version = "'$NEW_VERSION'"' cli/Cargo.toml + fastmod '^version = ".*"' 'version = "'$NEW_VERSION'"' crates/cli/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