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
48 changes: 48 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,54 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## v2.8.0 - 2025-05-25

### Fixed

- Fix parsing `select select`. (#499)

Previously, the following would panic:

```sql
select select
```

- Fix displaying warnings as errors. (#502)

We were highlighting warnings using the error syntax (red `^` instead of yellow `-`). We also were rendering syntax errors as warnings instead of errors!

- Fix parsing aggregate args with modifiers like `distinct` or `all`. (#498) Thanks @psteinroe!

Previously the following would error:

```sql
select string_agg(distinct c, ',')
filter (where length(c) > 1)
from t;
```

- Fix parsing data sources within params. (#497) Thanks @psteinroe!

Previously the following would error:

```sql
select f1, count(*) from
t1 x(x0,x1) left join (t1 left join t2 using(f1)) on (x0 = 0)
```

- Fix parsing alternative boolean keywords. (#493) Thanks @psteinroe!

Previously the following would error:

```sql
explain (costs off) select;
```

## Changed

- Renamed `ast::Item` to `ast::Stmt`. (#483)
- Split `select` into `select`, `tables`, and `values` statements. (#484)

## v2.7.0 - 2025-05-14

### 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/squawk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "squawk"
version = "2.7.0"
version = "2.8.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 = "2.7.0";
version = "2.8.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": "2.7.0",
"version": "2.8.0",
"description": "linter for PostgreSQL, focused on migrations",
"repository": "git@github.com:sbdchd/squawk.git",
"author": "Steve Dignam <steve@dignam.xyz>",
Expand Down
Loading