@moq/net 0.4.6 → 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 (163) 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.d.ts.map +1 -1
  47. package/ietf/connection.js +2 -6
  48. package/ietf/connection.js.map +1 -1
  49. package/ietf/error.js +0 -1
  50. package/ietf/fetch.d.ts +4 -4
  51. package/ietf/fetch.d.ts.map +1 -1
  52. package/ietf/fetch.js +7 -4
  53. package/ietf/fetch.js.map +1 -1
  54. package/ietf/filter.d.ts +2 -2
  55. package/ietf/filter.js +0 -1
  56. package/ietf/goaway.d.ts +3 -3
  57. package/ietf/goaway.js +0 -1
  58. package/ietf/hidden.js +0 -1
  59. package/ietf/index.d.ts +20 -20
  60. package/ietf/index.js +0 -1
  61. package/ietf/message.d.ts +1 -1
  62. package/ietf/message.js +0 -1
  63. package/ietf/namespace.d.ts +2 -2
  64. package/ietf/namespace.js +0 -1
  65. package/ietf/object.d.ts +8 -3
  66. package/ietf/object.d.ts.map +1 -1
  67. package/ietf/object.js +7 -1
  68. package/ietf/object.js.map +1 -1
  69. package/ietf/parameters.d.ts +3 -3
  70. package/ietf/parameters.js +0 -1
  71. package/ietf/priority.js +0 -1
  72. package/ietf/properties.d.ts +3 -3
  73. package/ietf/properties.js +0 -1
  74. package/ietf/publish.d.ts +3 -3
  75. package/ietf/publish.js +0 -1
  76. package/ietf/publish_namespace.d.ts +4 -4
  77. package/ietf/publish_namespace.js +0 -1
  78. package/ietf/publisher.js +0 -2
  79. package/ietf/publisher.js.map +1 -1
  80. package/ietf/request.d.ts +3 -3
  81. package/ietf/request.js +0 -1
  82. package/ietf/request_stream.d.ts +2 -2
  83. package/ietf/request_stream.js +0 -1
  84. package/ietf/setup.d.ts +3 -3
  85. package/ietf/setup.js +0 -1
  86. package/ietf/solicit.js +0 -1
  87. package/ietf/subscribe.d.ts +6 -6
  88. package/ietf/subscribe.js +0 -1
  89. package/ietf/subscribe_namespace.d.ts +4 -4
  90. package/ietf/subscribe_namespace.js +0 -1
  91. package/ietf/subscriber.js +10 -3
  92. package/ietf/subscriber.js.map +1 -1
  93. package/ietf/token.js +0 -1
  94. package/ietf/track.d.ts +3 -3
  95. package/ietf/track.js +0 -1
  96. package/ietf/version.js +0 -1
  97. package/index.d.ts +13 -13
  98. package/index.d.ts.map +1 -1
  99. package/index.js +0 -1
  100. package/index.js.map +1 -1
  101. package/internal.d.ts +7 -7
  102. package/internal.js +0 -1
  103. package/lite/announce.d.ts +4 -4
  104. package/lite/announce.js +0 -1
  105. package/lite/connection.d.ts +7 -7
  106. package/lite/connection.js +0 -1
  107. package/lite/datagram.d.ts +1 -1
  108. package/lite/datagram.js +0 -1
  109. package/lite/datagram_stream.js +0 -1
  110. package/lite/fetch.d.ts +3 -3
  111. package/lite/fetch.js +0 -1
  112. package/lite/goaway.d.ts +2 -2
  113. package/lite/goaway.js +0 -1
  114. package/lite/group.d.ts +3 -3
  115. package/lite/group.js +0 -1
  116. package/lite/index.d.ts +13 -13
  117. package/lite/index.js +0 -1
  118. package/lite/message.d.ts +1 -1
  119. package/lite/message.js +0 -1
  120. package/lite/priority.js +0 -1
  121. package/lite/probe.d.ts +2 -2
  122. package/lite/probe.js +0 -1
  123. package/lite/publisher.js +0 -1
  124. package/lite/session.d.ts +2 -2
  125. package/lite/session.js +0 -1
  126. package/lite/setup.d.ts +3 -3
  127. package/lite/setup.js +0 -1
  128. package/lite/stream.d.ts +6 -6
  129. package/lite/stream.js +0 -1
  130. package/lite/subscribe.d.ts +3 -3
  131. package/lite/subscribe.js +0 -1
  132. package/lite/subscriber.d.ts +7 -7
  133. package/lite/subscriber.d.ts.map +1 -1
  134. package/lite/subscriber.js +5 -1
  135. package/lite/subscriber.js.map +1 -1
  136. package/lite/track.d.ts +3 -3
  137. package/lite/track.js +0 -1
  138. package/lite/version.js +0 -1
  139. package/origin.d.ts +6 -6
  140. package/origin.js +0 -1
  141. package/package.json +2 -2
  142. package/path.js +0 -1
  143. package/stream.d.ts +7 -3
  144. package/stream.d.ts.map +1 -1
  145. package/stream.js +24 -1
  146. package/stream.js.map +1 -1
  147. package/tail.d.ts +1 -1
  148. package/tail.js +0 -1
  149. package/time.js +0 -1
  150. package/track.d.ts +4 -4
  151. package/track.js +0 -1
  152. package/util/abort.js +0 -1
  153. package/util/hex.js +0 -1
  154. package/util/log.js +0 -1
  155. package/util/timeout.js +0 -1
  156. package/util/u64.js +0 -1
  157. package/util/utf8.js +0 -1
  158. package/util/varint.js +0 -1
  159. package/varint.js +0 -1
  160. package/wire.d.ts +7 -7
  161. package/wire.js +0 -1
  162. package/zod.d.ts +2 -2
  163. package/zod.js +0 -1
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";
@@ -599,7 +598,6 @@ export class Publisher {
599
598
  return;
600
599
  }
601
600
  streams.opened += 1;
602
- await stream.u53(FetchHeader.type);
603
601
  await new FetchHeader({ requestId }).encode(stream, version);
604
602
  if (fill.kind !== "group") {
605
603
  throw new Error("a fill spanning several groups is not supported");