@urun-sh/core 0.5.2 → 0.5.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 +6 -0
- package/dist/{chunk-FJ3TNCO7.mjs → chunk-JFRHVRUS.mjs} +2 -2
- package/dist/{chunk-R33J74SA.mjs → chunk-STXAJ5OB.mjs} +5 -5
- package/dist/index.browser.d.mts +9 -3
- package/dist/index.browser.d.ts +9 -3
- package/dist/index.browser.js +2 -2
- package/dist/index.browser.mjs +1 -1
- package/dist/index.d.mts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +5 -5
- package/dist/index.mjs +1 -1
- package/dist/internal.browser.d.mts +1 -1
- package/dist/internal.browser.d.ts +1 -1
- package/dist/internal.browser.js +2 -2
- package/dist/internal.browser.mjs +1 -1
- package/dist/internal.d.mts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +4 -4
- package/dist/internal.mjs +1 -1
- package/dist/{stream-data-Cjg0SjId.d.mts → stream-data-77pUfFQK.d.mts} +16 -0
- package/dist/{stream-data-Cjg0SjId.d.ts → stream-data-77pUfFQK.d.ts} +16 -0
- package/package.json +2 -2
package/dist/internal.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __urunCreateRequire } from 'node:module'; const require = globalThis.require ?? __urunCreateRequire(import.meta.url);
|
|
2
|
-
import{H as r,
|
|
2
|
+
import{H as r,O as t,P as n,Q as a,R as s,W as p,X as c,Y as l,a as e,b as o,ba as m,ca as i,da as S,ea as f,fa as x,ga as C,ha as D}from"./chunk-STXAJ5OB.mjs";export{e as ChannelMultiplexer,i as DOC_SYNC_WIRE_CONTRACT_VERSION,o as DeferredChannelMultiplexer,x as DeferredDocConnector,p as LoopbackStreamData,C as SessionDocumentImpl,m as TransportSession,r as allocateSession,D as createPresence,f as createWebsocketDocConnector,S as deriveYjsServerUrl,s as ensureNodeWebRTC,t as isNodeRuntime,n as nodeMediasoupHandlerName,a as nodeWebRTCUnavailableReason,l as streamDataLabel,c as transportStreamData};
|
|
@@ -240,6 +240,8 @@ interface SessionPhase {
|
|
|
240
240
|
error?: SessionPhaseError;
|
|
241
241
|
|
|
242
242
|
reason?: string;
|
|
243
|
+
|
|
244
|
+
region?: string | null;
|
|
243
245
|
}
|
|
244
246
|
|
|
245
247
|
interface SessionStatus {
|
|
@@ -268,6 +270,8 @@ interface SessionStatus {
|
|
|
268
270
|
wakingSince?: number;
|
|
269
271
|
|
|
270
272
|
error?: SessionPhaseError;
|
|
273
|
+
|
|
274
|
+
region?: string | null;
|
|
271
275
|
}
|
|
272
276
|
|
|
273
277
|
interface TransportSessionOptions {
|
|
@@ -490,6 +494,8 @@ interface Session {
|
|
|
490
494
|
|
|
491
495
|
readonly status: SessionStatus;
|
|
492
496
|
|
|
497
|
+
readonly region?: string | null;
|
|
498
|
+
|
|
493
499
|
stream(name: string): SessionStream;
|
|
494
500
|
|
|
495
501
|
doc(key: string): SessionDocument;
|
|
@@ -709,6 +715,8 @@ interface SessionGatewayResponse {
|
|
|
709
715
|
location?: string;
|
|
710
716
|
|
|
711
717
|
session_api_base?: string;
|
|
718
|
+
|
|
719
|
+
serving_region?: string | null;
|
|
712
720
|
request_id?: string;
|
|
713
721
|
session_id?: string;
|
|
714
722
|
ws_url?: string;
|
|
@@ -749,6 +757,8 @@ interface AdmissionUpdate {
|
|
|
749
757
|
|
|
750
758
|
requestId?: string;
|
|
751
759
|
|
|
760
|
+
sessionId?: string;
|
|
761
|
+
|
|
752
762
|
queue?: {
|
|
753
763
|
position: number;
|
|
754
764
|
depth: number;
|
|
@@ -763,6 +773,8 @@ interface AdmissionUpdate {
|
|
|
763
773
|
refusalSource?: string;
|
|
764
774
|
|
|
765
775
|
refusalMessage?: string;
|
|
776
|
+
|
|
777
|
+
region?: string | null;
|
|
766
778
|
}
|
|
767
779
|
interface AllocateSessionOptions {
|
|
768
780
|
baseUrl: string;
|
|
@@ -1404,9 +1416,13 @@ declare class TransportSession {
|
|
|
1404
1416
|
|
|
1405
1417
|
setEndsAt(endsAt: Date | null): void;
|
|
1406
1418
|
|
|
1419
|
+
seedRegion(region: string | null | undefined): void;
|
|
1420
|
+
|
|
1407
1421
|
private _pastDeadline;
|
|
1408
1422
|
|
|
1409
1423
|
get status(): SessionStatus;
|
|
1424
|
+
|
|
1425
|
+
get region(): string | null | undefined;
|
|
1410
1426
|
get sessionId(): string | null;
|
|
1411
1427
|
get tracks(): Map<string, MediaStreamTrack>;
|
|
1412
1428
|
get multiplexer(): ChannelMultiplexer | null;
|
|
@@ -240,6 +240,8 @@ interface SessionPhase {
|
|
|
240
240
|
error?: SessionPhaseError;
|
|
241
241
|
|
|
242
242
|
reason?: string;
|
|
243
|
+
|
|
244
|
+
region?: string | null;
|
|
243
245
|
}
|
|
244
246
|
|
|
245
247
|
interface SessionStatus {
|
|
@@ -268,6 +270,8 @@ interface SessionStatus {
|
|
|
268
270
|
wakingSince?: number;
|
|
269
271
|
|
|
270
272
|
error?: SessionPhaseError;
|
|
273
|
+
|
|
274
|
+
region?: string | null;
|
|
271
275
|
}
|
|
272
276
|
|
|
273
277
|
interface TransportSessionOptions {
|
|
@@ -490,6 +494,8 @@ interface Session {
|
|
|
490
494
|
|
|
491
495
|
readonly status: SessionStatus;
|
|
492
496
|
|
|
497
|
+
readonly region?: string | null;
|
|
498
|
+
|
|
493
499
|
stream(name: string): SessionStream;
|
|
494
500
|
|
|
495
501
|
doc(key: string): SessionDocument;
|
|
@@ -709,6 +715,8 @@ interface SessionGatewayResponse {
|
|
|
709
715
|
location?: string;
|
|
710
716
|
|
|
711
717
|
session_api_base?: string;
|
|
718
|
+
|
|
719
|
+
serving_region?: string | null;
|
|
712
720
|
request_id?: string;
|
|
713
721
|
session_id?: string;
|
|
714
722
|
ws_url?: string;
|
|
@@ -749,6 +757,8 @@ interface AdmissionUpdate {
|
|
|
749
757
|
|
|
750
758
|
requestId?: string;
|
|
751
759
|
|
|
760
|
+
sessionId?: string;
|
|
761
|
+
|
|
752
762
|
queue?: {
|
|
753
763
|
position: number;
|
|
754
764
|
depth: number;
|
|
@@ -763,6 +773,8 @@ interface AdmissionUpdate {
|
|
|
763
773
|
refusalSource?: string;
|
|
764
774
|
|
|
765
775
|
refusalMessage?: string;
|
|
776
|
+
|
|
777
|
+
region?: string | null;
|
|
766
778
|
}
|
|
767
779
|
interface AllocateSessionOptions {
|
|
768
780
|
baseUrl: string;
|
|
@@ -1404,9 +1416,13 @@ declare class TransportSession {
|
|
|
1404
1416
|
|
|
1405
1417
|
setEndsAt(endsAt: Date | null): void;
|
|
1406
1418
|
|
|
1419
|
+
seedRegion(region: string | null | undefined): void;
|
|
1420
|
+
|
|
1407
1421
|
private _pastDeadline;
|
|
1408
1422
|
|
|
1409
1423
|
get status(): SessionStatus;
|
|
1424
|
+
|
|
1425
|
+
get region(): string | null | undefined;
|
|
1410
1426
|
get sessionId(): string | null;
|
|
1411
1427
|
get tracks(): Map<string, MediaStreamTrack>;
|
|
1412
1428
|
get multiplexer(): ChannelMultiplexer | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@urun-sh/core",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "Core transport and channel primitives for the urun TypeScript SDK",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"happy-dom": "^20.9.0",
|
|
79
79
|
"tsup": "^8.5.0",
|
|
80
80
|
"typescript": "^5.3.0",
|
|
81
|
-
"vitest": "^
|
|
81
|
+
"vitest": "^4.1.11",
|
|
82
82
|
"yjs": "^13.6.31"
|
|
83
83
|
},
|
|
84
84
|
"files": [
|