@fluidframework/sequence 2.50.0 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/sequence",
3
- "version": "2.50.0",
3
+ "version": "2.51.0-347100",
4
4
  "description": "Distributed sequence",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -91,39 +91,38 @@
91
91
  "temp-directory": "nyc/.nyc_output"
92
92
  },
93
93
  "dependencies": {
94
- "@fluid-internal/client-utils": "~2.50.0",
95
- "@fluidframework/core-interfaces": "~2.50.0",
96
- "@fluidframework/core-utils": "~2.50.0",
97
- "@fluidframework/datastore-definitions": "~2.50.0",
98
- "@fluidframework/driver-definitions": "~2.50.0",
99
- "@fluidframework/merge-tree": "~2.50.0",
100
- "@fluidframework/runtime-definitions": "~2.50.0",
101
- "@fluidframework/runtime-utils": "~2.50.0",
102
- "@fluidframework/shared-object-base": "~2.50.0",
103
- "@fluidframework/telemetry-utils": "~2.50.0",
94
+ "@fluid-internal/client-utils": "2.51.0-347100",
95
+ "@fluidframework/core-interfaces": "2.51.0-347100",
96
+ "@fluidframework/core-utils": "2.51.0-347100",
97
+ "@fluidframework/datastore-definitions": "2.51.0-347100",
98
+ "@fluidframework/driver-definitions": "2.51.0-347100",
99
+ "@fluidframework/merge-tree": "2.51.0-347100",
100
+ "@fluidframework/runtime-definitions": "2.51.0-347100",
101
+ "@fluidframework/runtime-utils": "2.51.0-347100",
102
+ "@fluidframework/shared-object-base": "2.51.0-347100",
103
+ "@fluidframework/telemetry-utils": "2.51.0-347100",
104
104
  "double-ended-queue": "^2.1.0-0",
105
- "uuid": "^9.0.0"
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.50.0",
111
- "@fluid-private/stochastic-test-utils": "~2.50.0",
112
- "@fluid-private/test-dds-utils": "~2.50.0",
110
+ "@fluid-internal/mocha-test-setup": "2.51.0-347100",
111
+ "@fluid-private/stochastic-test-utils": "2.51.0-347100",
112
+ "@fluid-private/test-dds-utils": "2.51.0-347100",
113
113
  "@fluid-tools/benchmark": "^0.51.0",
114
114
  "@fluid-tools/build-cli": "^0.56.0",
115
115
  "@fluidframework/build-common": "^2.0.3",
116
116
  "@fluidframework/build-tools": "^0.56.0",
117
- "@fluidframework/container-definitions": "~2.50.0",
117
+ "@fluidframework/container-definitions": "2.51.0-347100",
118
118
  "@fluidframework/eslint-config-fluid": "^5.7.4",
119
- "@fluidframework/sequence-previous": "npm:@fluidframework/sequence@2.43.0",
120
- "@fluidframework/test-runtime-utils": "~2.50.0",
119
+ "@fluidframework/sequence-previous": "npm:@fluidframework/sequence@2.50.0",
120
+ "@fluidframework/test-runtime-utils": "2.51.0-347100",
121
121
  "@microsoft/api-extractor": "7.52.8",
122
122
  "@types/diff": "^3.5.1",
123
123
  "@types/double-ended-queue": "^2.1.0",
124
124
  "@types/mocha": "^10.0.10",
125
125
  "@types/node": "^18.19.0",
126
- "@types/uuid": "^9.0.2",
127
126
  "c8": "^8.0.1",
128
127
  "concurrently": "^8.2.1",
129
128
  "copyfiles": "^2.4.1",
@@ -832,13 +832,14 @@ export class IntervalCollection
832
832
  ? interval.changeProperties(properties, undefined, true)
833
833
  : undefined;
834
834
  if (localOpMetadata.endpointChangesNode !== undefined) {
835
- this.localCollection?.removeExistingInterval(interval);
836
- assert(previous !== undefined, 0xbd2 /* must have existed to change */);
837
- this.localCollection?.add(previous);
838
- this.emitChange(previous, interval, true, true);
839
- }
840
- if (previous !== interval) {
841
- interval.dispose();
835
+ if (previous !== undefined) {
836
+ this.localCollection?.removeExistingInterval(interval);
837
+ this.localCollection?.add(previous);
838
+ this.emitChange(previous, interval, true, true);
839
+ }
840
+ if (previous !== interval) {
841
+ interval.dispose();
842
+ }
842
843
  }
843
844
  if (changeProperties) {
844
845
  this.emit("propertyChanged", previous, deltaProps, true, undefined);
@@ -846,9 +847,11 @@ export class IntervalCollection
846
847
  break;
847
848
  }
848
849
  case "delete": {
849
- assert(previous !== undefined, 0xbd3 /* must have existed to delete */);
850
- this.localCollection?.add(previous);
851
- this.emit("addInterval", previous, true, undefined);
850
+ // a remote could delete the same interval, so it may not exist to re-add
851
+ if (previous !== undefined) {
852
+ this.localCollection?.add(previous);
853
+ this.emit("addInterval", previous, true, undefined);
854
+ }
852
855
  break;
853
856
  }
854
857
  default:
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/sequence";
9
- export const pkgVersion = "2.50.0";
9
+ export const pkgVersion = "2.51.0-347100";