Skip to content

Commit f6a7338

Browse files
committed
Update CHANGELOG
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
1 parent f9d426a commit f6a7338

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,23 @@ 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.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
## [0.2.0] - 2026-04-02
11+
12+
### Breaking Changes
13+
14+
- **pg**: `ExecFunc` signature changed from `func(Conn) error` to `func(context.Context, Conn) error`. All callbacks passed to `WithConn`, `WithTx`, and `WithAdvisoryLock` must be updated to accept a `context.Context` as the first parameter. The provided context carries the active transaction, enabling savepoint support in nested calls.
15+
16+
### Added
17+
18+
- **pg**: Nested `WithTx` calls now create savepoints instead of independent transactions. If the inner callback fails, only the savepoint is rolled back; the outer transaction remains active.
19+
- **pg**: `WithoutTx` function to obtain a context with the active transaction removed, useful when a nested call should start an independent transaction.
20+
21+
### Changed
22+
23+
- Updated dependencies
24+
825
## [0.1.1] - 2026-02-05
926

1027
### Fixed

0 commit comments

Comments
 (0)