@fluidframework/test-utils 2.92.0 → 2.100.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/CHANGELOG.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # @fluidframework/test-utils
2
2
 
3
+ ## 2.100.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Node 22 is now the minimum supported Node.js version ([#27116](https://github.com/microsoft/FluidFramework/pull/27116)) [e8214d29663](https://github.com/microsoft/FluidFramework/commit/e8214d29663f5ee98d737daed82506a25d8de8d0)
8
+
9
+ All Fluid Framework client packages now require Node.js 22 or later. This aligns with the standing Node upgrade policy as Node 20 reaches end-of-life on April 30, 2026.
10
+
11
+ ## 2.93.0
12
+
13
+ ### Minor Changes
14
+
15
+ - minVersionForCollab is now non-optional ([#25331](https://github.com/microsoft/FluidFramework/pull/25331)) [9a0d0272df](https://github.com/microsoft/FluidFramework/commit/9a0d0272df6ae1a521cff00292dd159ea3b5e270)
16
+
17
+ This change is a follow-up for [pull request 25130](https://github.com/microsoft/FluidFramework/pull/25130)
18
+ which was released as part of [2.61.0](https://github.com/microsoft/FluidFramework/releases/tag/client_v2.61.0).
19
+
20
+ The `minVersionForCollab` property has been made non-optional in the following `@beta` `@legacy` interfaces in the Runtime layer:
21
+ - `IFluidParentContext.minVersionForCollab` in `@fluidframework/runtime-definitions`.
22
+ - `IFluidDataStoreContext.minVersionForCollab` in `@fluidframework/runtime-definitions`.
23
+ - `IFluidDataStoreContextDetached.minVersionForCollab` in `@fluidframework/runtime-definitions`.
24
+
25
+ Consumers of Fluid aren't expected to implement these interfaces directly, so no impact is expected.
26
+
27
+ Additionally the following properties now always return a value, rather than possibly returning `undefined`:
28
+ - `FluidDataStoreRuntime.minVersionForCollab` in `@fluidframework/datastore`.
29
+ Note that API Extractor shows this as a breaking change since FluidDataStoreRuntime is beta + legacy and non-sealed.
30
+ However, FluidDataStoreRuntime is not intended to be extended directly outside of a known legacy use-case.
31
+ - `IDataObjectProps.context.minVersionForCollab` in `@fluidframework/aqueduct`.
32
+ - `ITestFluidObject.context.minVersionForCollab` in `@fluidframework/test-utils`
33
+ - `IProvideTestFluidObject.ITestFluidObject.context.minVersionForCollab` in `@fluidframework/test-utils`
34
+
3
35
  ## 2.92.0
4
36
 
5
37
  Dependency updates only.
package/README.md CHANGED
@@ -237,7 +237,7 @@ When making such a request please include if the configuration already works (an
237
237
 
238
238
  ### Supported Runtimes
239
239
 
240
- - NodeJs ^20.10.0 except that we will drop support for it [when NodeJs 20 loses its upstream support on 2026-04-30](https://github.com/nodejs/release#release-schedule), and will support a newer LTS version of NodeJS (22) at least 1 year before 20 is end-of-life. This same policy applies to NodeJS 22 when it is end of life (2027-04-30).
240
+ - NodeJs ^22.22.2 except that we will drop support for it [when NodeJs 22 loses its upstream support on 2027-04-30](https://github.com/nodejs/release#release-schedule), and will support a newer LTS version of NodeJS at least 1 year before 22 is end-of-life.
241
241
  - Running Fluid in a Node.js environment with the `--no-experimental-fetch` flag is not supported.
242
242
  - Modern browsers supporting the es2022 standard library: in response to asks we can add explicit support for using babel to polyfill to target specific standards or runtimes (meaning we can avoid/remove use of things that don't polyfill robustly, but otherwise target modern standards).
243
243
 
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluidframework/test-utils";
8
- export declare const pkgVersion = "2.92.0";
8
+ export declare const pkgVersion = "2.100.0";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,+BAA+B,CAAC;AACpD,eAAO,MAAM,UAAU,WAAW,CAAC"}
1
+ {"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,+BAA+B,CAAC;AACpD,eAAO,MAAM,UAAU,YAAY,CAAC"}
@@ -8,5 +8,5 @@
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.pkgVersion = exports.pkgName = void 0;
10
10
  exports.pkgName = "@fluidframework/test-utils";
11
- exports.pkgVersion = "2.92.0";
11
+ exports.pkgVersion = "2.100.0";
12
12
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,4BAA4B,CAAC;AACvC,QAAA,UAAU,GAAG,QAAQ,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/test-utils\";\nexport const pkgVersion = \"2.92.0\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,4BAA4B,CAAC;AACvC,QAAA,UAAU,GAAG,SAAS,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/test-utils\";\nexport const pkgVersion = \"2.100.0\";\n"]}
package/eslint.config.mts CHANGED
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  import type { Linter } from "eslint";
7
- import { recommended } from "../../../common/build/eslint-config-fluid/flat.mts";
7
+ import { recommended } from "@fluidframework/eslint-config-fluid/flat.mts";
8
8
 
9
9
  const config: Linter.Config[] = [
10
10
  ...recommended,
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluidframework/test-utils";
8
- export declare const pkgVersion = "2.92.0";
8
+ export declare const pkgVersion = "2.100.0";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,+BAA+B,CAAC;AACpD,eAAO,MAAM,UAAU,WAAW,CAAC"}
1
+ {"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,+BAA+B,CAAC;AACpD,eAAO,MAAM,UAAU,YAAY,CAAC"}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export const pkgName = "@fluidframework/test-utils";
8
- export const pkgVersion = "2.92.0";
8
+ export const pkgVersion = "2.100.0";
9
9
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,4BAA4B,CAAC;AACpD,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/test-utils\";\nexport const pkgVersion = \"2.92.0\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,4BAA4B,CAAC;AACpD,MAAM,CAAC,MAAM,UAAU,GAAG,SAAS,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/test-utils\";\nexport const pkgVersion = \"2.100.0\";\n"]}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.52.11"
8
+ "packageVersion": "7.58.1"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/test-utils",
3
- "version": "2.92.0",
3
+ "version": "2.100.0",
4
4
  "description": "Utilities for Fluid tests",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -67,26 +67,26 @@
67
67
  "temp-directory": "nyc/.nyc_output"
68
68
  },
69
69
  "dependencies": {
70
- "@fluid-internal/test-driver-definitions": "~2.92.0",
71
- "@fluidframework/container-definitions": "~2.92.0",
72
- "@fluidframework/container-loader": "~2.92.0",
73
- "@fluidframework/container-runtime": "~2.92.0",
74
- "@fluidframework/container-runtime-definitions": "~2.92.0",
75
- "@fluidframework/core-interfaces": "~2.92.0",
76
- "@fluidframework/core-utils": "~2.92.0",
77
- "@fluidframework/datastore": "~2.92.0",
78
- "@fluidframework/datastore-definitions": "~2.92.0",
79
- "@fluidframework/driver-definitions": "~2.92.0",
80
- "@fluidframework/driver-utils": "~2.92.0",
81
- "@fluidframework/local-driver": "~2.92.0",
82
- "@fluidframework/map": "~2.92.0",
83
- "@fluidframework/odsp-driver": "~2.92.0",
84
- "@fluidframework/request-handler": "~2.92.0",
85
- "@fluidframework/routerlicious-driver": "~2.92.0",
86
- "@fluidframework/runtime-definitions": "~2.92.0",
87
- "@fluidframework/runtime-utils": "~2.92.0",
88
- "@fluidframework/shared-object-base": "~2.92.0",
89
- "@fluidframework/telemetry-utils": "~2.92.0",
70
+ "@fluid-internal/test-driver-definitions": "~2.100.0",
71
+ "@fluidframework/container-definitions": "~2.100.0",
72
+ "@fluidframework/container-loader": "~2.100.0",
73
+ "@fluidframework/container-runtime": "~2.100.0",
74
+ "@fluidframework/container-runtime-definitions": "~2.100.0",
75
+ "@fluidframework/core-interfaces": "~2.100.0",
76
+ "@fluidframework/core-utils": "~2.100.0",
77
+ "@fluidframework/datastore": "~2.100.0",
78
+ "@fluidframework/datastore-definitions": "~2.100.0",
79
+ "@fluidframework/driver-definitions": "~2.100.0",
80
+ "@fluidframework/driver-utils": "~2.100.0",
81
+ "@fluidframework/local-driver": "~2.100.0",
82
+ "@fluidframework/map": "~2.100.0",
83
+ "@fluidframework/odsp-driver": "~2.100.0",
84
+ "@fluidframework/request-handler": "~2.100.0",
85
+ "@fluidframework/routerlicious-driver": "~2.100.0",
86
+ "@fluidframework/runtime-definitions": "~2.100.0",
87
+ "@fluidframework/runtime-utils": "~2.100.0",
88
+ "@fluidframework/shared-object-base": "~2.100.0",
89
+ "@fluidframework/telemetry-utils": "~2.100.0",
90
90
  "best-random": "^1.0.0",
91
91
  "debug": "^4.3.4",
92
92
  "uuid": "^11.1.0"
@@ -94,17 +94,17 @@
94
94
  "devDependencies": {
95
95
  "@arethetypeswrong/cli": "^0.18.2",
96
96
  "@biomejs/biome": "~2.4.5",
97
- "@fluid-internal/mocha-test-setup": "~2.92.0",
98
- "@fluid-tools/build-cli": "^0.64.0",
97
+ "@fluid-internal/mocha-test-setup": "~2.100.0",
98
+ "@fluid-tools/build-cli": "^0.65.0",
99
99
  "@fluidframework/build-common": "^2.0.3",
100
- "@fluidframework/build-tools": "^0.64.0",
100
+ "@fluidframework/build-tools": "^0.65.0",
101
101
  "@fluidframework/eslint-config-fluid": "^9.0.0",
102
- "@fluidframework/test-utils-previous": "npm:@fluidframework/test-utils@2.91.0",
103
- "@microsoft/api-extractor": "7.52.11",
102
+ "@fluidframework/test-utils-previous": "npm:@fluidframework/test-utils@2.92.0",
103
+ "@microsoft/api-extractor": "7.58.1",
104
104
  "@types/debug": "^4.1.5",
105
105
  "@types/diff": "^3.5.1",
106
106
  "@types/mocha": "^10.0.10",
107
- "@types/node": "~20.19.30",
107
+ "@types/node": "~22.19.17",
108
108
  "c8": "^10.1.3",
109
109
  "concurrently": "^9.2.1",
110
110
  "copyfiles": "^2.4.1",
@@ -118,7 +118,14 @@
118
118
  "typescript": "~5.4.5"
119
119
  },
120
120
  "typeValidation": {
121
- "broken": {},
121
+ "broken": {
122
+ "Interface_IProvideTestFluidObject": {
123
+ "forwardCompat": false
124
+ },
125
+ "Interface_ITestFluidObject": {
126
+ "forwardCompat": false
127
+ }
128
+ },
122
129
  "entrypoint": "legacy"
123
130
  },
124
131
  "scripts": {
@@ -163,7 +170,6 @@
163
170
  "test:mocha:esm": "mocha",
164
171
  "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
165
172
  "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist",
166
- "typetests:gen": "flub generate typetests --dir . -v",
167
- "typetests:prepare": "flub typetests --dir . --reset --previous --normalize"
173
+ "typetests:gen": "flub generate typetests --dir . -v"
168
174
  }
169
175
  }
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/test-utils";
9
- export const pkgVersion = "2.92.0";
9
+ export const pkgVersion = "2.100.0";