@urun-sh/core 0.1.30 → 0.1.33

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
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.33
4
+
5
+ - Stale-`ws_url` reconnect fix: after a bounded number of consecutive failures dialing the cached `ws_url`, the transport re-resolves the current connect handle from the control plane and dials the fresh host (resolve-then-dial, with backoff, bounded) — sessions re-allocated to a new GameServer now reattach instead of spinning on the dead host forever.
6
+ - Reconnect retries are bounded: the budget resets only after a connection stays up, and failed redials schedule the next bounded episode instead of dying silently.
7
+ - New typed `reconnecting` member on `TransportState` plus a `stateChange` transport event for rendering the connection lifecycle.
8
+ - `ChannelMultiplexer` ignores binary doc-sync (yjs) frames instead of warning "Failed to parse WebSocket message as JSON" on every frame.
9
+ - Argument purity: invocation args can no longer influence allocation (`gpus` in the create body is a constant wire-compat filler of `1`, required by the deployed control-plane validator; dropped in 0.2.0).
10
+
11
+ ## 0.1.32
12
+
13
+ - Control-doc sync now speaks the Yjs sync protocol (raw binary update frames) over the signaling WebSocket — the same protocol/doc engine the session server shares with the runtime on `/internal/docs/{sessionId}` — replacing the bespoke JSON `doc_update` fallback, which the server rejected as "malformed message" (control updates were silently lost whenever that path was used). `session.doc("control")` is now a Yjs doc mirroring the server's control doc (root map `session`); reads/writes/`change` events keep the exact same JSON API. Requires a session server with binary doc-sync support on the signaling WS (the SDK opts in by sending a binary hello; servers without support simply reject it as malformed and the SDK behaves no worse than before).
14
+
15
+ ## 0.1.31
16
+
17
+ - Follow a cross-region 307/308 redirect on session create: when the control plane forwards a create to the region that has capacity (region-affinity Phase 3), switch the active gateway base to the redirect target, re-issue the create there, and key every subsequent call (poll, ws_url) off that region — so a single `baseUrl` (e.g. `api.urun.sh`) transparently follows capacity across regions. Bounded to a single hop with a redirect cap to guard against misconfiguration loops.
18
+
3
19
  ## 0.1.27
4
20
 
5
21
  - Resolve the bearer token before every queued session polling request, preserving explicit force-refresh retries for unauthorized responses.