@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.
Files changed (151) hide show
  1. package/announce.d.ts +1 -1
  2. package/announce.js +0 -1
  3. package/announced.js +0 -1
  4. package/bandwidth.js +0 -1
  5. package/bandwidth_api.d.ts +1 -1
  6. package/bandwidth_api.js +0 -1
  7. package/broadcast.d.ts +3 -3
  8. package/broadcast.js +0 -1
  9. package/connection/accept.d.ts +2 -2
  10. package/connection/accept.js +0 -1
  11. package/connection/browser.js +0 -1
  12. package/connection/connect.d.ts +3 -3
  13. package/connection/connect.js +0 -1
  14. package/connection/established.d.ts +4 -4
  15. package/connection/established.js +0 -1
  16. package/connection/forward.js +0 -1
  17. package/connection/goaway.d.ts +1 -1
  18. package/connection/goaway.js +15 -2
  19. package/connection/goaway.js.map +1 -1
  20. package/connection/handshake.d.ts +2 -2
  21. package/connection/handshake.js +0 -1
  22. package/connection/index.d.ts +7 -7
  23. package/connection/index.js +0 -1
  24. package/connection/pool.d.ts +13 -13
  25. package/connection/pool.js +0 -1
  26. package/connection/reload.d.ts +1 -1
  27. package/connection/reload.js +0 -1
  28. package/connection/stats.d.ts +1 -1
  29. package/connection/stats.js +0 -1
  30. package/connection/transport.js +0 -1
  31. package/consume.js +0 -1
  32. package/datagram.d.ts +1 -1
  33. package/datagram.js +0 -1
  34. package/error.js +0 -1
  35. package/errors.d.ts +1 -1
  36. package/errors.js +0 -1
  37. package/group.d.ts +1 -1
  38. package/group.js +0 -1
  39. package/hop.js +0 -1
  40. package/ietf/adapter.d.ts +3 -3
  41. package/ietf/adapter.js +0 -1
  42. package/ietf/aliases.js +0 -1
  43. package/ietf/cluster.js +10 -3
  44. package/ietf/cluster.js.map +1 -1
  45. package/ietf/connection.d.ts +5 -5
  46. package/ietf/connection.js +0 -1
  47. package/ietf/error.js +0 -1
  48. package/ietf/fetch.d.ts +2 -2
  49. package/ietf/fetch.js +0 -1
  50. package/ietf/filter.d.ts +2 -2
  51. package/ietf/filter.js +0 -1
  52. package/ietf/goaway.d.ts +3 -3
  53. package/ietf/goaway.js +0 -1
  54. package/ietf/hidden.js +0 -1
  55. package/ietf/index.d.ts +20 -20
  56. package/ietf/index.js +0 -1
  57. package/ietf/message.d.ts +1 -1
  58. package/ietf/message.js +0 -1
  59. package/ietf/namespace.d.ts +2 -2
  60. package/ietf/namespace.js +0 -1
  61. package/ietf/object.d.ts +3 -3
  62. package/ietf/object.js +0 -1
  63. package/ietf/parameters.d.ts +3 -3
  64. package/ietf/parameters.js +0 -1
  65. package/ietf/priority.js +0 -1
  66. package/ietf/properties.d.ts +3 -3
  67. package/ietf/properties.js +0 -1
  68. package/ietf/publish.d.ts +3 -3
  69. package/ietf/publish.js +0 -1
  70. package/ietf/publish_namespace.d.ts +4 -4
  71. package/ietf/publish_namespace.js +0 -1
  72. package/ietf/publisher.js +0 -1
  73. package/ietf/request.d.ts +3 -3
  74. package/ietf/request.js +0 -1
  75. package/ietf/request_stream.d.ts +2 -2
  76. package/ietf/request_stream.js +0 -1
  77. package/ietf/setup.d.ts +3 -3
  78. package/ietf/setup.js +0 -1
  79. package/ietf/solicit.js +0 -1
  80. package/ietf/subscribe.d.ts +6 -6
  81. package/ietf/subscribe.js +0 -1
  82. package/ietf/subscribe_namespace.d.ts +4 -4
  83. package/ietf/subscribe_namespace.js +0 -1
  84. package/ietf/subscriber.js +0 -1
  85. package/ietf/token.js +0 -1
  86. package/ietf/track.d.ts +3 -3
  87. package/ietf/track.js +0 -1
  88. package/ietf/version.js +0 -1
  89. package/index.d.ts +13 -13
  90. package/index.d.ts.map +1 -1
  91. package/index.js +0 -1
  92. package/index.js.map +1 -1
  93. package/internal.d.ts +7 -7
  94. package/internal.js +0 -1
  95. package/lite/announce.d.ts +4 -4
  96. package/lite/announce.js +0 -1
  97. package/lite/connection.d.ts +7 -7
  98. package/lite/connection.js +0 -1
  99. package/lite/datagram.d.ts +1 -1
  100. package/lite/datagram.js +0 -1
  101. package/lite/datagram_stream.js +0 -1
  102. package/lite/fetch.d.ts +3 -3
  103. package/lite/fetch.js +0 -1
  104. package/lite/goaway.d.ts +2 -2
  105. package/lite/goaway.js +0 -1
  106. package/lite/group.d.ts +3 -3
  107. package/lite/group.js +0 -1
  108. package/lite/index.d.ts +13 -13
  109. package/lite/index.js +0 -1
  110. package/lite/message.d.ts +1 -1
  111. package/lite/message.js +0 -1
  112. package/lite/priority.js +0 -1
  113. package/lite/probe.d.ts +2 -2
  114. package/lite/probe.js +0 -1
  115. package/lite/publisher.js +0 -1
  116. package/lite/session.d.ts +2 -2
  117. package/lite/session.js +0 -1
  118. package/lite/setup.d.ts +3 -3
  119. package/lite/setup.js +0 -1
  120. package/lite/stream.d.ts +6 -6
  121. package/lite/stream.js +0 -1
  122. package/lite/subscribe.d.ts +3 -3
  123. package/lite/subscribe.js +0 -1
  124. package/lite/subscriber.d.ts +7 -7
  125. package/lite/subscriber.js +0 -1
  126. package/lite/track.d.ts +3 -3
  127. package/lite/track.js +0 -1
  128. package/lite/version.js +0 -1
  129. package/origin.d.ts +6 -6
  130. package/origin.js +0 -1
  131. package/package.json +2 -2
  132. package/path.js +0 -1
  133. package/stream.d.ts +3 -3
  134. package/stream.js +0 -1
  135. package/tail.d.ts +1 -1
  136. package/tail.js +0 -1
  137. package/time.js +0 -1
  138. package/track.d.ts +4 -4
  139. package/track.js +0 -1
  140. package/util/abort.js +0 -1
  141. package/util/hex.js +0 -1
  142. package/util/log.js +0 -1
  143. package/util/timeout.js +0 -1
  144. package/util/u64.js +0 -1
  145. package/util/utf8.js +0 -1
  146. package/util/varint.js +0 -1
  147. package/varint.js +0 -1
  148. package/wire.d.ts +7 -7
  149. package/wire.js +0 -1
  150. package/zod.d.ts +2 -2
  151. package/zod.js +0 -1
package/ietf/fetch.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./fetch.d.ts" */
2
1
  import { Writer } from "../stream.js";
3
2
  import { hasRangeFilters, isDraft20 } from "./filter.js";
4
3
  import * as Message from "./message.js";
package/ietf/filter.d.ts CHANGED
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * @module
5
5
  */
6
- import type { Reader } from "../stream";
7
- import { type IetfVersion } from "./version";
6
+ import type { Reader } from "../stream.ts";
7
+ import { type IetfVersion } from "./version.ts";
8
8
  /** Which Objects a subscription delivers. */
9
9
  export type Filter =
10
10
  /** Every Object in the track, encoded by omitting the parameter. */
package/ietf/filter.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./filter.d.ts" */
2
1
  /**
3
2
  * The Location Filter carried by SUBSCRIBE, and draft-20's fill request.
4
3
  *
package/ietf/goaway.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type { Drain } from "../connection/goaway";
2
- import { Reader, type Writer } from "../stream";
3
- import { type IetfVersion } from "./version";
1
+ import type { Drain } from "../connection/goaway.ts";
2
+ import { Reader, type Writer } from "../stream.ts";
3
+ import { type IetfVersion } from "./version.ts";
4
4
  export declare class GoAway {
5
5
  #private;
6
6
  static id: number;
package/ietf/goaway.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./goaway.d.ts" */
2
1
  import { Reader } from "../stream.js";
3
2
  import * as Time from "../time.js";
4
3
  import * as Message from "./message.js";
package/ietf/hidden.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./hidden.d.ts" */
2
1
  import { SetupOption } from "./parameters.js";
3
2
  /**
4
3
  * The MoQ Hidden extension (draft-lcurley-moq-hidden-00).
package/ietf/index.d.ts CHANGED
@@ -1,21 +1,21 @@
1
- export * from "./adapter";
2
- export * as Cluster from "./cluster";
3
- export * from "./connection";
4
- export * from "./fetch";
5
- export * from "./goaway";
6
- export * from "./hidden";
7
- export * from "./object";
8
- export * from "./parameters";
9
- export * from "./publish";
10
- export * from "./publish_namespace";
11
- export * from "./publisher";
12
- export * from "./request";
13
- export * from "./setup";
14
- export * from "./solicit";
15
- export * from "./subscribe";
16
- export * from "./subscribe_namespace";
17
- export * from "./subscriber";
18
- export * from "./token";
19
- export * from "./track";
20
- export * from "./version";
1
+ export * from "./adapter.ts";
2
+ export * as Cluster from "./cluster.ts";
3
+ export * from "./connection.ts";
4
+ export * from "./fetch.ts";
5
+ export * from "./goaway.ts";
6
+ export * from "./hidden.ts";
7
+ export * from "./object.ts";
8
+ export * from "./parameters.ts";
9
+ export * from "./publish.ts";
10
+ export * from "./publish_namespace.ts";
11
+ export * from "./publisher.ts";
12
+ export * from "./request.ts";
13
+ export * from "./setup.ts";
14
+ export * from "./solicit.ts";
15
+ export * from "./subscribe.ts";
16
+ export * from "./subscribe_namespace.ts";
17
+ export * from "./subscriber.ts";
18
+ export * from "./token.ts";
19
+ export * from "./track.ts";
20
+ export * from "./version.ts";
21
21
  //# sourceMappingURL=index.d.ts.map
package/ietf/index.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./index.d.ts" */
2
1
  export * from "./adapter.js";
3
2
  import * as Cluster_1 from "./cluster.js";
4
3
  export { Cluster_1 as Cluster };
package/ietf/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>): Promise<void>;
3
3
  export declare function decode<T>(reader: Reader, f: (r: Reader) => Promise<T>): Promise<T>;
4
4
  //# sourceMappingURL=message.d.ts.map
package/ietf/message.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./message.d.ts" */
2
1
  import { Reader, Writer } from "../stream.js";
3
2
  // Encodes a message with a u16 (16-bit) size prefix as per draft-14.
4
3
  export async function encode(writer, f) {
@@ -1,5 +1,5 @@
1
- import * as Path from "../path";
2
- import type { Reader, Writer } from "../stream";
1
+ import * as Path from "../path.ts";
2
+ import type { Reader, Writer } from "../stream.ts";
3
3
  /** Convert the escaped moq-net path representation into IETF namespace tuple fields. */
4
4
  export declare function toTuple(namespace: Path.Valid): string[];
5
5
  /** Convert IETF namespace tuple fields into the escaped moq-net path representation. */
package/ietf/namespace.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./namespace.d.ts" */
2
1
  import * as Path from "../path.js";
3
2
  /** Convert the escaped moq-net path representation into IETF namespace tuple fields. */
4
3
  export function toTuple(namespace) {
package/ietf/object.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { type Cursor, type Reader, Writer } from "../stream";
2
- import { Timescale, Timestamp } from "../time";
3
- import { type IetfVersion } from "./version";
1
+ import { type Cursor, type Reader, Writer } from "../stream.ts";
2
+ import { Timescale, Timestamp } from "../time.ts";
3
+ import { type IetfVersion } from "./version.ts";
4
4
  /** Whether the subgroup header carries FIRST_OBJECT: draft-18 and later, not drafts 14-17. */
5
5
  export declare function hasFirstObjectBit(version: IetfVersion): boolean;
6
6
  export interface GroupFlags {
package/ietf/object.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./object.d.ts" */
2
1
  import { ProtocolViolation, StreamCode, Stream as StreamError } from "../error.js";
3
2
  import { asIetf, Writer } from "../stream.js";
4
3
  import { Timescale, Timestamp } from "../time.js";
@@ -1,6 +1,6 @@
1
- import type { Reader, Writer } from "../stream";
2
- import * as Filter from "./filter";
3
- import { type IetfVersion } from "./version";
1
+ import type { Reader, Writer } from "../stream.ts";
2
+ import * as Filter from "./filter.ts";
3
+ import { type IetfVersion } from "./version.ts";
4
4
  export declare const SetupOption: {
5
5
  readonly Path: 1n;
6
6
  readonly MaxRequestId: 2n;
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./parameters.d.ts" */
2
1
  import * as Varint from "../varint.js";
3
2
  import * as Filter from "./filter.js";
4
3
  import { Version } from "./version.js";
package/ietf/priority.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./priority.d.ts" */
2
1
  /** Convert an IETF subscriber priority into the model's higher-first priority. */
3
2
  export function fromWire(priority) {
4
3
  return 0xff - priority;
@@ -1,6 +1,6 @@
1
- import type { Reader, Writer } from "../stream";
2
- import { Timescale } from "../time";
3
- import { type IetfVersion } from "./version";
1
+ import type { Reader, Writer } from "../stream.ts";
2
+ import { Timescale } from "../time.ts";
3
+ import { type IetfVersion } from "./version.ts";
4
4
  /**
5
5
  * DEFAULT_PUBLISHER_GROUP_ORDER's descending value: the newest group first, which is what
6
6
  * we serve, matching moq-lite.
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./properties.d.ts" */
2
1
  import { Timescale } from "../time.js";
3
2
  import { Version } from "./version.js";
4
3
  // TIMESCALE (0x08), from the MOQ Properties registry shared with draft-ietf-moq-loc-04.
package/ietf/publish.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type * as Path from "../path";
2
- import type { Reader, Writer } from "../stream";
3
- import { type IetfVersion } from "./version";
1
+ import type * as Path from "../path.ts";
2
+ import type { Reader, Writer } from "../stream.ts";
3
+ import { type IetfVersion } from "./version.ts";
4
4
  export declare class Publish {
5
5
  #private;
6
6
  static id: number;
package/ietf/publish.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./publish.d.ts" */
2
1
  import * as Message from "./message.js";
3
2
  import * as Namespace from "./namespace.js";
4
3
  import { Parameters } from "./parameters.js";
@@ -1,7 +1,7 @@
1
- import type * as Path from "../path";
2
- import type { Reader, Writer } from "../stream";
3
- import * as Cluster from "./cluster";
4
- import { type IetfVersion } from "./version";
1
+ import type * as Path from "../path.ts";
2
+ import type { Reader, Writer } from "../stream.ts";
3
+ import * as Cluster from "./cluster.ts";
4
+ import { type IetfVersion } from "./version.ts";
5
5
  export declare class PublishNamespace {
6
6
  #private;
7
7
  static id: number;
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./publish_namespace.d.ts" */
2
1
  import { ProtocolViolation, reason, SessionError, StreamError } from "../error.js";
3
2
  import * as Cluster from "./cluster.js";
4
3
  import * as Message from "./message.js";
package/ietf/publisher.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./publisher.d.ts" */
2
1
  import { race, Signal } from "@moq/signals";
3
2
  import { controlTimeout, error, reason, StreamCode, StreamError } from "../error.js";
4
3
  import { hiddenBelow, hooks, presented } from "../internal.js";
package/ietf/request.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type { Reader, Writer } from "../stream";
2
- import { Parameters } from "./parameters";
3
- import { type IetfVersion } from "./version";
1
+ import type { Reader, Writer } from "../stream.ts";
2
+ import { Parameters } from "./parameters.ts";
3
+ import { type IetfVersion } from "./version.ts";
4
4
  export declare class MaxRequestId {
5
5
  #private;
6
6
  static id: number;
package/ietf/request.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./request.d.ts" */
2
1
  import * as Message from "./message.js";
3
2
  import { Parameters } from "./parameters.js";
4
3
  import * as Properties from "./properties.js";
@@ -1,5 +1,5 @@
1
- import type { Stream } from "../stream";
2
- import { type IetfVersion } from "./version";
1
+ import type { Stream } from "../stream.ts";
2
+ import { type IetfVersion } from "./version.ts";
3
3
  /** Whether the draft treats the requester finishing its messages as cancellation. */
4
4
  export declare function finCancels(version: IetfVersion): boolean;
5
5
  /** Wait for request cancellation, including STOP_SENDING after a clean requester FIN. */
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./request_stream.d.ts" */
2
1
  import { race } from "@moq/signals";
3
2
  import { Version } from "./version.js";
4
3
  /** Whether the draft treats the requester finishing its messages as cancellation. */
package/ietf/setup.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type { Reader, Writer } from "../stream";
2
- import { SetupOptions } from "./parameters";
3
- import { type IetfVersion } from "./version";
1
+ import type { Reader, Writer } from "../stream.ts";
2
+ import { SetupOptions } from "./parameters.ts";
3
+ import { type IetfVersion } from "./version.ts";
4
4
  export declare class Setup {
5
5
  #private;
6
6
  static id: number;
package/ietf/setup.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./setup.d.ts" */
2
1
  import * as Message from "./message.js";
3
2
  import { SetupOptions } from "./parameters.js";
4
3
  import { Version } from "./version.js";
package/ietf/solicit.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./solicit.d.ts" */
2
1
  import { SetupOption } from "./parameters.js";
3
2
  /**
4
3
  * The MoQ Solicit extension (draft-lcurley-moq-solicit-00).
@@ -1,9 +1,9 @@
1
- import type * as Path from "../path";
2
- import type { Reader, Writer } from "../stream";
3
- import * as Filter from "./filter";
4
- import { type MessageLocation } from "./parameters";
5
- import * as Properties from "./properties";
6
- import { type IetfVersion } from "./version";
1
+ import type * as Path from "../path.ts";
2
+ import type { Reader, Writer } from "../stream.ts";
3
+ import * as Filter from "./filter.ts";
4
+ import { type MessageLocation } from "./parameters.ts";
5
+ import * as Properties from "./properties.ts";
6
+ import { type IetfVersion } from "./version.ts";
7
7
  /**
8
8
  * The filter this implementation joins a live track with.
9
9
  *
package/ietf/subscribe.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./subscribe.d.ts" */
2
1
  import * as Filter from "./filter.js";
3
2
  import * as Message from "./message.js";
4
3
  import * as Namespace from "./namespace.js";
@@ -1,7 +1,7 @@
1
- import type * as Path from "../path";
2
- import type { Reader, Writer } from "../stream";
3
- import * as Cluster from "./cluster";
4
- import { type IetfVersion } from "./version";
1
+ import type * as Path from "../path.ts";
2
+ import type { Reader, Writer } from "../stream.ts";
3
+ import * as Cluster from "./cluster.ts";
4
+ import { type IetfVersion } from "./version.ts";
5
5
  export declare class SubscribeNamespace {
6
6
  #private;
7
7
  static id: number;
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./subscribe_namespace.d.ts" */
2
1
  import * as Cluster from "./cluster.js";
3
2
  import * as Message from "./message.js";
4
3
  import * as Namespace from "./namespace.js";
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./subscriber.d.ts" */
2
1
  import { race, Signal } from "@moq/signals";
3
2
  import * as announce from "../announced.js";
4
3
  import * as broadcast from "../broadcast.js";
package/ietf/token.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./token.d.ts" */
2
1
  import { SessionCode, SessionError } from "../error.js";
3
2
  import * as Varint from "../varint.js";
4
3
  import { SetupOption } from "./parameters.js";
package/ietf/track.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type * as Path from "../path";
2
- import type { Reader, Writer } from "../stream";
3
- import { type IetfVersion } from "./version";
1
+ import type * as Path from "../path.ts";
2
+ import type { Reader, Writer } from "../stream.ts";
3
+ import { type IetfVersion } from "./version.ts";
4
4
  export declare class TrackStatusRequest {
5
5
  #private;
6
6
  static id: number;
package/ietf/track.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./track.d.ts" */
2
1
  import * as Message from "./message.js";
3
2
  import * as Namespace from "./namespace.js";
4
3
  import { Parameters } from "./parameters.js";
package/ietf/version.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./version.d.ts" */
2
1
  /**
3
2
  * Supported MoQ Transport protocol versions
4
3
  */
package/index.d.ts CHANGED
@@ -4,29 +4,29 @@
4
4
  *
5
5
  * @module
6
6
  */
7
- /** Re-export of {@link https://jsr.io/@moq/signals | @moq/signals}, the reactive primitives used throughout this package. */
7
+ /** Re-export of {@link https://www.npmjs.com/package/@moq/signals | @moq/signals}, the reactive primitives used throughout this package. */
8
8
  export * as Signals from "@moq/signals";
9
9
  /** Broadcast announcement streams. */
10
- export * as Announce from "./announce";
10
+ export * as Announce from "./announce.ts";
11
11
  /** Send-side bandwidth estimates split among the tracks sharing a connection. */
12
- export * as Bandwidth from "./bandwidth_api";
12
+ export * as Bandwidth from "./bandwidth_api.ts";
13
13
  /** Broadcast role handles. */
14
- export * as Broadcast from "./broadcast";
14
+ export * as Broadcast from "./broadcast.ts";
15
15
  /** A reconnecting, shareable handle on a MoQ session. */
16
- export { Connection } from "./connection/index";
17
- export { SessionCode, StreamCode } from "./error";
16
+ export { Connection } from "./connection/index.ts";
17
+ export { SessionCode, StreamCode } from "./error.ts";
18
18
  /** Session and stream errors, each carrying a code from its own registry. */
19
- export * as Error from "./errors";
19
+ export * as Error from "./errors.ts";
20
20
  /** Group role handles and frame helpers. */
21
- export * as Group from "./group";
21
+ export * as Group from "./group.ts";
22
22
  /** Broadcast routing tables, independent of any connection. */
23
- export * as Origin from "./origin";
23
+ export * as Origin from "./origin.ts";
24
24
  /** Broadcast path utilities with delimiter-aware prefix matching. Path patterns are re-exported from `@moq/pattern`. */
25
- export * as Path from "./path";
25
+ export * as Path from "./path.ts";
26
26
  /** Branded time types (nanoseconds, microseconds, milliseconds, seconds) with conversions. */
27
- export * as Time from "./time";
27
+ export * as Time from "./time.ts";
28
28
  /** Track role handles. */
29
- export * as Track from "./track";
29
+ export * as Track from "./track.ts";
30
30
  /** Varint encoding and decoding, in QUIC's format and moq-transport's leading-ones format. */
31
- export * as Varint from "./varint";
31
+ export * as Varint from "./varint.ts";
32
32
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,6HAA6H;AAC7H,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,sCAAsC;AACtC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,iFAAiF;AACjF,OAAO,KAAK,SAAS,MAAM,oBAAoB,CAAC;AAChD,8BAA8B;AAC9B,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,yDAAyD;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACrD,6EAA6E;AAC7E,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AACrC,4CAA4C;AAC5C,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,+DAA+D;AAC/D,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,wHAAwH;AACxH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,8FAA8F;AAC9F,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,0BAA0B;AAC1B,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,8FAA8F;AAC9F,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,4IAA4I;AAC5I,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,sCAAsC;AACtC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,iFAAiF;AACjF,OAAO,KAAK,SAAS,MAAM,oBAAoB,CAAC;AAChD,8BAA8B;AAC9B,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,yDAAyD;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACrD,6EAA6E;AAC7E,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AACrC,4CAA4C;AAC5C,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,+DAA+D;AAC/D,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,wHAAwH;AACxH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,8FAA8F;AAC9F,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,0BAA0B;AAC1B,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,8FAA8F;AAC9F,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC"}
package/index.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./index.d.ts" */
2
1
  /**
3
2
  * MoQ networking layer for browsers: connect to a relay, then publish and consume
4
3
  * broadcasts, tracks, groups, and frames over WebTransport (or a WebSocket fallback).
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;2BAGsB,cAAc;sBAA3B,OAAO;4BAEO,eAAe;uBAA7B,QAAQ;6BAEO,oBAAoB;wBAAnC,SAAS;6BAEM,gBAAgB;wBAA/B,SAAS;AACrB,yDAAyD;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;yBAE9B,aAAa;oBAAxB,KAAK;yBAEM,YAAY;oBAAvB,KAAK;0BAEO,aAAa;qBAAzB,MAAM;wBAEI,WAAW;mBAArB,IAAI;wBAEM,WAAW;mBAArB,IAAI;yBAEO,YAAY;oBAAvB,KAAK;0BAEO,aAAa;qBAAzB,MAAM","sourcesContent":["/**\n * MoQ networking layer for browsers: connect to a relay, then publish and consume\n * broadcasts, tracks, groups, and frames over WebTransport (or a WebSocket fallback).\n *\n * @module\n */\n\n/** Re-export of {@link https://jsr.io/@moq/signals | @moq/signals}, the reactive primitives used throughout this package. */\nexport * as Signals from \"@moq/signals\";\n/** Broadcast announcement streams. */\nexport * as Announce from \"./announce.ts\";\n/** Send-side bandwidth estimates split among the tracks sharing a connection. */\nexport * as Bandwidth from \"./bandwidth_api.ts\";\n/** Broadcast role handles. */\nexport * as Broadcast from \"./broadcast.ts\";\n/** A reconnecting, shareable handle on a MoQ session. */\nexport { Connection } from \"./connection/index.ts\";\nexport { SessionCode, StreamCode } from \"./error.ts\";\n/** Session and stream errors, each carrying a code from its own registry. */\nexport * as Error from \"./errors.ts\";\n/** Group role handles and frame helpers. */\nexport * as Group from \"./group.ts\";\n/** Broadcast routing tables, independent of any connection. */\nexport * as Origin from \"./origin.ts\";\n/** Broadcast path utilities with delimiter-aware prefix matching. Path patterns are re-exported from `@moq/pattern`. */\nexport * as Path from \"./path.ts\";\n/** Branded time types (nanoseconds, microseconds, milliseconds, seconds) with conversions. */\nexport * as Time from \"./time.ts\";\n/** Track role handles. */\nexport * as Track from \"./track.ts\";\n/** Varint encoding and decoding, in QUIC's format and moq-transport's leading-ones format. */\nexport * as Varint from \"./varint.ts\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;2BAGsB,cAAc;sBAA3B,OAAO;4BAEO,eAAe;uBAA7B,QAAQ;6BAEO,oBAAoB;wBAAnC,SAAS;6BAEM,gBAAgB;wBAA/B,SAAS;AACrB,yDAAyD;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;yBAE9B,aAAa;oBAAxB,KAAK;yBAEM,YAAY;oBAAvB,KAAK;0BAEO,aAAa;qBAAzB,MAAM;wBAEI,WAAW;mBAArB,IAAI;wBAEM,WAAW;mBAArB,IAAI;yBAEO,YAAY;oBAAvB,KAAK;0BAEO,aAAa;qBAAzB,MAAM","sourcesContent":["/**\n * MoQ networking layer for browsers: connect to a relay, then publish and consume\n * broadcasts, tracks, groups, and frames over WebTransport (or a WebSocket fallback).\n *\n * @module\n */\n\n/** Re-export of {@link https://www.npmjs.com/package/@moq/signals | @moq/signals}, the reactive primitives used throughout this package. */\nexport * as Signals from \"@moq/signals\";\n/** Broadcast announcement streams. */\nexport * as Announce from \"./announce.ts\";\n/** Send-side bandwidth estimates split among the tracks sharing a connection. */\nexport * as Bandwidth from \"./bandwidth_api.ts\";\n/** Broadcast role handles. */\nexport * as Broadcast from \"./broadcast.ts\";\n/** A reconnecting, shareable handle on a MoQ session. */\nexport { Connection } from \"./connection/index.ts\";\nexport { SessionCode, StreamCode } from \"./error.ts\";\n/** Session and stream errors, each carrying a code from its own registry. */\nexport * as Error from \"./errors.ts\";\n/** Group role handles and frame helpers. */\nexport * as Group from \"./group.ts\";\n/** Broadcast routing tables, independent of any connection. */\nexport * as Origin from \"./origin.ts\";\n/** Broadcast path utilities with delimiter-aware prefix matching. Path patterns are re-exported from `@moq/pattern`. */\nexport * as Path from \"./path.ts\";\n/** Branded time types (nanoseconds, microseconds, milliseconds, seconds) with conversions. */\nexport * as Time from \"./time.ts\";\n/** Track role handles. */\nexport * as Track from \"./track.ts\";\n/** Varint encoding and decoding, in QUIC's format and moq-transport's leading-ones format. */\nexport * as Varint from \"./varint.ts\";\n"]}
package/internal.d.ts CHANGED
@@ -6,13 +6,13 @@
6
6
  * @module
7
7
  */
8
8
  import type { Dispose, Getter } from "@moq/signals";
9
- import type { Consumer as BroadcastConsumer, Producer as BroadcastProducer } from "./broadcast";
10
- import type { Frame, Consumer as GroupConsumer } from "./group";
11
- import type { Route } from "./hop";
12
- import * as Path from "./path";
13
- import type { Timestamp } from "./time";
14
- import type { Groups, Producer, Request, Subscriber } from "./track";
15
- import type { Advertised, Advertisements } from "./wire";
9
+ import type { Consumer as BroadcastConsumer, Producer as BroadcastProducer } from "./broadcast.ts";
10
+ import type { Frame, Consumer as GroupConsumer } from "./group.ts";
11
+ import type { Route } from "./hop.ts";
12
+ import * as Path from "./path.ts";
13
+ import type { Timestamp } from "./time.ts";
14
+ import type { Groups, Producer, Request, Subscriber } from "./track.ts";
15
+ import type { Advertised, Advertisements } from "./wire.ts";
16
16
  /** Normalize public group bounds into an inclusive start and exclusive end. */
17
17
  export declare function groupBounds(groups?: Groups): {
18
18
  start: number;
package/internal.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./internal.d.ts" */
2
1
  import * as Path from "./path.js";
3
2
  /** Normalize public group bounds into an inclusive start and exclusive end. */
4
3
  export function groupBounds(groups = {}) {
@@ -1,7 +1,7 @@
1
- import { type Cost, type Hop } from "../hop";
2
- import * as Path from "../path";
3
- import type { Reader, Writer } from "../stream";
4
- import { Version } from "./version";
1
+ import { type Cost, type Hop } from "../hop.ts";
2
+ import * as Path from "../path.ts";
3
+ import type { Reader, Writer } from "../stream.ts";
4
+ import { Version } from "./version.ts";
5
5
  export type { Cost };
6
6
  /**
7
7
  * Lite-07: copy `keep` path segments (from the head) or hops (from the tail) of the
package/lite/announce.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./announce.d.ts" */
2
1
  import { ProtocolViolation } from "../error.js";
3
2
  import { HopSchema, MAX_HOPS, UNKNOWN_HOP } from "../hop.js";
4
3
  import * as Path from "../path.js";
@@ -1,11 +1,11 @@
1
1
  import { type Getter } from "@moq/signals";
2
- import type * as announce from "../announced";
3
- import type { Established } from "../connection/established";
4
- import { type Probe, type Stats } from "../connection/stats";
5
- import { type Transport } from "../connection/transport";
6
- import { type Hop } from "../hop";
7
- import type * as Path from "../path";
8
- import { type Role } from "./setup";
2
+ import type * as announce from "../announced.ts";
3
+ import type { Established } from "../connection/established.ts";
4
+ import { type Probe, type Stats } from "../connection/stats.ts";
5
+ import { type Transport } from "../connection/transport.ts";
6
+ import { type Hop } from "../hop.ts";
7
+ import type * as Path from "../path.ts";
8
+ import { type Role } from "./setup.ts";
9
9
  /**
10
10
  * Represents a connection to a MoQ server.
11
11
  *
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./connection.d.ts" */
2
1
  import { Once, Signal } from "@moq/signals";
3
2
  import { transportStats } from "../connection/stats.js";
4
3
  import { transportOf } from "../connection/transport.js";
@@ -1,4 +1,4 @@
1
- import type { Version } from "./version";
1
+ import type { Version } from "./version.ts";
2
2
  /**
3
3
  * A QUIC datagram body: `subscribe (i) | sequence (i) | timestamp (i) | payload (b)`.
4
4
  *
package/lite/datagram.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./datagram.d.ts" */
2
1
  /**
3
2
  * Wire-level QUIC datagram body for moq-lite-05 (§6.4).
4
3
  *
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./datagram_stream.d.ts" */
2
1
  /** Compatibility helpers for browser WebTransport datagram stream shape changes. */
3
2
  function datagrams(quic) {
4
3
  return quic.datagrams;
package/lite/fetch.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
  export declare class Fetch {
5
5
  #private;
6
6
  broadcast: Path.Valid;
package/lite/fetch.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./fetch.d.ts" */
2
1
  import * as Path from "../path.js";
3
2
  import * as Message from "./message.js";
4
3
  import { hasFrameBounds, Version } from "./version.js";
package/lite/goaway.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 Goaway {
4
4
  #private;
5
5
  uri: string;
package/lite/goaway.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./goaway.d.ts" */
2
1
  import * as Message from "./message.js";
3
2
  import { Version } from "./version.js";
4
3
  function guardGoaway(version) {
package/lite/group.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type * as netGroup from "../group";
2
- import type { Cursor, Reader, Writer } from "../stream";
3
- import { type Version } from "./version";
1
+ import type * as netGroup from "../group.ts";
2
+ import type { Cursor, Reader, Writer } from "../stream.ts";
3
+ import { type Version } from "./version.ts";
4
4
  export declare class Group {
5
5
  #private;
6
6
  subscribe: bigint;
package/lite/group.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./group.d.ts" */
2
1
  import { race } from "@moq/signals";
3
2
  import * as Time from "../time.js";
4
3
  import * as Message from "./message.js";
package/lite/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
- export * from "./announce";
2
- export * from "./connection";
3
- export * from "./datagram";
4
- export * from "./fetch";
5
- export * from "./goaway";
6
- export * from "./group";
7
- export * from "./probe";
8
- export * from "./session";
9
- export * from "./setup";
10
- export * from "./stream";
11
- export * from "./subscribe";
12
- export * from "./track";
13
- export * from "./version";
1
+ export * from "./announce.ts";
2
+ export * from "./connection.ts";
3
+ export * from "./datagram.ts";
4
+ export * from "./fetch.ts";
5
+ export * from "./goaway.ts";
6
+ export * from "./group.ts";
7
+ export * from "./probe.ts";
8
+ export * from "./session.ts";
9
+ export * from "./setup.ts";
10
+ export * from "./stream.ts";
11
+ export * from "./subscribe.ts";
12
+ export * from "./track.ts";
13
+ export * from "./version.ts";
14
14
  //# sourceMappingURL=index.d.ts.map