@fluidframework/sequence 2.73.0 → 2.74.0-368706

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/sequence",
3
- "version": "2.73.0",
3
+ "version": "2.74.0-368706",
4
4
  "description": "Distributed sequence",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -91,33 +91,33 @@
91
91
  "temp-directory": "nyc/.nyc_output"
92
92
  },
93
93
  "dependencies": {
94
- "@fluid-internal/client-utils": "~2.73.0",
95
- "@fluidframework/core-interfaces": "~2.73.0",
96
- "@fluidframework/core-utils": "~2.73.0",
97
- "@fluidframework/datastore-definitions": "~2.73.0",
98
- "@fluidframework/driver-definitions": "~2.73.0",
99
- "@fluidframework/merge-tree": "~2.73.0",
100
- "@fluidframework/runtime-definitions": "~2.73.0",
101
- "@fluidframework/runtime-utils": "~2.73.0",
102
- "@fluidframework/shared-object-base": "~2.73.0",
103
- "@fluidframework/telemetry-utils": "~2.73.0",
94
+ "@fluid-internal/client-utils": "2.74.0-368706",
95
+ "@fluidframework/core-interfaces": "2.74.0-368706",
96
+ "@fluidframework/core-utils": "2.74.0-368706",
97
+ "@fluidframework/datastore-definitions": "2.74.0-368706",
98
+ "@fluidframework/driver-definitions": "2.74.0-368706",
99
+ "@fluidframework/merge-tree": "2.74.0-368706",
100
+ "@fluidframework/runtime-definitions": "2.74.0-368706",
101
+ "@fluidframework/runtime-utils": "2.74.0-368706",
102
+ "@fluidframework/shared-object-base": "2.74.0-368706",
103
+ "@fluidframework/telemetry-utils": "2.74.0-368706",
104
104
  "double-ended-queue": "^2.1.0-0",
105
105
  "uuid": "^11.1.0"
106
106
  },
107
107
  "devDependencies": {
108
108
  "@arethetypeswrong/cli": "^0.17.1",
109
109
  "@biomejs/biome": "~1.9.3",
110
- "@fluid-internal/mocha-test-setup": "~2.73.0",
111
- "@fluid-private/stochastic-test-utils": "~2.73.0",
112
- "@fluid-private/test-dds-utils": "~2.73.0",
110
+ "@fluid-internal/mocha-test-setup": "2.74.0-368706",
111
+ "@fluid-private/stochastic-test-utils": "2.74.0-368706",
112
+ "@fluid-private/test-dds-utils": "2.74.0-368706",
113
113
  "@fluid-tools/benchmark": "^0.51.0",
114
114
  "@fluid-tools/build-cli": "^0.60.0",
115
115
  "@fluidframework/build-common": "^2.0.3",
116
116
  "@fluidframework/build-tools": "^0.60.0",
117
- "@fluidframework/container-definitions": "~2.73.0",
118
- "@fluidframework/eslint-config-fluid": "~2.73.0",
119
- "@fluidframework/sequence-previous": "npm:@fluidframework/sequence@2.71.0",
120
- "@fluidframework/test-runtime-utils": "~2.73.0",
117
+ "@fluidframework/container-definitions": "2.74.0-368706",
118
+ "@fluidframework/eslint-config-fluid": "2.74.0-368706",
119
+ "@fluidframework/sequence-previous": "npm:@fluidframework/sequence@2.73.0",
120
+ "@fluidframework/test-runtime-utils": "2.74.0-368706",
121
121
  "@microsoft/api-extractor": "7.52.11",
122
122
  "@types/diff": "^3.5.1",
123
123
  "@types/double-ended-queue": "^2.1.0",
@@ -1122,7 +1122,7 @@ export class IntervalCollection
1122
1122
  previousInterval.start.refType = ReferenceType.Transient;
1123
1123
  previousInterval.end.refType = ReferenceType.Transient;
1124
1124
  this.emit("changeInterval", interval, previousInterval, local, op, slide);
1125
- this.emit("changed", interval, undefined, previousInterval ?? undefined, local, slide);
1125
+ this.emit("changed", interval, {}, previousInterval ?? undefined, local, slide);
1126
1126
  previousInterval.start.refType = startRefType;
1127
1127
  previousInterval.end.refType = endRefType;
1128
1128
  }
@@ -1431,7 +1431,7 @@ export class IntervalCollection
1431
1431
  }
1432
1432
  }
1433
1433
 
1434
- if (deltaProps !== undefined && Object.keys(deltaProps).length > 0) {
1434
+ if (isLatestInterval && deltaProps !== undefined && Object.keys(deltaProps).length > 0) {
1435
1435
  this.emit("propertyChanged", latestInterval, deltaProps, local, op);
1436
1436
  this.emit("changed", latestInterval, deltaProps, undefined, local, false);
1437
1437
  }
@@ -1482,17 +1482,18 @@ export class IntervalCollection
1482
1482
  const rebasedEndpoint = this.computeRebasedPositions(localOpMetadata, squash);
1483
1483
  const localInterval = this.getIntervalById(id);
1484
1484
 
1485
- // if the interval slid off the string, rebase the op to be a noop and delete the interval.
1485
+ // if the interval slides off the string, rebase the op to be a noop and delete the interval.
1486
1486
  if (rebasedEndpoint === "detached") {
1487
1487
  if (
1488
1488
  localInterval !== undefined &&
1489
1489
  (localInterval === interval || localOpMetadata.type === "add")
1490
1490
  ) {
1491
- this.localCollection?.removeExistingInterval(localInterval);
1491
+ // Use deleteExistingInterval (not removeExistingInterval) to ensure the deleteInterval
1492
+ // event is emitted when intervals slide off during rebasing.
1493
+ this.deleteExistingInterval({ interval: localInterval, local: true });
1492
1494
  }
1493
1495
  return undefined;
1494
1496
  }
1495
-
1496
1497
  const { start, end } = rebasedEndpoint;
1497
1498
  if (
1498
1499
  interval.start.getSegment() !== start.segment ||
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/sequence";
9
- export const pkgVersion = "2.73.0";
9
+ export const pkgVersion = "2.74.0-368706";