@fluidframework/sequence 2.10.0-306579 → 2.10.0-307060

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.
@@ -15,7 +15,6 @@ import {
15
15
  DetachedReferencePosition,
16
16
  ISegment,
17
17
  LocalReferencePosition,
18
- MergeTreeDeltaType,
19
18
  PropertySet,
20
19
  ReferenceType,
21
20
  SlidingPreference,
@@ -1329,10 +1328,11 @@ export class IntervalCollection<TInterval extends ISerializableInterval>
1329
1328
  let newInterval: TInterval | undefined;
1330
1329
  if (props !== undefined) {
1331
1330
  interval.propertyManager ??= new PropertiesManager();
1332
- deltaProps = interval.propertyManager.addProperties(
1333
- interval.properties,
1334
- props,
1331
+ deltaProps = interval.propertyManager.handleProperties(
1332
+ { props },
1333
+ interval,
1335
1334
  this.isCollaborating ? UnassignedSequenceNumber : UniversalSequenceNumber,
1335
+ UniversalSequenceNumber,
1336
1336
  true,
1337
1337
  );
1338
1338
  }
@@ -1492,9 +1492,8 @@ export class IntervalCollection<TInterval extends ISerializableInterval>
1492
1492
  if (local) {
1493
1493
  interval.propertyManager ??= new PropertiesManager();
1494
1494
  // Let the propertyManager prune its pending change-properties set.
1495
- interval.propertyManager.ackPendingProperties({
1496
- type: MergeTreeDeltaType.ANNOTATE,
1497
- props: serializedInterval.properties ?? {},
1495
+ interval.propertyManager.ack(op.sequenceNumber, op.minimumSequenceNumber, {
1496
+ props: newProps,
1498
1497
  });
1499
1498
 
1500
1499
  this.ackInterval(interval, op);
@@ -1524,10 +1523,11 @@ export class IntervalCollection<TInterval extends ISerializableInterval>
1524
1523
  ) ?? interval;
1525
1524
  }
1526
1525
  newInterval.propertyManager ??= new PropertiesManager();
1527
- const deltaProps = newInterval.propertyManager.addProperties(
1528
- newInterval.properties,
1529
- newProps,
1526
+ const deltaProps = newInterval.propertyManager.handleProperties(
1527
+ { props: newProps },
1528
+ newInterval,
1530
1529
  op.sequenceNumber,
1530
+ op.minimumSequenceNumber,
1531
1531
  true,
1532
1532
  );
1533
1533
  if (this.onDeserialize) {
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/sequence";
9
- export const pkgVersion = "2.10.0-306579";
9
+ export const pkgVersion = "2.10.0-307060";