Skip to content

Commit 5969710

Browse files
committed
chore: release packages (#1309)
Synced from sferarc/pgbeam@a9b961d
1 parent 0521d3e commit 5969710

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# pgbeam
22

3+
## 0.4.0
4+
5+
### Minor Changes
6+
7+
- 2d6e1ee: Bound every API call with a timeout and a retry budget, and report what failed.
8+
9+
`fetcher` now aborts an attempt after `timeoutMs` (default 30s, `0` disables it)
10+
and stops retrying once `RetryConfig.totalBudgetMs` (default 120s) is spent, so a
11+
long backoff ladder against a service that is down cannot outlive the budget. A
12+
request that never got an answer throws a `NetworkError` naming the method, URL,
13+
attempt count and elapsed time, with the `cause` chain flattened by the new
14+
`describeError` export instead of an opaque `TypeError: fetch failed`.
15+
16+
The Pulumi provider uses a 15s request timeout and a 60s total budget, down from
17+
an unbounded ladder that could spend over five minutes before failing. Its
18+
generated `read()` now keeps the last known state when the API gave no considered
19+
answer (a refused or timed-out connection, or a gateway status), because a
20+
refresh that could not observe a resource has not found drift. Anything the API
21+
actually answered still fails the run.
22+
323
## 0.3.14
424

525
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pgbeam",
3-
"version": "0.3.14",
3+
"version": "0.4.0",
44
"description": "TypeScript SDK for the PgBeam API — globally distributed PostgreSQL proxy platform",
55
"type": "module",
66
"exports": {

0 commit comments

Comments
 (0)