Skip to content

Commit e838e84

Browse files
committed
Release notes for version 0.12.0
1 parent b337c25 commit e838e84

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/release-notes.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Release Notes
22

3+
## 0.12.0
4+
5+
### Fixed
6+
7+
- Fixed `extract_options` in `SQLAlchemyDatabase` popping the wrong key when extracting `isolation_level` from URL query parameters. The loop variable `param` retained the value `"echo_pool"` from the previous iteration, so `isolation_level` was never actually extracted.
8+
- Fixed transaction decorator (`Transaction.__call__`) silently discarding the decorated function's return value. `await func(...)` is now `return await func(...)`.
9+
- Fixed force-disconnect cleanup in `Database.disconnect()` being unreachable dead code. An `assert not self._databases_map` inside an `if self._databases_map:` block always fired before the sub-database cleanup loop could execute.
10+
- Fixed `Database._connection` property setter returning a value (silently discarded by Python) and having an incorrect `-> Connection | None` return annotation. Setters are now correctly `-> None`.
11+
12+
### Changed
13+
14+
- Narrowed `except Exception` to `except ImportError` in `TYPE_CHECKING` blocks in `interfaces.py` and `core/database.py` to avoid masking genuine errors like `SyntaxError` or `AttributeError`.
15+
- Replaced mutable list defaults `["databasez.overwrites"]` with immutable tuples `("databasez.overwrites",)` in `Database.get_backends()` and `Database.apply_database_url_and_options()`.
16+
- Extracted duplicated dialect detection, URL redirection, and AUTOCOMMIT logic in `DatabaseTestClient` into `_resolve_admin_url()`, `_needs_autocommit()`, and `_admin_client()` helper methods.
17+
- Tightened type annotations: `column: Any``column: int | str`, `template: Any``template: str | None`.
18+
- Removed duplicated exception handling block in `AsyncWrapper.__getattribute__` (second block was unreachable dead code).
19+
- Simplified `else: raise exc` anti-patterns to bare `raise` in `utils.py`.
20+
321
## 0.11.5
422

523
### Changed

0 commit comments

Comments
 (0)