Skip to content

Commit 1a71748

Browse files
authored
release: 2.28.0 (#672)
1 parent ee31244 commit 1a71748

File tree

8 files changed

+48
-16
lines changed

8 files changed

+48
-16
lines changed

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## v2.28.0 - 2025-10-02
11+
12+
## Added
13+
14+
- New rule: require-timeout-settings (#671)
15+
16+
It's important to configure lock & statement timeouts to ensure safe migrations.
17+
See [Safety Requirements](https://squawkhq.com/docs/safe_migrations#safety-requirements)
18+
19+
So the following will error:
20+
21+
```sql
22+
alter table t add column c boolean;
23+
```
24+
25+
but this is okay:
26+
27+
```sql
28+
set lock_timeout = '1s';
29+
set statement_timeout = '5s';
30+
alter table t add column c boolean;
31+
```
32+
33+
If you've already configured timeouts for your migrations, you can safely
34+
ignore this rule.
35+
36+
## Fixed
37+
38+
- parser: pg18 `like` clause in `create foreign table` now parses (#666)
39+
40+
- cli: parsing rule alises i.e., prefer-timestamptz and prefer-timestamp-tz both work. (#668)
41+
1042
## v2.27.0 - 2025-09-23
1143

1244
## Added

Cargo.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = ["crates/*"]
33
resolver = "2"
44

55
[workspace.package]
6-
version = "2.27.0"
6+
version = "2.28.0"
77
edition = "2024"
88
rust-version = "1.90.0"
99
authors = ["Squawk Team & Contributors"]

crates/squawk_github/src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use serde_json::Value;
1111
use std::time::Duration;
1212
use std::time::{SystemTime, UNIX_EPOCH};
1313

14-
pub(crate) const SQUAWK_USER_AGENT: &str = "squawk/2.27.0";
14+
pub(crate) const SQUAWK_USER_AGENT: &str = "squawk/2.28.0";
1515

1616
#[derive(Debug, Serialize)]
1717
struct CommentBody {

docs/docs/require-timeout-settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: require-timeout-settings
55

66
## problem
77

8-
You must configure a `lock_timeout` to safely apply migrations. See (see ["Safety requirements"](./safe_migrations.md#safety-requirements))
8+
You must configure a `lock_timeout` to safely apply migrations. See ["Safety requirements"](./safe_migrations.md#safety-requirements)
99

1010
Additionally, a statement_timeout also helps prevent long migrations that consume too many database resources.
1111

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{
1919
squawk = final.rustPlatform.buildRustPackage {
2020
pname = "squawk";
21-
version = "2.27.0";
21+
version = "2.28.0";
2222

2323
cargoLock = {
2424
lockFile = ./Cargo.lock;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "squawk-cli",
3-
"version": "2.27.0",
3+
"version": "2.28.0",
44
"description": "linter for PostgreSQL, focused on migrations",
55
"repository": "[email protected]:sbdchd/squawk.git",
66
"author": "Squawk Team & Contributors",

squawk-vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"icon": "icon.png",
1010
"author": "Squawk Team & Contributors",
1111
"license": "(Apache-2.0 OR MIT)",
12-
"version": "2.27.0",
12+
"version": "2.28.0",
1313
"engines": {
1414
"vscode": "^1.101.0"
1515
},

0 commit comments

Comments
 (0)