@fluidframework/driver-base 2.0.0-internal.7.0.1 → 2.0.0-internal.7.1.1

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.
@@ -37,7 +37,9 @@ import type { Socket } from "socket.io-client";
37
37
  import { pkgVersion as driverVersion } from "./packageVersion";
38
38
 
39
39
  /**
40
- * Represents a connection to a stream of delta updates
40
+ * Represents a connection to a stream of delta updates.
41
+ *
42
+ * @public
41
43
  */
42
44
  export class DocumentDeltaConnection
43
45
  extends EventEmitterWithErrorHandling<IDocumentDeltaConnectionEvents>
@@ -640,8 +642,12 @@ export class DocumentDeltaConnection
640
642
  this.queuedMessages.push(...msgs);
641
643
  };
642
644
 
643
- protected earlySignalHandler = (msg: ISignalMessage) => {
644
- this.queuedSignals.push(msg);
645
+ protected earlySignalHandler = (msg: ISignalMessage | ISignalMessage[]) => {
646
+ if (Array.isArray(msg)) {
647
+ this.queuedSignals.push(...msg);
648
+ } else {
649
+ this.queuedSignals.push(msg);
650
+ }
645
651
  };
646
652
 
647
653
  private removeEarlyOpHandler() {
@@ -11,6 +11,8 @@ import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils";
11
11
  * Extract and return the w3c data.
12
12
  * @param url - request url for which w3c data needs to be reported.
13
13
  * @param initiatorType - type of the network call
14
+ *
15
+ * @public
14
16
  */
15
17
  export function getW3CData(url: string, initiatorType: string) {
16
18
  // From: https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming
@@ -92,9 +94,11 @@ export function getW3CData(url: string, initiatorType: string) {
92
94
  };
93
95
  }
94
96
 
95
- /*
97
+ /**
96
98
  * An implementation of Promise.race that gives you the winner of the promise race.
97
99
  * If one of the promises is rejected before any other is resolved, this method will return the error/reason from that rejection.
100
+ *
101
+ * @public
98
102
  */
99
103
  export async function promiseRaceWithWinner<T>(
100
104
  promises: Promise<T>[],
@@ -106,6 +110,9 @@ export async function promiseRaceWithWinner<T>(
106
110
  });
107
111
  }
108
112
 
113
+ /**
114
+ * @public
115
+ */
109
116
  export function validateMessages(
110
117
  reason: string,
111
118
  messages: ISequencedDocumentMessage[],
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/driver-base";
9
- export const pkgVersion = "2.0.0-internal.7.0.1";
9
+ export const pkgVersion = "2.0.0-internal.7.1.1";