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

## [Unreleased]

## v2.26.0 - 2025-09-15

## Added

- linter: `adding-field-with-default` now allows more cases (#652).

```sql
alter table t add column c text[] default array[]::text[];
alter table t add column c timestamptz default current_timestamp;

-- const/non-volatile binary expressions are also allowed
alter table t add column c timestamptz default now() - interval '100 years';
```


## Fixed

- parser: parse materialized views using a paren select (#651).

The following now parses:

```sql
create materialized view v
as (select * from t);
```

## Changed

- cli now uses unicode for snippet annotations (#654).

## v2.25.1 - 2025-09-03

## Fixed
Expand Down
18 changes: 9 additions & 9 deletions 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = ["crates/*"]
resolver = "2"

[workspace.package]
version = "2.25.1"
version = "2.26.0"
edition = "2024"
rust-version = "1.88.0"
authors = ["Squawk Team & Contributors"]
Expand Down
2 changes: 1 addition & 1 deletion crates/squawk_github/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use serde_json::Value;
use std::time::Duration;
use std::time::{SystemTime, UNIX_EPOCH};

pub(crate) const SQUAWK_USER_AGENT: &str = "squawk/2.25.1";
pub(crate) const SQUAWK_USER_AGENT: &str = "squawk/2.26.0";

#[derive(Debug, Serialize)]
struct CommentBody {
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.25.1";
version = "2.26.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.25.1",
"version": "2.26.0",
"description": "linter for PostgreSQL, focused on migrations",
"repository": "[email protected]:sbdchd/squawk.git",
"author": "Squawk Team & Contributors",
Expand Down
2 changes: 1 addition & 1 deletion squawk-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"icon": "icon.png",
"author": "Squawk Team & Contributors",
"license": "(Apache-2.0 OR MIT)",
"version": "2.25.1",
"version": "2.26.0",
"engines": {
"vscode": "^1.101.0"
},
Expand Down
Loading