@fluidframework/map 2.70.0-361248 → 2.70.0

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/src/map.ts CHANGED
@@ -9,14 +9,14 @@ import type {
9
9
  IFluidDataStoreRuntime,
10
10
  IChannelStorageService,
11
11
  } from "@fluidframework/datastore-definitions/internal";
12
- import {
13
- MessageType,
14
- type ISequencedDocumentMessage,
15
- } from "@fluidframework/driver-definitions/internal";
12
+ import { MessageType } from "@fluidframework/driver-definitions/internal";
16
13
  import { readAndParse } from "@fluidframework/driver-utils/internal";
17
14
  import type {
18
15
  ISummaryTreeWithStats,
19
16
  ITelemetryContext,
17
+ IRuntimeMessageCollection,
18
+ IRuntimeMessagesContent,
19
+ ISequencedMessageEnvelope,
20
20
  } from "@fluidframework/runtime-definitions/internal";
21
21
  import { SummaryTreeBuilder } from "@fluidframework/runtime-utils/internal";
22
22
  import type { IFluidSerializer } from "@fluidframework/shared-object-base/internal";
@@ -286,20 +286,27 @@ export class SharedMap extends SharedObject<ISharedMapEvents> implements IShared
286
286
  }
287
287
 
288
288
  /**
289
- * {@inheritDoc @fluidframework/shared-object-base#SharedObject.processCore}
289
+ * {@inheritDoc @fluidframework/shared-object-base#SharedObject.processMessagesCore}
290
290
  */
291
- protected processCore(
292
- message: ISequencedDocumentMessage,
291
+ protected override processMessagesCore(messagesCollection: IRuntimeMessageCollection): void {
292
+ const { envelope, local, messagesContent } = messagesCollection;
293
+ for (const messageContent of messagesContent) {
294
+ this.processMessage(envelope, messageContent, local);
295
+ }
296
+ }
297
+
298
+ private processMessage(
299
+ messageEnvelope: ISequencedMessageEnvelope,
300
+ messageContent: IRuntimeMessagesContent,
293
301
  local: boolean,
294
- localOpMetadata: unknown,
295
302
  ): void {
296
303
  // eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison
297
- if (message.type === MessageType.Operation) {
304
+ if (messageEnvelope.type === MessageType.Operation) {
298
305
  assert(
299
306
  this.kernel.tryProcessMessage(
300
- message.contents as IMapOperation,
307
+ messageContent.contents as IMapOperation,
301
308
  local,
302
- localOpMetadata,
309
+ messageContent.localOpMetadata,
303
310
  ),
304
311
  0xab2 /* Map received an unrecognized op, possibly from a newer version */,
305
312
  );
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/map";
9
- export const pkgVersion = "2.70.0-361248";
9
+ export const pkgVersion = "2.70.0";