@moq/net 0.4.7 → 0.4.8
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/announce.d.ts +1 -1
- package/announce.js +0 -1
- package/announced.js +0 -1
- package/bandwidth.js +0 -1
- package/bandwidth_api.d.ts +1 -1
- package/bandwidth_api.js +0 -1
- package/broadcast.d.ts +3 -3
- package/broadcast.js +0 -1
- package/connection/accept.d.ts +2 -2
- package/connection/accept.js +0 -1
- package/connection/browser.js +0 -1
- package/connection/connect.d.ts +3 -3
- package/connection/connect.js +0 -1
- package/connection/established.d.ts +4 -4
- package/connection/established.js +0 -1
- package/connection/forward.js +0 -1
- package/connection/goaway.d.ts +1 -1
- package/connection/goaway.js +15 -2
- package/connection/goaway.js.map +1 -1
- package/connection/handshake.d.ts +2 -2
- package/connection/handshake.js +0 -1
- package/connection/index.d.ts +7 -7
- package/connection/index.js +0 -1
- package/connection/pool.d.ts +13 -13
- package/connection/pool.js +0 -1
- package/connection/reload.d.ts +1 -1
- package/connection/reload.js +0 -1
- package/connection/stats.d.ts +1 -1
- package/connection/stats.js +0 -1
- package/connection/transport.js +0 -1
- package/consume.js +0 -1
- package/datagram.d.ts +1 -1
- package/datagram.js +0 -1
- package/error.js +0 -1
- package/errors.d.ts +1 -1
- package/errors.js +0 -1
- package/group.d.ts +1 -1
- package/group.js +0 -1
- package/hop.js +0 -1
- package/ietf/adapter.d.ts +3 -3
- package/ietf/adapter.js +0 -1
- package/ietf/aliases.js +0 -1
- package/ietf/cluster.js +10 -3
- package/ietf/cluster.js.map +1 -1
- package/ietf/connection.d.ts +5 -5
- package/ietf/connection.js +0 -1
- package/ietf/error.js +0 -1
- package/ietf/fetch.d.ts +2 -2
- package/ietf/fetch.js +0 -1
- package/ietf/filter.d.ts +2 -2
- package/ietf/filter.js +0 -1
- package/ietf/goaway.d.ts +3 -3
- package/ietf/goaway.js +0 -1
- package/ietf/hidden.js +0 -1
- package/ietf/index.d.ts +20 -20
- package/ietf/index.js +0 -1
- package/ietf/message.d.ts +1 -1
- package/ietf/message.js +0 -1
- package/ietf/namespace.d.ts +2 -2
- package/ietf/namespace.js +0 -1
- package/ietf/object.d.ts +3 -3
- package/ietf/object.js +0 -1
- package/ietf/parameters.d.ts +3 -3
- package/ietf/parameters.js +0 -1
- package/ietf/priority.js +0 -1
- package/ietf/properties.d.ts +3 -3
- package/ietf/properties.js +0 -1
- package/ietf/publish.d.ts +3 -3
- package/ietf/publish.js +0 -1
- package/ietf/publish_namespace.d.ts +4 -4
- package/ietf/publish_namespace.js +0 -1
- package/ietf/publisher.js +0 -1
- package/ietf/request.d.ts +3 -3
- package/ietf/request.js +0 -1
- package/ietf/request_stream.d.ts +2 -2
- package/ietf/request_stream.js +0 -1
- package/ietf/setup.d.ts +3 -3
- package/ietf/setup.js +0 -1
- package/ietf/solicit.js +0 -1
- package/ietf/subscribe.d.ts +6 -6
- package/ietf/subscribe.js +0 -1
- package/ietf/subscribe_namespace.d.ts +4 -4
- package/ietf/subscribe_namespace.js +0 -1
- package/ietf/subscriber.js +0 -1
- package/ietf/token.js +0 -1
- package/ietf/track.d.ts +3 -3
- package/ietf/track.js +0 -1
- package/ietf/version.js +0 -1
- package/index.d.ts +13 -13
- package/index.d.ts.map +1 -1
- package/index.js +0 -1
- package/index.js.map +1 -1
- package/internal.d.ts +7 -7
- package/internal.js +0 -1
- package/lite/announce.d.ts +4 -4
- package/lite/announce.js +0 -1
- package/lite/connection.d.ts +7 -7
- package/lite/connection.js +0 -1
- package/lite/datagram.d.ts +1 -1
- package/lite/datagram.js +0 -1
- package/lite/datagram_stream.js +0 -1
- package/lite/fetch.d.ts +3 -3
- package/lite/fetch.js +0 -1
- package/lite/goaway.d.ts +2 -2
- package/lite/goaway.js +0 -1
- package/lite/group.d.ts +3 -3
- package/lite/group.js +0 -1
- package/lite/index.d.ts +13 -13
- package/lite/index.js +0 -1
- package/lite/message.d.ts +1 -1
- package/lite/message.js +0 -1
- package/lite/priority.js +0 -1
- package/lite/probe.d.ts +2 -2
- package/lite/probe.js +0 -1
- package/lite/publisher.js +0 -1
- package/lite/session.d.ts +2 -2
- package/lite/session.js +0 -1
- package/lite/setup.d.ts +3 -3
- package/lite/setup.js +0 -1
- package/lite/stream.d.ts +6 -6
- package/lite/stream.js +0 -1
- package/lite/subscribe.d.ts +3 -3
- package/lite/subscribe.js +0 -1
- package/lite/subscriber.d.ts +7 -7
- package/lite/subscriber.js +0 -1
- package/lite/track.d.ts +3 -3
- package/lite/track.js +0 -1
- package/lite/version.js +0 -1
- package/origin.d.ts +6 -6
- package/origin.js +0 -1
- package/package.json +2 -2
- package/path.js +0 -1
- package/stream.d.ts +3 -3
- package/stream.js +0 -1
- package/tail.d.ts +1 -1
- package/tail.js +0 -1
- package/time.js +0 -1
- package/track.d.ts +4 -4
- package/track.js +0 -1
- package/util/abort.js +0 -1
- package/util/hex.js +0 -1
- package/util/log.js +0 -1
- package/util/timeout.js +0 -1
- package/util/u64.js +0 -1
- package/util/utf8.js +0 -1
- package/util/varint.js +0 -1
- package/varint.js +0 -1
- package/wire.d.ts +7 -7
- package/wire.js +0 -1
- package/zod.d.ts +2 -2
- package/zod.js +0 -1
package/lite/index.js
CHANGED
package/lite/message.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Reader, Writer } from "../stream";
|
|
1
|
+
import { Reader, Writer } from "../stream.ts";
|
|
2
2
|
export declare function encode(writer: Writer, f: (w: Writer) => Promise<void>, max?: number): Promise<void>;
|
|
3
3
|
export declare function decode<T>(reader: Reader, f: (r: Reader) => Promise<T>, max?: number): Promise<T>;
|
|
4
4
|
export declare function decodeMaybe<T>(reader: Reader, f: (r: Reader) => Promise<T>): Promise<T | undefined>;
|
package/lite/message.js
CHANGED
package/lite/priority.js
CHANGED
package/lite/probe.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Reader, Writer } from "../stream";
|
|
2
|
-
import { Version } from "./version";
|
|
1
|
+
import type { Reader, Writer } from "../stream.ts";
|
|
2
|
+
import { Version } from "./version.ts";
|
|
3
3
|
/** The metrics a PROBE message carries. Each is independently optional. */
|
|
4
4
|
export interface ProbeInit {
|
|
5
5
|
/** Estimated send bitrate in bits per second. Omit if unknown. */
|
package/lite/probe.js
CHANGED
package/lite/publisher.js
CHANGED
package/lite/session.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Reader, Writer } from "../stream";
|
|
2
|
-
import { Version } from "./version";
|
|
1
|
+
import type { Reader, Writer } from "../stream.ts";
|
|
2
|
+
import { Version } from "./version.ts";
|
|
3
3
|
export declare class Extensions {
|
|
4
4
|
entries: Map<bigint, Uint8Array>;
|
|
5
5
|
constructor();
|
package/lite/session.js
CHANGED
package/lite/setup.d.ts
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module
|
|
6
6
|
*/
|
|
7
|
-
import { type Hop } from "../hop";
|
|
8
|
-
import { Reader, type Writer } from "../stream";
|
|
9
|
-
import { type Version } from "./version";
|
|
7
|
+
import { type Hop } from "../hop.ts";
|
|
8
|
+
import { Reader, type Writer } from "../stream.ts";
|
|
9
|
+
import { type Version } from "./version.ts";
|
|
10
10
|
/**
|
|
11
11
|
* The probe capability an endpoint advertises in SETUP.
|
|
12
12
|
*
|
package/lite/setup.js
CHANGED
package/lite/stream.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { AnnounceRequest } from "./announce";
|
|
2
|
-
import type { Goaway } from "./goaway";
|
|
3
|
-
import type { Group } from "./group";
|
|
4
|
-
import type { SessionClient } from "./session";
|
|
5
|
-
import type { Subscribe } from "./subscribe";
|
|
6
|
-
import type { Track } from "./track";
|
|
1
|
+
import type { AnnounceRequest } from "./announce.ts";
|
|
2
|
+
import type { Goaway } from "./goaway.ts";
|
|
3
|
+
import type { Group } from "./group.ts";
|
|
4
|
+
import type { SessionClient } from "./session.ts";
|
|
5
|
+
import type { Subscribe } from "./subscribe.ts";
|
|
6
|
+
import type { Track } from "./track.ts";
|
|
7
7
|
export type StreamBi = SessionClient | AnnounceRequest | Subscribe | Track | Goaway;
|
|
8
8
|
export type StreamUni = Group;
|
|
9
9
|
export declare const StreamId: {
|
package/lite/stream.js
CHANGED
package/lite/subscribe.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as Path from "../path";
|
|
2
|
-
import type { Reader, Writer } from "../stream";
|
|
3
|
-
import { Version } from "./version";
|
|
1
|
+
import * as Path from "../path.ts";
|
|
2
|
+
import type { Reader, Writer } from "../stream.ts";
|
|
3
|
+
import { Version } from "./version.ts";
|
|
4
4
|
/**
|
|
5
5
|
* Exclusive model/local cap from a decoded inclusive last group.
|
|
6
6
|
*
|
package/lite/subscribe.js
CHANGED
package/lite/subscriber.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as announce from "../announced";
|
|
2
|
-
import * as broadcast from "../broadcast";
|
|
3
|
-
import * as netGroup from "../group";
|
|
4
|
-
import { type Hop } from "../hop";
|
|
5
|
-
import * as Path from "../path";
|
|
6
|
-
import type * as track from "../track";
|
|
7
|
-
import { Version } from "./version";
|
|
1
|
+
import * as announce from "../announced.ts";
|
|
2
|
+
import * as broadcast from "../broadcast.ts";
|
|
3
|
+
import * as netGroup from "../group.ts";
|
|
4
|
+
import { type Hop } from "../hop.ts";
|
|
5
|
+
import * as Path from "../path.ts";
|
|
6
|
+
import type * as track from "../track.ts";
|
|
7
|
+
import { Version } from "./version.ts";
|
|
8
8
|
export declare class Subscriber {
|
|
9
9
|
#private;
|
|
10
10
|
readonly version: Version;
|
package/lite/subscriber.js
CHANGED
package/lite/track.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as Path from "../path";
|
|
2
|
-
import type { Reader, Writer } from "../stream";
|
|
3
|
-
import { Version } from "./version";
|
|
1
|
+
import * as Path from "../path.ts";
|
|
2
|
+
import type { Reader, Writer } from "../stream.ts";
|
|
3
|
+
import { Version } from "./version.ts";
|
|
4
4
|
/**
|
|
5
5
|
* TRACK request: the first (and only) subscriber message on a Track Stream (0x6).
|
|
6
6
|
* Asks for a track's immutable publisher properties without subscribing or fetching.
|
package/lite/track.js
CHANGED
package/lite/version.js
CHANGED
package/origin.d.ts
CHANGED
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
* @module
|
|
12
12
|
*/
|
|
13
13
|
import { type GetPromise, type Getter } from "@moq/signals";
|
|
14
|
-
import * as announce from "./announced";
|
|
15
|
-
import * as broadcast from "./broadcast";
|
|
16
|
-
import { Route } from "./hop";
|
|
17
|
-
import * as Path from "./path";
|
|
18
|
-
export type { Cost, Hop, Route } from "./hop";
|
|
19
|
-
export { isAnonymous } from "./hop";
|
|
14
|
+
import * as announce from "./announced.ts";
|
|
15
|
+
import * as broadcast from "./broadcast.ts";
|
|
16
|
+
import { Route } from "./hop.ts";
|
|
17
|
+
import * as Path from "./path.ts";
|
|
18
|
+
export type { Cost, Hop, Route } from "./hop.ts";
|
|
19
|
+
export { isAnonymous } from "./hop.ts";
|
|
20
20
|
/**
|
|
21
21
|
* A non-owning handle on an origin: publish into it and read it, without its lifecycle.
|
|
22
22
|
*
|
package/origin.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moq/net",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.8",
|
|
5
5
|
"description": "The networking layer for Media over QUIC: real-time pub/sub with built-in caching, fan-out, and prioritization.",
|
|
6
6
|
"license": "(MIT OR Apache-2.0)",
|
|
7
7
|
"repository": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@moq/pattern": "^0.2.1",
|
|
25
|
-
"@moq/qmux": "^0.3.
|
|
25
|
+
"@moq/qmux": "^0.3.5",
|
|
26
26
|
"@moq/signals": "^0.2.6",
|
|
27
27
|
"async-mutex": "^0.5.0",
|
|
28
28
|
"bowser": "^2.14.1"
|
package/path.js
CHANGED
package/stream.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IetfVersion } from "./ietf/version";
|
|
2
|
-
import { type Version as LiteVersion } from "./lite/version";
|
|
3
|
-
import { U64 } from "./util/u64";
|
|
1
|
+
import type { IetfVersion } from "./ietf/version.ts";
|
|
2
|
+
import { type Version as LiteVersion } from "./lite/version.ts";
|
|
3
|
+
import { U64 } from "./util/u64.ts";
|
|
4
4
|
/**
|
|
5
5
|
* Options handed to the transport for one outgoing stream.
|
|
6
6
|
*
|
package/stream.js
CHANGED
package/tail.d.ts
CHANGED
package/tail.js
CHANGED
package/time.js
CHANGED
package/track.d.ts
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
6
|
import { type GetPromise, type Getter } from "@moq/signals";
|
|
7
|
-
import type { Datagram } from "./datagram";
|
|
8
|
-
import { type Frame, type Consumer as GroupConsumer, Producer as GroupProducer } from "./group";
|
|
9
|
-
import { Milli, Timescale, type Timestamp } from "./time";
|
|
10
|
-
export type { Datagram } from "./datagram";
|
|
7
|
+
import type { Datagram } from "./datagram.ts";
|
|
8
|
+
import { type Frame, type Consumer as GroupConsumer, Producer as GroupProducer } from "./group.ts";
|
|
9
|
+
import { Milli, Timescale, type Timestamp } from "./time.ts";
|
|
10
|
+
export type { Datagram } from "./datagram.ts";
|
|
11
11
|
/** Default {@link Info.maxAge} window (milliseconds) when the publisher does not set one. */
|
|
12
12
|
export declare const DEFAULT_MAX_AGE_MS: Milli;
|
|
13
13
|
/** A position within a track: a group's sequence and a frame's index inside it. */
|
package/track.js
CHANGED
package/util/abort.js
CHANGED
package/util/hex.js
CHANGED
package/util/log.js
CHANGED
package/util/timeout.js
CHANGED
package/util/u64.js
CHANGED
package/util/utf8.js
CHANGED
package/util/varint.js
CHANGED
package/varint.js
CHANGED
package/wire.d.ts
CHANGED
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
10
|
import type { Dispose, GetPromise, Getter } from "@moq/signals";
|
|
11
|
-
import type * as broadcast from "./broadcast";
|
|
12
|
-
import type { Drain } from "./connection/goaway";
|
|
13
|
-
import type { Consumer as GroupConsumer } from "./group";
|
|
14
|
-
import type { Route } from "./hop";
|
|
15
|
-
import type * as origin from "./origin";
|
|
16
|
-
import type * as Path from "./path";
|
|
17
|
-
import type * as track from "./track";
|
|
11
|
+
import type * as broadcast from "./broadcast.ts";
|
|
12
|
+
import type { Drain } from "./connection/goaway.ts";
|
|
13
|
+
import type { Consumer as GroupConsumer } from "./group.ts";
|
|
14
|
+
import type { Route } from "./hop.ts";
|
|
15
|
+
import type * as origin from "./origin.ts";
|
|
16
|
+
import type * as Path from "./path.ts";
|
|
17
|
+
import type * as track from "./track.ts";
|
|
18
18
|
/** The protocol-facing operations behind a broadcast handle. */
|
|
19
19
|
export interface Broadcast {
|
|
20
20
|
subscribe(name: string, options?: track.Subscription): track.Subscriber;
|
package/wire.js
CHANGED
package/zod.d.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
6
|
import type * as z from "@zod/mini";
|
|
7
|
-
import type * as group from "./group";
|
|
8
|
-
import type * as track from "./track";
|
|
7
|
+
import type * as group from "./group.ts";
|
|
8
|
+
import type * as track from "./track.ts";
|
|
9
9
|
/** Read the next JSON frame and validate it against the schema. Returns undefined at end of stream. */
|
|
10
10
|
export declare function read<T = unknown>(source: track.Ordered | group.Consumer, schema: z.ZodMiniType<T>): Promise<T | undefined>;
|
|
11
11
|
/** Validate a value against the schema, then write it as a JSON frame. */
|
package/zod.js
CHANGED