Skip to content

Commit 5535390

Browse files
authored
Prepare release v0.39.0 (#1273)
Prepare release v0.39.0, which contains a grab bag of fairly minor additions and fixes. We do add one backward incompatible change, but on what's likely a fairly rarely used function, `Migrator.Validate`. [skip ci]
1 parent eead0e5 commit 5535390

9 files changed

Lines changed: 38 additions & 36 deletions

File tree

CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [0.39.0] - 2026-06-03
11+
1012
⚠️ **Breaking API change:** `rivermigrate.Migrator.Validate` and `rivermigrate.Migrator.ValidateTx` now take a `*rivermigrate.ValidateOpts` parameter. Pass `nil` to preserve previous behavior. We normally endeavor not to make any breaking API changes, but this one will keep the API in a much nicer state, and is on an ancillary function that most installations won't be using. [PR #1259](https://github.com/riverqueue/river/pull/1259)
1113

1214
### Added
@@ -15,9 +17,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1517

1618
### Changed
1719

18-
- Added `rivermigrate.ValidateOpts.TargetVersion` so validation can check migrations up to a specific target version, matching the target-version behavior available on `Migrate` and `MigrateTx`. Notably, this is a breaking API change as the validate functions previously didn't take any options. [PR #1259](https://github.com/riverqueue/river/pull/1259)
20+
- Add `rivermigrate.ValidateOpts.TargetVersion` so validation can check migrations up to a specific target version, matching the target-version behavior available on `Migrate` and `MigrateTx`. Notably, this is a breaking API change as the validate functions previously didn't take any options. [PR #1259](https://github.com/riverqueue/river/pull/1259)
1921
- When using `(*Migrator[TTx]).Migrate` with a `TargetVersion` that's already applied, River now no-ops idempotently instead of returning an error as a user convenience. [PR #1260](https://github.com/riverqueue/river/pull/1260)
20-
- Log dropped job and queue subscription events at warn level when a subscriber buffer is full, including `event_kind` for easier diagnosis. [PR #1271](https://github.com/riverqueue/river/pull/1271)
22+
- Add logging statement for dropped job and queue subscription events at warn level when a subscriber buffer is full. [PR #1271](https://github.com/riverqueue/river/pull/1271)
2123

2224
### Fixed
2325

cmd/river/go.mod

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ toolchain go1.25.7
77
require (
88
github.com/jackc/pgx/v5 v5.9.2
99
github.com/lmittmann/tint v1.1.3
10-
github.com/riverqueue/river v0.38.0
11-
github.com/riverqueue/river/riverdriver v0.38.0
12-
github.com/riverqueue/river/riverdriver/riverpgxv5 v0.38.0
13-
github.com/riverqueue/river/riverdriver/riversqlite v0.38.0
14-
github.com/riverqueue/river/rivershared v0.38.0
15-
github.com/riverqueue/river/rivertype v0.38.0
10+
github.com/riverqueue/river v0.39.0
11+
github.com/riverqueue/river/riverdriver v0.39.0
12+
github.com/riverqueue/river/riverdriver/riverpgxv5 v0.39.0
13+
github.com/riverqueue/river/riverdriver/riversqlite v0.39.0
14+
github.com/riverqueue/river/rivershared v0.39.0
15+
github.com/riverqueue/river/rivertype v0.39.0
1616
github.com/spf13/cobra v1.10.2
1717
github.com/stretchr/testify v1.11.1
1818
modernc.org/sqlite v1.51.0

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ require (
88
github.com/jackc/pgerrcode v0.0.0-20240316143900-6e2875d9b438
99
github.com/jackc/pgx/v5 v5.9.2
1010
github.com/jackc/puddle/v2 v2.2.2
11-
github.com/riverqueue/river/riverdriver v0.38.0
12-
github.com/riverqueue/river/riverdriver/riverpgxv5 v0.38.0
13-
github.com/riverqueue/river/rivershared v0.38.0
14-
github.com/riverqueue/river/rivertype v0.38.0
11+
github.com/riverqueue/river/riverdriver v0.39.0
12+
github.com/riverqueue/river/riverdriver/riverpgxv5 v0.39.0
13+
github.com/riverqueue/river/rivershared v0.39.0
14+
github.com/riverqueue/river/rivertype v0.39.0
1515
github.com/robfig/cron/v3 v3.0.1
1616
github.com/stretchr/testify v1.11.1
1717
github.com/tidwall/gjson v1.19.0

riverdriver/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.25.0
55
toolchain go1.25.7
66

77
require (
8-
github.com/riverqueue/river/rivertype v0.38.0
8+
github.com/riverqueue/river/rivertype v0.39.0
99
github.com/stretchr/testify v1.11.1
1010
)
1111

riverdriver/riverdatabasesql/go.mod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ toolchain go1.25.7
77
require (
88
github.com/jackc/pgx/v5 v5.9.2
99
github.com/lib/pq v1.12.3
10-
github.com/riverqueue/river v0.38.0
11-
github.com/riverqueue/river/riverdriver v0.38.0
12-
github.com/riverqueue/river/rivershared v0.38.0
13-
github.com/riverqueue/river/rivertype v0.38.0
10+
github.com/riverqueue/river v0.39.0
11+
github.com/riverqueue/river/riverdriver v0.39.0
12+
github.com/riverqueue/river/rivershared v0.39.0
13+
github.com/riverqueue/river/rivertype v0.39.0
1414
github.com/stretchr/testify v1.11.1
1515
)
1616

@@ -20,7 +20,7 @@ require (
2020
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
2121
github.com/jackc/puddle/v2 v2.2.2 // indirect
2222
github.com/pmezard/go-difflib v1.0.0 // indirect
23-
github.com/riverqueue/river/riverdriver/riverpgxv5 v0.38.0 // indirect
23+
github.com/riverqueue/river/riverdriver/riverpgxv5 v0.39.0 // indirect
2424
github.com/tidwall/gjson v1.19.0 // indirect
2525
github.com/tidwall/match v1.2.0 // indirect
2626
github.com/tidwall/pretty v1.2.1 // indirect

riverdriver/riverdrivertest/go.mod

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ require (
99
github.com/jackc/pgerrcode v0.0.0-20240316143900-6e2875d9b438
1010
github.com/jackc/pgx/v5 v5.9.2
1111
github.com/lib/pq v1.12.3
12-
github.com/riverqueue/river v0.38.0
13-
github.com/riverqueue/river/riverdriver v0.38.0
14-
github.com/riverqueue/river/riverdriver/riverdatabasesql v0.38.0
15-
github.com/riverqueue/river/riverdriver/riverpgxv5 v0.38.0
16-
github.com/riverqueue/river/riverdriver/riversqlite v0.38.0
17-
github.com/riverqueue/river/rivershared v0.38.0
18-
github.com/riverqueue/river/rivertype v0.38.0
12+
github.com/riverqueue/river v0.39.0
13+
github.com/riverqueue/river/riverdriver v0.39.0
14+
github.com/riverqueue/river/riverdriver/riverdatabasesql v0.39.0
15+
github.com/riverqueue/river/riverdriver/riverpgxv5 v0.39.0
16+
github.com/riverqueue/river/riverdriver/riversqlite v0.39.0
17+
github.com/riverqueue/river/rivershared v0.39.0
18+
github.com/riverqueue/river/rivertype v0.39.0
1919
github.com/stretchr/testify v1.11.1
2020
github.com/tidwall/gjson v1.19.0
2121
github.com/tidwall/sjson v1.2.5

riverdriver/riverpgxv5/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ toolchain go1.25.7
77
require (
88
github.com/jackc/pgx/v5 v5.9.2
99
github.com/jackc/puddle/v2 v2.2.2
10-
github.com/riverqueue/river/riverdriver v0.38.0
11-
github.com/riverqueue/river/rivershared v0.38.0
12-
github.com/riverqueue/river/rivertype v0.38.0
10+
github.com/riverqueue/river/riverdriver v0.39.0
11+
github.com/riverqueue/river/rivershared v0.39.0
12+
github.com/riverqueue/river/rivertype v0.39.0
1313
github.com/stretchr/testify v1.11.1
1414
)
1515

riverdriver/riversqlite/go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ go 1.25.0
55
toolchain go1.25.7
66

77
require (
8-
github.com/riverqueue/river v0.38.0
9-
github.com/riverqueue/river/riverdriver v0.38.0
10-
github.com/riverqueue/river/rivershared v0.38.0
11-
github.com/riverqueue/river/rivertype v0.38.0
8+
github.com/riverqueue/river v0.39.0
9+
github.com/riverqueue/river/riverdriver v0.39.0
10+
github.com/riverqueue/river/rivershared v0.39.0
11+
github.com/riverqueue/river/rivertype v0.39.0
1212
github.com/stretchr/testify v1.11.1
1313
github.com/tidwall/gjson v1.19.0
1414
github.com/tidwall/sjson v1.2.5

rivershared/go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ toolchain go1.25.7
66

77
require (
88
github.com/jackc/pgx/v5 v5.9.2
9-
github.com/riverqueue/river v0.38.0
10-
github.com/riverqueue/river/riverdriver v0.38.0
11-
github.com/riverqueue/river/riverdriver/riverpgxv5 v0.38.0
12-
github.com/riverqueue/river/rivertype v0.38.0
9+
github.com/riverqueue/river v0.39.0
10+
github.com/riverqueue/river/riverdriver v0.39.0
11+
github.com/riverqueue/river/riverdriver/riverpgxv5 v0.39.0
12+
github.com/riverqueue/river/rivertype v0.39.0
1313
github.com/stretchr/testify v1.11.1
1414
github.com/tidwall/gjson v1.19.0
1515
go.uber.org/goleak v1.3.0

0 commit comments

Comments
 (0)