Skip to content

Commit f7a6288

Browse files
committed
chore: release bsv-wallet-postgres v0.2.0
1 parent e106201 commit f7a6288

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

gem/bsv-wallet-postgres/CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,34 @@ All notable changes to the `bsv-wallet-postgres` gem are documented here.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
66
and this gem adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## 0.2.0 — 2026-04-12
9+
10+
### Added
11+
12+
- **Migration 004** — adds `satoshis`, `pending_since`, `pending_reference`,
13+
`no_send` columns and a partial index on `(state, basket)` for spendable
14+
rows (#353)
15+
- **`find_spendable_outputs(basket:, min_satoshis:, sort_order:)`** — query
16+
spendable outputs with backward-compatible COALESCE for legacy rows (#354)
17+
- **`update_output_state(outpoint, new_state, ...)`** — transition output
18+
state with JSONB data synchronisation (#354)
19+
- **`lock_utxos(outpoints, reference:, no_send:)`** — atomic
20+
`UPDATE ... WHERE state = 'spendable' RETURNING` pattern for concurrent
21+
safety (#355)
22+
- **`release_stale_pending!(timeout:)`** — recover stuck pending outputs,
23+
exempting `no_send` locks (#355)
24+
- **PostgresStore settings methods**`store_setting` / `find_setting`
25+
26+
### Fixed
27+
28+
- **Spendable boolean sync**`update_output_state`, `lock_utxos`, and
29+
`release_stale_pending!` now keep the legacy `spendable` column in sync
30+
with the `state` column; `filter_outputs` uses dual-column WHERE clause
31+
32+
### Changed
33+
34+
- Directory restructure — source moved to `gem/bsv-wallet-postgres/`
35+
836
## 0.1.0 — 2026-04-09
937

1038
Initial release of `bsv-wallet-postgres`, a PostgreSQL-backed

gem/bsv-wallet-postgres/lib/bsv/wallet_postgres/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module BSV
44
module WalletPostgres
5-
VERSION = '0.1.0'
5+
VERSION = '0.2.0'
66
end
77
end

0 commit comments

Comments
 (0)