Skip to content

Commit 895d168

Browse files
committed
chore: Bump version to v0.9.0
1 parent a858c67 commit 895d168

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## 0.9.0 - 2026-03-21
9+
10+
### Added
11+
12+
- `AddCheckConstraintCheck` - Detects `ADD CHECK` without `NOT VALID`, which causes a full table scan (ACCESS EXCLUSIVE lock).
13+
- `AddForeignKeyCheck` - Detects `ADD FOREIGN KEY` without `NOT VALID`, which acquires a ShareRowExclusiveLock and blocks writes.
14+
- **`warn_checks` config option** — Downgrade specific checks from errors to warnings. Violations still appear in output but do not cause a non-zero exit code. Mutually exclusive with `disable_checks` and `enable_checks`.
15+
- **Pre-commit hook support** — diesel-guard can now be used as a [pre-commit](https://pre-commit.com/) hook.
16+
- **Migration metadata parsing** — Diesel and SQLx migration metadata (`-- no-transaction`) is now parsed and exposed to checks as context. Context-aware checks (`AddIndexCheck`, `DropIndexCheck`, `ReindexCheck`) use this to permit CONCURRENTLY outside transactions.
17+
18+
### Changed
19+
20+
- **Default check path**`diesel-guard check` now defaults to `./migrations` when no path is given.
21+
- **Improved parse error messages** — SQL parse failures now show the offending SQL with a highlighted span.
22+
- **Improved CONCURRENTLY hint messages** — Hints for operations requiring CONCURRENTLY are now clearer about when and why to use it.
23+
824
## 0.8.0 - 2026-03-06
925

1026
### Added

Cargo.lock

Lines changed: 1 addition & 1 deletion
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
@@ -1,6 +1,6 @@
11
[package]
22
name = "diesel-guard"
3-
version = "0.8.0"
3+
version = "0.9.0"
44
edition = "2024"
55
authors = ["Alex Yarotsky <https://github.com/ayarotsky>"]
66
description = "Linter for dangerous Postgres migration patterns in Diesel and SQLx. Prevents downtime caused by unsafe schema changes."

0 commit comments

Comments
 (0)