Skip to content

Commit ece2d4f

Browse files
committed
chore: version 0.10.2
Patch release: Retry-After HTTP-date support and the 60s cap on honored waits.
1 parent 56b8028 commit ece2d4f

4 files changed

Lines changed: 19 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# spoo.me
22

3+
## 0.10.2
4+
5+
### Patch Changes
6+
7+
- `Retry-After` is now parsed in both forms RFC 9110 allows: delay-seconds
8+
and HTTP-date. The date form used to be ignored and fell back to computed
9+
backoff. `RateLimitError.rateLimit.retryAfter` carries the parsed value
10+
for both forms.
11+
- An honored `Retry-After` is capped at 60 seconds. When the server mandates
12+
a longer wait, the transport does not retry at all: the 429/503 surfaces
13+
immediately as its normal error, with the full mandated wait still
14+
readable on `rateLimit.retryAfter` and the response headers. The
15+
per-request timeout covers each attempt but not the sleeps between them,
16+
so an uncapped honored wait made a single call's wall clock unbounded.
17+
318
## 0.10.1
419

520
### Patch Changes

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "spoo.me",
3-
"version": "0.10.1",
3+
"version": "0.10.2",
44
"description": "Official TypeScript SDK for the spoo.me link management API",
55
"keywords": [
66
"spoo.me",

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// Generated by scripts/write-version.mjs — do not edit.
2-
export const SDK_VERSION = "0.10.1";
2+
export const SDK_VERSION = "0.10.2";

0 commit comments

Comments
 (0)