@fluid-experimental/tree 2.91.0 → 2.93.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-experimental/tree",
3
- "version": "2.91.0",
3
+ "version": "2.93.0",
4
4
  "description": "Distributed tree",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -27,18 +27,18 @@
27
27
  "main": "lib/index.js",
28
28
  "types": "lib/index.d.ts",
29
29
  "dependencies": {
30
- "@fluid-internal/client-utils": "~2.91.0",
31
- "@fluidframework/container-definitions": "~2.91.0",
32
- "@fluidframework/core-interfaces": "~2.91.0",
33
- "@fluidframework/core-utils": "~2.91.0",
34
- "@fluidframework/datastore-definitions": "~2.91.0",
35
- "@fluidframework/driver-definitions": "~2.91.0",
36
- "@fluidframework/id-compressor": "~2.91.0",
37
- "@fluidframework/runtime-definitions": "~2.91.0",
38
- "@fluidframework/runtime-utils": "~2.91.0",
39
- "@fluidframework/shared-object-base": "~2.91.0",
40
- "@fluidframework/telemetry-utils": "~2.91.0",
41
- "@fluidframework/tree": "~2.91.0",
30
+ "@fluid-internal/client-utils": "~2.93.0",
31
+ "@fluidframework/container-definitions": "~2.93.0",
32
+ "@fluidframework/core-interfaces": "~2.93.0",
33
+ "@fluidframework/core-utils": "~2.93.0",
34
+ "@fluidframework/datastore-definitions": "~2.93.0",
35
+ "@fluidframework/driver-definitions": "~2.93.0",
36
+ "@fluidframework/id-compressor": "~2.93.0",
37
+ "@fluidframework/runtime-definitions": "~2.93.0",
38
+ "@fluidframework/runtime-utils": "~2.93.0",
39
+ "@fluidframework/shared-object-base": "~2.93.0",
40
+ "@fluidframework/telemetry-utils": "~2.93.0",
41
+ "@fluidframework/tree": "~2.93.0",
42
42
  "@tylerbu/sorted-btree-es6": "^2.1.1",
43
43
  "buffer": "^6.0.3",
44
44
  "denque": "^1.5.1",
@@ -48,26 +48,26 @@
48
48
  "devDependencies": {
49
49
  "@arethetypeswrong/cli": "^0.18.2",
50
50
  "@biomejs/biome": "~2.4.5",
51
- "@fluid-internal/mocha-test-setup": "~2.91.0",
52
- "@fluid-private/stochastic-test-utils": "~2.91.0",
53
- "@fluid-private/test-drivers": "~2.91.0",
54
- "@fluid-tools/benchmark": "^0.52.0",
51
+ "@fluid-internal/mocha-test-setup": "~2.93.0",
52
+ "@fluid-private/stochastic-test-utils": "~2.93.0",
53
+ "@fluid-private/test-drivers": "~2.93.0",
54
+ "@fluid-tools/benchmark": "^0.55.0",
55
55
  "@fluidframework/build-common": "^2.0.3",
56
- "@fluidframework/build-tools": "^0.63.0",
57
- "@fluidframework/container-definitions": "~2.91.0",
58
- "@fluidframework/container-loader": "~2.91.0",
59
- "@fluidframework/container-runtime": "~2.91.0",
60
- "@fluidframework/eslint-config-fluid": "~2.91.0",
61
- "@fluidframework/runtime-utils": "~2.91.0",
62
- "@fluidframework/test-runtime-utils": "~2.91.0",
63
- "@fluidframework/test-utils": "~2.91.0",
64
- "@fluidframework/undo-redo": "~2.91.0",
65
- "@microsoft/api-extractor": "7.52.11",
56
+ "@fluidframework/build-tools": "^0.64.0",
57
+ "@fluidframework/container-definitions": "~2.93.0",
58
+ "@fluidframework/container-loader": "~2.93.0",
59
+ "@fluidframework/container-runtime": "~2.93.0",
60
+ "@fluidframework/eslint-config-fluid": "^9.0.0",
61
+ "@fluidframework/runtime-utils": "~2.93.0",
62
+ "@fluidframework/test-runtime-utils": "~2.93.0",
63
+ "@fluidframework/test-utils": "~2.93.0",
64
+ "@fluidframework/undo-redo": "~2.93.0",
65
+ "@microsoft/api-extractor": "7.58.1",
66
66
  "@types/chai": "^4.0.0",
67
67
  "@types/lru-cache": "^5.1.0",
68
68
  "@types/mocha": "^10.0.10",
69
69
  "c8": "^10.1.3",
70
- "chai": "^4.2.0",
70
+ "chai": "^4.5.0",
71
71
  "concurrently": "^9.2.1",
72
72
  "copyfiles": "^2.4.1",
73
73
  "cross-env": "^10.1.0",
@@ -85,6 +85,7 @@
85
85
  "disabled": true
86
86
  },
87
87
  "scripts": {
88
+ "bench": "cross-env FLUID_TEST_PERF_MODE=1 mocha",
88
89
  "build": "fluid-build . --task build",
89
90
  "build:compile": "fluid-build . --task compile",
90
91
  "build:docs": "api-extractor run --local",
@@ -107,10 +108,7 @@
107
108
  "lint": "fluid-build . --task lint",
108
109
  "lint:fix": "fluid-build . --task eslint:fix --task format",
109
110
  "pack:tests": "tar -cf ./experimental-tree.test-files.tar ./src/test ./dist/test ./lib/test",
110
- "perf": "cross-env FLUID_TEST_VERBOSE=1 mocha --perfMode --fgrep @Benchmark --fgrep @ExecutionTime --reporter @fluid-tools/benchmark/dist/MochaReporter.js --timeout 30000",
111
- "perf:measure": "npm run perf -- --fgrep @Measurement",
112
111
  "test": "npm run test:mocha",
113
- "test:benchmark:report": "mocha --perfMode --fgrep @Benchmark --fgrep @ExecutionTime --reporter @fluid-tools/benchmark/dist/MochaReporter.js --timeout 60000",
114
112
  "test:coverage": "c8 npm test",
115
113
  "test:mocha": "mocha",
116
114
  "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
package/src/SharedTree.ts CHANGED
@@ -545,7 +545,6 @@ export class SharedTree extends SharedObject<ISharedTreeEvents> implements NodeI
545
545
  public constructor(
546
546
  runtime: IFluidDataStoreRuntime,
547
547
  id: string,
548
- // eslint-disable-next-line @typescript-eslint/prefer-readonly -- false positive; modified in changeWriteFormat()
549
548
  private writeFormat: WriteFormat,
550
549
  options: SharedTreeOptions<typeof writeFormat> = {}
551
550
  ) {
@@ -155,7 +155,7 @@ export class MigrationShim extends EventEmitterWithErrorHandling<IMigrationEvent
155
155
  * {@inheritDoc @fluidframework/shared-object-base#SharedObject.closeWithError}
156
156
  */
157
157
  private closeWithError(error: ReturnType<typeof DataProcessingError.wrapIfUnrecognized>): void {
158
- // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions, @typescript-eslint/prefer-nullish-coalescing -- intentional behavior
158
+ // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing -- TODO: AB#58517 Code owners should verify if this code change is safe and make it if so or update this comment otherwise
159
159
  if (this.closeError === undefined) {
160
160
  this.closeError = error;
161
161
  }