@idosgames/core 0.21.3 → 0.21.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -14,6 +14,23 @@ and this project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.ht
14
14
 
15
15
  ## [Unreleased]
16
16
 
17
+ ## [0.21.4] - 2026-10-09
18
+
19
+ A 429 now waits exactly as long as the server says. Backwards-compatible: against an older server
20
+ nothing changes.
21
+
22
+ ### Changed
23
+
24
+ - **Server-named wait on 429.** The engine and the site backend (since 2026-10-09: token buckets
25
+ instead of "ban the address for 999 s") answer 429 with `RetryAfterMs` in the body (readable
26
+ cross-origin) and a `Retry-After` header. The transport sleeps exactly that (+ up to 250 ms jitter,
27
+ so players refused together do not return in the same millisecond) and retries — a quick second
28
+ tap on "upgrade" now goes through half a second later instead of failing.
29
+ - A named wait longer than 15 s (`MAX_RATE_LIMIT_WAIT_MS` — an address blocked for hammering) returns
30
+ at once as a `connection` failure "Too many requests — try again in N s", without retrying inside
31
+ the block (that only prolonged it).
32
+ - A 429 that names nothing (Cloudflare's edge, an older server) keeps the old 1.5 / 4 / 6 s schedule.
33
+
17
34
  ## [0.21.3] - 2026-10-09
18
35
 
19
36
  Crypto prices everywhere: a short crypto balance no longer just fails a purchase inside idosgames.com.