@urun-sh/core 0.2.14 → 0.2.16
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/dist/{chunk-ESLF63FX.mjs → chunk-AEIZ6XUT.mjs} +2 -2
- package/dist/{chunk-SHMKV7WG.mjs → chunk-GKS24GDI.mjs} +5 -5
- package/dist/index.browser.d.mts +268 -3
- package/dist/index.browser.d.ts +268 -3
- package/dist/index.browser.js +2 -2
- package/dist/index.browser.mjs +1 -1
- package/dist/index.d.mts +268 -3
- package/dist/index.d.ts +268 -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 +5 -5
- package/dist/internal.mjs +1 -1
- package/dist/{stream-data-GIyoXg7t.d.mts → stream-data-D8AOc7CR.d.mts} +7 -1
- package/dist/{stream-data-GIyoXg7t.d.ts → stream-data-D8AOc7CR.d.ts} +7 -1
- package/package.json +2 -1
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{A as
|
|
2
|
+
import{A as c,B as i,C as f,D as x,E as C,F as l,a as e,b as r,s as o,t,u as a,w as n,x as p,y as s,z as m}from"./chunk-GKS24GDI.mjs";export{e as ChannelMultiplexer,c as DOC_SYNC_WIRE_CONTRACT_VERSION,r as DeferredChannelMultiplexer,x as DeferredDocConnector,n as LoopbackStreamData,C as SessionDocumentImpl,m as TransportSession,l as createPresence,f as createWebsocketDocConnector,i as deriveYjsServerUrl,a as ensureNodeWebRTC,o as isNodeRuntime,t as nodeMediasoupHandlerName,s as streamDataLabel,p as transportStreamData};
|
|
@@ -105,7 +105,7 @@ interface RuntimeAvailability {
|
|
|
105
105
|
reason?: string;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
type SessionFailureKind = 'create-failed' | 'never-live' | 'transport-failed' | 'media-permission' | 'ended' | 'runtime-failed' | 'expired';
|
|
108
|
+
type SessionFailureKind = 'create-failed' | 'never-live' | 'transport-failed' | 'media-permission' | 'ended' | 'runtime-failed' | 'expired' | 'produce-timeout';
|
|
109
109
|
|
|
110
110
|
interface SessionPhaseError {
|
|
111
111
|
|
|
@@ -586,6 +586,8 @@ interface TransportEvents {
|
|
|
586
586
|
phase: (phase: SessionPhase) => void;
|
|
587
587
|
|
|
588
588
|
seeked: (stream: string, target: number | 'live') => void;
|
|
589
|
+
|
|
590
|
+
signal: (msg: Record<string, unknown>) => void;
|
|
589
591
|
}
|
|
590
592
|
interface SessionStartOptions {
|
|
591
593
|
app?: string;
|
|
@@ -720,6 +722,10 @@ declare class TransportSession {
|
|
|
720
722
|
on<E extends keyof TransportEvents>(event: E, handler: TransportEvents[E]): () => void;
|
|
721
723
|
sendInput(data: Record<string, unknown>, sequence?: number): void;
|
|
722
724
|
|
|
725
|
+
sendSignal(msg: Record<string, unknown>): void;
|
|
726
|
+
|
|
727
|
+
onSignal(handler: (msg: Record<string, unknown>) => void): () => void;
|
|
728
|
+
|
|
723
729
|
onStreamData(name: string, handler: (payload: unknown) => void): () => void;
|
|
724
730
|
|
|
725
731
|
sendStreamData(name: string, payload: unknown, _options?: {
|
|
@@ -105,7 +105,7 @@ interface RuntimeAvailability {
|
|
|
105
105
|
reason?: string;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
type SessionFailureKind = 'create-failed' | 'never-live' | 'transport-failed' | 'media-permission' | 'ended' | 'runtime-failed' | 'expired';
|
|
108
|
+
type SessionFailureKind = 'create-failed' | 'never-live' | 'transport-failed' | 'media-permission' | 'ended' | 'runtime-failed' | 'expired' | 'produce-timeout';
|
|
109
109
|
|
|
110
110
|
interface SessionPhaseError {
|
|
111
111
|
|
|
@@ -586,6 +586,8 @@ interface TransportEvents {
|
|
|
586
586
|
phase: (phase: SessionPhase) => void;
|
|
587
587
|
|
|
588
588
|
seeked: (stream: string, target: number | 'live') => void;
|
|
589
|
+
|
|
590
|
+
signal: (msg: Record<string, unknown>) => void;
|
|
589
591
|
}
|
|
590
592
|
interface SessionStartOptions {
|
|
591
593
|
app?: string;
|
|
@@ -720,6 +722,10 @@ declare class TransportSession {
|
|
|
720
722
|
on<E extends keyof TransportEvents>(event: E, handler: TransportEvents[E]): () => void;
|
|
721
723
|
sendInput(data: Record<string, unknown>, sequence?: number): void;
|
|
722
724
|
|
|
725
|
+
sendSignal(msg: Record<string, unknown>): void;
|
|
726
|
+
|
|
727
|
+
onSignal(handler: (msg: Record<string, unknown>) => void): () => void;
|
|
728
|
+
|
|
723
729
|
onStreamData(name: string, handler: (payload: unknown) => void): () => void;
|
|
724
730
|
|
|
725
731
|
sendStreamData(name: string, payload: unknown, _options?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@urun-sh/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.16",
|
|
4
4
|
"description": "Core transport and channel primitives for the urun TypeScript SDK",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -99,6 +99,7 @@
|
|
|
99
99
|
},
|
|
100
100
|
"license": "MIT",
|
|
101
101
|
"dependencies": {
|
|
102
|
+
"@msgpack/msgpack": "^3.1.2",
|
|
102
103
|
"debug": "^4.4.3",
|
|
103
104
|
"y-protocols": "1.0.7",
|
|
104
105
|
"y-websocket": "3.0.0",
|