@fluidframework/map 2.50.0-345060 → 2.51.0-347100

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/mapKernel.ts CHANGED
@@ -454,7 +454,7 @@ export class MapKernel {
454
454
  assert(
455
455
  removedLocalOpMetadata !== undefined &&
456
456
  removedLocalOpMetadata === listNodeLocalOpMetadata,
457
- "Rolling back unexpected op",
457
+ 0xbcb /* Rolling back unexpected op */,
458
458
  );
459
459
 
460
460
  if (mapOp.type === "clear" && listNodeLocalOpMetadata.data.type === "clear") {
@@ -628,7 +628,7 @@ export class MapKernel {
628
628
  const removedLocalOpMetadata = this.pendingMapLocalOpMetadata.shift();
629
629
  assert(
630
630
  removedLocalOpMetadata !== undefined && removedLocalOpMetadata === localOpMetadata,
631
- "Processing unexpected local clear op",
631
+ 0xbcc /* Processing unexpected local clear op */,
632
632
  );
633
633
  assert(
634
634
  isClearLocalOpMetadata(localOpMetadata.data),
@@ -649,7 +649,10 @@ export class MapKernel {
649
649
  },
650
650
  resubmit: (op: IMapClearOperation, localOpMetadata: ListNode<MapLocalOpMetadata>) => {
651
651
  const removedLocalOpMetadata = localOpMetadata.remove()?.data;
652
- assert(removedLocalOpMetadata !== undefined, "Resubmitting unexpected local clear op");
652
+ assert(
653
+ removedLocalOpMetadata !== undefined,
654
+ 0xbcd /* Resubmitting unexpected local clear op */,
655
+ );
653
656
  assert(
654
657
  isClearLocalOpMetadata(localOpMetadata.data),
655
658
  0x2fc /* Invalid localOpMetadata for clear */,
@@ -673,7 +676,7 @@ export class MapKernel {
673
676
  const removedLocalOpMetadata = this.pendingMapLocalOpMetadata.shift();
674
677
  assert(
675
678
  removedLocalOpMetadata !== undefined && removedLocalOpMetadata === localOpMetadata,
676
- "Processing unexpected local delete op",
679
+ 0xbce /* Processing unexpected local delete op */,
677
680
  );
678
681
  }
679
682
  if (!this.needProcessKeyOperation(op, local, localOpMetadata?.data)) {
@@ -685,7 +688,7 @@ export class MapKernel {
685
688
  const removedLocalOpMetadata = localOpMetadata.remove()?.data;
686
689
  assert(
687
690
  removedLocalOpMetadata !== undefined,
688
- "Resubmitting unexpected local delete op",
691
+ 0xbcf /* Resubmitting unexpected local delete op */,
689
692
  );
690
693
  this.resubmitMapKeyMessage(op, localOpMetadata.data);
691
694
  },
@@ -700,7 +703,7 @@ export class MapKernel {
700
703
  const removedLocalOpMetadata = this.pendingMapLocalOpMetadata.shift();
701
704
  assert(
702
705
  removedLocalOpMetadata !== undefined && removedLocalOpMetadata === localOpMetadata,
703
- "Processing unexpected local set op",
706
+ 0xbd0 /* Processing unexpected local set op */,
704
707
  );
705
708
  }
706
709
  if (!this.needProcessKeyOperation(op, local, localOpMetadata?.data)) {
@@ -713,7 +716,10 @@ export class MapKernel {
713
716
  },
714
717
  resubmit: (op: IMapSetOperation, localOpMetadata: ListNode<MapLocalOpMetadata>) => {
715
718
  const removedLocalOpMetadata = localOpMetadata.remove()?.data;
716
- assert(removedLocalOpMetadata !== undefined, "Resubmitting unexpected local set op");
719
+ assert(
720
+ removedLocalOpMetadata !== undefined,
721
+ 0xbd1 /* Resubmitting unexpected local set op */,
722
+ );
717
723
  this.resubmitMapKeyMessage(op, localOpMetadata.data);
718
724
  },
719
725
  });
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/map";
9
- export const pkgVersion = "2.50.0-345060";
9
+ export const pkgVersion = "2.51.0-347100";