@urun-sh/core 0.1.47 → 0.2.0
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 +8 -0
- package/dist/chunk-2TYDFOWI.mjs +7 -0
- package/dist/{chunk-O7ZS2RQJ.mjs → chunk-QTLLNENF.mjs} +5 -5
- package/dist/index.browser.d.mts +321 -0
- package/dist/index.browser.d.ts +321 -0
- package/dist/index.browser.js +7 -0
- package/dist/index.browser.mjs +1 -0
- package/dist/index.d.mts +130 -24
- package/dist/index.d.ts +130 -24
- package/dist/index.js +5 -5
- package/dist/index.mjs +1 -1
- package/dist/internal.browser.d.mts +11 -0
- package/dist/internal.browser.d.ts +11 -0
- package/dist/internal.browser.js +7 -0
- package/dist/internal.browser.mjs +1 -0
- package/dist/internal.d.mts +3 -1
- package/dist/internal.d.ts +3 -1
- package/dist/internal.js +5 -5
- package/dist/internal.mjs +1 -1
- package/dist/{transport-DwP_VpLT.d.mts → stream-data-BQHZia_W.d.mts} +222 -16
- package/dist/{transport-DwP_VpLT.d.ts → stream-data-BQHZia_W.d.ts} +222 -16
- package/package.json +14 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.49
|
|
4
|
+
|
|
5
|
+
- Recordings lifecycle & retention client (L3). New `RecordingsClient` / `createRecordingsClient` wired to the org-scoped recordings edge function (`/functions/v1/recordings`): `list(sessionId?)`, `get`, `retain(id, duration)`, `pin`, `unpin`, `permanent`, `delete`. Bearer auth resolves `getAccessToken ?? jwt ?? apiKey` and does one force-refresh retry on 401 (mirrors the gateway pattern). The org is derived server-side — `org_id` is never sent.
|
|
6
|
+
- New `Recording` type (+ `RecordingBucket` / `RecordingLifecycle` / `RecordingStatus`) and an `isPendingRecording(r)` helper. pin/unpin/permanent/delete are async INTENTS: the client surfaces the returned `pending_*` status verbatim and never assumes synchronous completion.
|
|
7
|
+
- Typed errors: `RecordingsError` (carries `status` + `code`) with `RecordingsUnauthorizedError` (401), `RecordingNotFoundError` (404), `RetainNotTempError` / `PinRequiresActiveTempError` / `PermanentLockedError` (409), and `InvalidDurationError` (400 / client-side). `retain` validates the duration client-side before any fetch.
|
|
8
|
+
- Retention helpers `isDurationString(s)` and `normalizeRetention(s)` (a duration -> retain, `"pin"` -> pin).
|
|
9
|
+
- New `session.recordings` accessor whose `list()` defaults to the session's own id. Threaded via a new optional `functionsUrl` on `AppOptions` / `AttachOptions`; accessing `session.recordings` without it throws a clear error.
|
|
10
|
+
|
|
3
11
|
## 0.1.33
|
|
4
12
|
|
|
5
13
|
- 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.
|