From 2f247d16a22d2c7b42406b86cfe4c0d1e3f00dcb Mon Sep 17 00:00:00 2001 From: collerek Date: Wed, 22 Apr 2026 13:47:26 +0200 Subject: [PATCH] chore(release): prepare 0.24.0 Bump version and add release notes for 0.24.0. Features: - on_update field option (#1273) - fk_name override on ForeignKey (#849) - forward autoincrement to SQLAlchemy column (#674) Fixes: - run standalone queries under AUTOCOMMIT isolation, restoring 0.21-era per-row CRUD performance (#1629, #1635) Co-Authored-By: Claude Opus 4.7 (1M context) --- docs/releases.md | 12 ++++++++++++ pyproject.toml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/releases.md b/docs/releases.md index ec74d0a96..88cec3758 100644 --- a/docs/releases.md +++ b/docs/releases.md @@ -1,5 +1,17 @@ # Release notes +## 0.24.0 + +### ✨ Features + +* Add `on_update` option to fields to customize SQL `ON UPDATE` behavior - thanks @vvanglro [#1273](https://github.com/collerek/ormar/pull/1273) +* Allow overriding auto-generated foreign key constraint names via `fk_name` parameter on `ormar.ForeignKey`, useful when the generated name exceeds the database's identifier length limit - thanks @nikelborm [#849](https://github.com/collerek/ormar/pull/849) +* Forward `autoincrement` property from ormar field to the underlying SQLAlchemy column, enabling DDL with manually managed integer primary keys - thanks @smuething [#674](https://github.com/collerek/ormar/pull/674) + +### 🐛 Fixes + +* Run standalone queries under AUTOCOMMIT isolation to remove the per-query `BEGIN`/`COMMIT` round-trip introduced in 0.22.0. Restores (and exceeds) 0.21-era performance on per-row CRUD and single-row reads while keeping explicit `database.transaction()` and savepoints working. `bulk_update` and `iterate` are internally wrapped in an explicit transaction so their batch-commit and server-side-cursor semantics are preserved [#1629](https://github.com/collerek/ormar/discussions/1629) [#1635](https://github.com/collerek/ormar/pull/1635) + ## 0.23.1 ### ‼️🚨 High vulnerability fixed – please upgrade ASAP diff --git a/pyproject.toml b/pyproject.toml index 502b8450c..c48312100 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "ormar" [tool.poetry] name = "ormar" -version = "0.23.1" +version = "0.24.0" description = "An async ORM with fastapi in mind and pydantic validation." authors = ["Radosław Drążkiewicz "] license = "MIT"