Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "squawk"
version = "1.6.1"
version = "2.0.0"
default-run = "squawk"

authors.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{
squawk = final.rustPlatform.buildRustPackage {
pname = "squawk";
version = "1.6.1";
version = "2.0.0";

cargoLock = {
lockFile = ./Cargo.lock;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <steve@dignam.xyz>",
Expand Down
2 changes: 1 addition & 1 deletion s/update-version
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading