@fluid-internal/mocha-test-setup 2.30.0 → 2.31.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 +58 -54
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/mocharc-common.cjs +5 -3
- package/package.json +4 -7
- package/src/packageVersion.ts +1 -1
- package/prettier.config.cjs +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# @fluid-internal/mocha-test-setup
|
|
2
2
|
|
|
3
|
+
## 2.31.0
|
|
4
|
+
|
|
5
|
+
Dependency updates only.
|
|
6
|
+
|
|
3
7
|
## 2.30.0
|
|
4
8
|
|
|
5
9
|
Dependency updates only.
|
|
@@ -68,32 +72,32 @@ Dependency updates only.
|
|
|
68
72
|
|
|
69
73
|
### Major Changes
|
|
70
74
|
|
|
71
|
-
-
|
|
75
|
+
- Packages now use package.json "exports" and require modern module resolution [97d68aa06b](https://github.com/microsoft/FluidFramework/commit/97d68aa06bd5c022ecb026655814aea222a062ae)
|
|
72
76
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
77
|
+
Fluid Framework packages have been updated to use the [package.json "exports"
|
|
78
|
+
field](https://nodejs.org/docs/latest-v18.x/api/packages.html#exports) to define explicit entry points for both
|
|
79
|
+
TypeScript types and implementation code.
|
|
76
80
|
|
|
77
|
-
|
|
81
|
+
This means that using Fluid Framework packages require the following TypeScript settings in tsconfig.json:
|
|
78
82
|
|
|
79
|
-
|
|
80
|
-
|
|
83
|
+
- `"moduleResolution": "Node16"` with `"module": "Node16"`
|
|
84
|
+
- `"moduleResolution": "Bundler"` with `"module": "ESNext"`
|
|
81
85
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
+
We recommend using Node16/Node16 unless absolutely necessary. That will produce transpiled JavaScript that is suitable
|
|
87
|
+
for use with modern versions of Node.js _and_ Bundlers.
|
|
88
|
+
[See the TypeScript documentation](https://www.typescriptlang.org/tsconfig#moduleResolution) for more information
|
|
89
|
+
regarding the module and moduleResolution options.
|
|
86
90
|
|
|
87
|
-
|
|
88
|
-
|
|
91
|
+
**Node10 moduleResolution is not supported; it does not support Fluid Framework's API structuring pattern that is used
|
|
92
|
+
to distinguish stable APIs from those that are in development.**
|
|
89
93
|
|
|
90
94
|
## 2.0.0-rc.2.0.0
|
|
91
95
|
|
|
92
96
|
### Minor Changes
|
|
93
97
|
|
|
94
|
-
-
|
|
98
|
+
- @fluidframework/mocha-test-setup moved to @fluid-internal/mocha-test-setup ([#19759](https://github.com/microsoft/FluidFramework/issues/19759)) [d530594684](https://github.com/microsoft/FluidFramework/commits/d530594684e074caa3c1899fdf332d3a3208969f)
|
|
95
99
|
|
|
96
|
-
|
|
100
|
+
The mocha-test-setup package is intended to aid in testing internal to the FluidFramework repo, and should not be used outside of the repo.
|
|
97
101
|
|
|
98
102
|
## 2.0.0-rc.1.0.0
|
|
99
103
|
|
|
@@ -107,17 +111,17 @@ Dependency updates only.
|
|
|
107
111
|
|
|
108
112
|
### Minor Changes
|
|
109
113
|
|
|
110
|
-
-
|
|
114
|
+
- azure-client: Deprecated FluidStatic Classes ([#18402](https://github.com/microsoft/FluidFramework/issues/18402)) [589ec39de5](https://github.com/microsoft/FluidFramework/commits/589ec39de52116c7f782319e6f6aa61bc5aa9964)
|
|
111
115
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
116
|
+
Several FluidStatic classes were unnecessarily exposed. They have been replaced with creation functions. This helps us
|
|
117
|
+
keep implementations decoupled from usage which is easier to maintain and extend. It has very minimal impact on the
|
|
118
|
+
public surface area of downstream packages. The deprecated classes are as follows:
|
|
115
119
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
- `AzureAudience` (use `IAzureAudience` instead)
|
|
121
|
+
- `TinyliciousAudience` (use `ITinyliciousAudience` instead)
|
|
122
|
+
- `DOProviderContainerRuntimeFactory`
|
|
123
|
+
- `FluidContainer`
|
|
124
|
+
- `ServiceAudience`
|
|
121
125
|
|
|
122
126
|
## 2.0.0-internal.7.3.0
|
|
123
127
|
|
|
@@ -135,9 +139,9 @@ Dependency updates only.
|
|
|
135
139
|
|
|
136
140
|
### Major Changes
|
|
137
141
|
|
|
138
|
-
-
|
|
142
|
+
- Minimum TypeScript version now 5.1.6 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
|
|
139
143
|
|
|
140
|
-
|
|
144
|
+
The minimum supported TypeScript version for Fluid 2.0 clients is now 5.1.6.
|
|
141
145
|
|
|
142
146
|
## 2.0.0-internal.6.4.0
|
|
143
147
|
|
|
@@ -151,32 +155,32 @@ Dependency updates only.
|
|
|
151
155
|
|
|
152
156
|
### Minor Changes
|
|
153
157
|
|
|
154
|
-
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
158
|
+
- Remove use of @fluidframework/common-definitions ([#16638](https://github.com/microsoft/FluidFramework/issues/16638)) [a8c81509c9](https://github.com/microsoft/FluidFramework/commits/a8c81509c9bf09cfb2092ebcf7265205f9eb6dbf)
|
|
159
|
+
|
|
160
|
+
The **@fluidframework/common-definitions** package is being deprecated, so the following interfaces and types are now
|
|
161
|
+
imported from the **@fluidframework/core-interfaces** package:
|
|
162
|
+
|
|
163
|
+
- interface IDisposable
|
|
164
|
+
- interface IErrorEvent
|
|
165
|
+
- interface IErrorEvent
|
|
166
|
+
- interface IEvent
|
|
167
|
+
- interface IEventProvider
|
|
168
|
+
- interface ILoggingError
|
|
169
|
+
- interface ITaggedTelemetryPropertyType
|
|
170
|
+
- interface ITelemetryBaseEvent
|
|
171
|
+
- interface ITelemetryBaseLogger
|
|
172
|
+
- interface ITelemetryErrorEvent
|
|
173
|
+
- interface ITelemetryGenericEvent
|
|
174
|
+
- interface ITelemetryLogger
|
|
175
|
+
- interface ITelemetryPerformanceEvent
|
|
176
|
+
- interface ITelemetryProperties
|
|
177
|
+
- type ExtendEventProvider
|
|
178
|
+
- type IEventThisPlaceHolder
|
|
179
|
+
- type IEventTransformer
|
|
180
|
+
- type ReplaceIEventThisPlaceHolder
|
|
181
|
+
- type ReplaceIEventThisPlaceHolder
|
|
182
|
+
- type TelemetryEventCategory
|
|
183
|
+
- type TelemetryEventPropertyType
|
|
180
184
|
|
|
181
185
|
## 2.0.0-internal.6.1.0
|
|
182
186
|
|
|
@@ -186,9 +190,9 @@ Dependency updates only.
|
|
|
186
190
|
|
|
187
191
|
### Major Changes
|
|
188
192
|
|
|
189
|
-
-
|
|
193
|
+
- Upgraded typescript transpilation target to ES2020 [8abce8cdb4](https://github.com/microsoft/FluidFramework/commits/8abce8cdb4e2832fb6405fb44e393bef03d5648a)
|
|
190
194
|
|
|
191
|
-
|
|
195
|
+
Upgraded typescript transpilation target to ES2020. This is done in order to decrease the bundle sizes of Fluid Framework packages. This has provided size improvements across the board for ex. Loader, Driver, Runtime etc. Reduced bundle sizes helps to load lesser code in apps and hence also helps to improve the perf.If any app wants to target any older versions of browsers with which this target version is not compatible, then they can use packages like babel to transpile to a older target.
|
|
192
196
|
|
|
193
197
|
## 2.0.0-internal.5.4.0
|
|
194
198
|
|
package/dist/packageVersion.d.ts
CHANGED
|
@@ -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 = "@fluid-internal/mocha-test-setup";
|
|
8
|
-
export declare const pkgVersion = "2.
|
|
8
|
+
export declare const pkgVersion = "2.31.0";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
package/dist/packageVersion.js
CHANGED
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.pkgVersion = exports.pkgName = void 0;
|
|
10
10
|
exports.pkgName = "@fluid-internal/mocha-test-setup";
|
|
11
|
-
exports.pkgVersion = "2.
|
|
11
|
+
exports.pkgVersion = "2.31.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,kCAAkC,CAAC;AAC7C,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 = \"@fluid-internal/mocha-test-setup\";\nexport const pkgVersion = \"2.
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,kCAAkC,CAAC;AAC7C,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 = \"@fluid-internal/mocha-test-setup\";\nexport const pkgVersion = \"2.31.0\";\n"]}
|
package/lib/packageVersion.d.ts
CHANGED
|
@@ -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 = "@fluid-internal/mocha-test-setup";
|
|
8
|
-
export declare const pkgVersion = "2.
|
|
8
|
+
export declare const pkgVersion = "2.31.0";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
package/lib/packageVersion.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,kCAAkC,CAAC;AAC1D,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 = \"@fluid-internal/mocha-test-setup\";\nexport const pkgVersion = \"2.
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,kCAAkC,CAAC;AAC1D,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 = \"@fluid-internal/mocha-test-setup\";\nexport const pkgVersion = \"2.31.0\";\n"]}
|
package/lib/tsdoc-metadata.json
CHANGED
package/mocharc-common.cjs
CHANGED
|
@@ -69,9 +69,11 @@ function getFluidTestMochaConfig(packageDir, additionalRequiredModules, testRepo
|
|
|
69
69
|
config["reporter"] = `mocha-multi-reporters`;
|
|
70
70
|
// See https://www.npmjs.com/package/mocha-multi-reporters#cmroutput-option
|
|
71
71
|
const outputFilePrefix = testReportPrefix !== undefined ? `${testReportPrefix}-` : "";
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
if (!process.env.SILENT_TEST_OUTPUT) {
|
|
73
|
+
console.log(
|
|
74
|
+
`Writing test results relative to package to nyc/${outputFilePrefix}junit-report.xml`,
|
|
75
|
+
);
|
|
76
|
+
}
|
|
75
77
|
const suiteName =
|
|
76
78
|
testReportPrefix !== undefined
|
|
77
79
|
? `${packageJson.name} - ${testReportPrefix}`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-internal/mocha-test-setup",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.31.0",
|
|
4
4
|
"description": "Utilities for Fluid tests",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"main": "dist/index.js",
|
|
31
31
|
"types": "dist/index.d.ts",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@fluid-internal/test-driver-definitions": "~2.
|
|
34
|
-
"@fluidframework/core-interfaces": "~2.
|
|
33
|
+
"@fluid-internal/test-driver-definitions": "~2.31.0",
|
|
34
|
+
"@fluidframework/core-interfaces": "~2.31.0",
|
|
35
35
|
"mocha": "^10.8.2",
|
|
36
36
|
"source-map-support": "^0.5.21"
|
|
37
37
|
},
|
|
@@ -42,13 +42,12 @@
|
|
|
42
42
|
"@fluidframework/build-common": "^2.0.3",
|
|
43
43
|
"@fluidframework/build-tools": "^0.54.0",
|
|
44
44
|
"@fluidframework/eslint-config-fluid": "^5.7.3",
|
|
45
|
-
"@microsoft/api-extractor": "7.
|
|
45
|
+
"@microsoft/api-extractor": "7.50.1",
|
|
46
46
|
"@types/mocha": "^10.0.10",
|
|
47
47
|
"@types/node": "^18.19.0",
|
|
48
48
|
"concurrently": "^8.2.1",
|
|
49
49
|
"copyfiles": "^2.4.1",
|
|
50
50
|
"eslint": "~8.55.0",
|
|
51
|
-
"prettier": "~3.0.3",
|
|
52
51
|
"rimraf": "^4.4.0",
|
|
53
52
|
"typescript": "~5.4.5"
|
|
54
53
|
},
|
|
@@ -72,14 +71,12 @@
|
|
|
72
71
|
"check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json",
|
|
73
72
|
"check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json",
|
|
74
73
|
"check:format": "npm run check:biome",
|
|
75
|
-
"check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
|
|
76
74
|
"ci:build:docs": "api-extractor run",
|
|
77
75
|
"clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp",
|
|
78
76
|
"eslint": "eslint --format stylish src",
|
|
79
77
|
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
|
|
80
78
|
"format": "npm run format:biome",
|
|
81
79
|
"format:biome": "biome check . --write",
|
|
82
|
-
"format:prettier": "prettier --write . --cache --ignore-path ../../../.prettierignore",
|
|
83
80
|
"lint": "fluid-build . --task lint",
|
|
84
81
|
"lint:fix": "fluid-build . --task eslint:fix --task format",
|
|
85
82
|
"tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist"
|
package/src/packageVersion.ts
CHANGED