@fluid-internal/mocha-test-setup 2.23.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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @fluid-internal/mocha-test-setup
2
2
 
3
+ ## 2.31.0
4
+
5
+ Dependency updates only.
6
+
7
+ ## 2.30.0
8
+
9
+ Dependency updates only.
10
+
3
11
  ## 2.23.0
4
12
 
5
13
  Dependency updates only.
@@ -64,32 +72,32 @@ Dependency updates only.
64
72
 
65
73
  ### Major Changes
66
74
 
67
- - Packages now use package.json "exports" and require modern module resolution [97d68aa06b](https://github.com/microsoft/FluidFramework/commit/97d68aa06bd5c022ecb026655814aea222a062ae)
75
+ - Packages now use package.json "exports" and require modern module resolution [97d68aa06b](https://github.com/microsoft/FluidFramework/commit/97d68aa06bd5c022ecb026655814aea222a062ae)
68
76
 
69
- Fluid Framework packages have been updated to use the [package.json "exports"
70
- field](https://nodejs.org/docs/latest-v18.x/api/packages.html#exports) to define explicit entry points for both
71
- TypeScript types and implementation code.
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.
72
80
 
73
- This means that using Fluid Framework packages require the following TypeScript settings in tsconfig.json:
81
+ This means that using Fluid Framework packages require the following TypeScript settings in tsconfig.json:
74
82
 
75
- - `"moduleResolution": "Node16"` with `"module": "Node16"`
76
- - `"moduleResolution": "Bundler"` with `"module": "ESNext"`
83
+ - `"moduleResolution": "Node16"` with `"module": "Node16"`
84
+ - `"moduleResolution": "Bundler"` with `"module": "ESNext"`
77
85
 
78
- We recommend using Node16/Node16 unless absolutely necessary. That will produce transpiled JavaScript that is suitable
79
- for use with modern versions of Node.js _and_ Bundlers.
80
- [See the TypeScript documentation](https://www.typescriptlang.org/tsconfig#moduleResolution) for more information
81
- regarding the module and moduleResolution options.
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.
82
90
 
83
- **Node10 moduleResolution is not supported; it does not support Fluid Framework's API structuring pattern that is used
84
- to distinguish stable APIs from those that are in development.**
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.**
85
93
 
86
94
  ## 2.0.0-rc.2.0.0
87
95
 
88
96
  ### Minor Changes
89
97
 
90
- - @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)
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)
91
99
 
92
- 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.
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.
93
101
 
94
102
  ## 2.0.0-rc.1.0.0
95
103
 
@@ -103,17 +111,17 @@ Dependency updates only.
103
111
 
104
112
  ### Minor Changes
105
113
 
106
- - azure-client: Deprecated FluidStatic Classes ([#18402](https://github.com/microsoft/FluidFramework/issues/18402)) [589ec39de5](https://github.com/microsoft/FluidFramework/commits/589ec39de52116c7f782319e6f6aa61bc5aa9964)
114
+ - azure-client: Deprecated FluidStatic Classes ([#18402](https://github.com/microsoft/FluidFramework/issues/18402)) [589ec39de5](https://github.com/microsoft/FluidFramework/commits/589ec39de52116c7f782319e6f6aa61bc5aa9964)
107
115
 
108
- Several FluidStatic classes were unnecessarily exposed. They have been replaced with creation functions. This helps us
109
- keep implementations decoupled from usage which is easier to maintain and extend. It has very minimal impact on the
110
- public surface area of downstream packages. The deprecated classes are as follows:
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:
111
119
 
112
- - `AzureAudience` (use `IAzureAudience` instead)
113
- - `TinyliciousAudience` (use `ITinyliciousAudience` instead)
114
- - `DOProviderContainerRuntimeFactory`
115
- - `FluidContainer`
116
- - `ServiceAudience`
120
+ - `AzureAudience` (use `IAzureAudience` instead)
121
+ - `TinyliciousAudience` (use `ITinyliciousAudience` instead)
122
+ - `DOProviderContainerRuntimeFactory`
123
+ - `FluidContainer`
124
+ - `ServiceAudience`
117
125
 
118
126
  ## 2.0.0-internal.7.3.0
119
127
 
@@ -131,9 +139,9 @@ Dependency updates only.
131
139
 
132
140
  ### Major Changes
133
141
 
134
- - Minimum TypeScript version now 5.1.6 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
142
+ - Minimum TypeScript version now 5.1.6 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
135
143
 
136
- The minimum supported TypeScript version for Fluid 2.0 clients is now 5.1.6.
144
+ The minimum supported TypeScript version for Fluid 2.0 clients is now 5.1.6.
137
145
 
138
146
  ## 2.0.0-internal.6.4.0
139
147
 
@@ -147,32 +155,32 @@ Dependency updates only.
147
155
 
148
156
  ### Minor Changes
149
157
 
150
- - Remove use of @fluidframework/common-definitions ([#16638](https://github.com/microsoft/FluidFramework/issues/16638)) [a8c81509c9](https://github.com/microsoft/FluidFramework/commits/a8c81509c9bf09cfb2092ebcf7265205f9eb6dbf)
151
-
152
- The **@fluidframework/common-definitions** package is being deprecated, so the following interfaces and types are now
153
- imported from the **@fluidframework/core-interfaces** package:
154
-
155
- - interface IDisposable
156
- - interface IErrorEvent
157
- - interface IErrorEvent
158
- - interface IEvent
159
- - interface IEventProvider
160
- - interface ILoggingError
161
- - interface ITaggedTelemetryPropertyType
162
- - interface ITelemetryBaseEvent
163
- - interface ITelemetryBaseLogger
164
- - interface ITelemetryErrorEvent
165
- - interface ITelemetryGenericEvent
166
- - interface ITelemetryLogger
167
- - interface ITelemetryPerformanceEvent
168
- - interface ITelemetryProperties
169
- - type ExtendEventProvider
170
- - type IEventThisPlaceHolder
171
- - type IEventTransformer
172
- - type ReplaceIEventThisPlaceHolder
173
- - type ReplaceIEventThisPlaceHolder
174
- - type TelemetryEventCategory
175
- - type TelemetryEventPropertyType
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
176
184
 
177
185
  ## 2.0.0-internal.6.1.0
178
186
 
@@ -182,9 +190,9 @@ Dependency updates only.
182
190
 
183
191
  ### Major Changes
184
192
 
185
- - Upgraded typescript transpilation target to ES2020 [8abce8cdb4](https://github.com/microsoft/FluidFramework/commits/8abce8cdb4e2832fb6405fb44e393bef03d5648a)
193
+ - Upgraded typescript transpilation target to ES2020 [8abce8cdb4](https://github.com/microsoft/FluidFramework/commits/8abce8cdb4e2832fb6405fb44e393bef03d5648a)
186
194
 
187
- 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.
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.
188
196
 
189
197
  ## 2.0.0-internal.5.4.0
190
198
 
@@ -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.23.0";
8
+ export declare const pkgVersion = "2.31.0";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -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.23.0";
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.23.0\";\n"]}
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"]}
@@ -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.23.0";
8
+ export declare const pkgVersion = "2.31.0";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export const pkgName = "@fluid-internal/mocha-test-setup";
8
- export const pkgVersion = "2.23.0";
8
+ export const pkgVersion = "2.31.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,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.23.0\";\n"]}
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"]}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.47.8"
8
+ "packageVersion": "7.50.1"
9
9
  }
10
10
  ]
11
11
  }
@@ -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
- console.log(
73
- `Writing test results relative to package to nyc/${outputFilePrefix}junit-report.xml`,
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.23.0",
3
+ "version": "2.31.0",
4
4
  "description": "Utilities for Fluid tests",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -30,9 +30,9 @@
30
30
  "main": "dist/index.js",
31
31
  "types": "dist/index.d.ts",
32
32
  "dependencies": {
33
- "@fluid-internal/test-driver-definitions": "~2.23.0",
34
- "@fluidframework/core-interfaces": "~2.23.0",
35
- "mocha": "^10.2.0",
33
+ "@fluid-internal/test-driver-definitions": "~2.31.0",
34
+ "@fluidframework/core-interfaces": "~2.31.0",
35
+ "mocha": "^10.8.2",
36
36
  "source-map-support": "^0.5.21"
37
37
  },
38
38
  "devDependencies": {
@@ -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.47.8",
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"
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluid-internal/mocha-test-setup";
9
- export const pkgVersion = "2.23.0";
9
+ export const pkgVersion = "2.31.0";
@@ -1,8 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
-
6
- module.exports = {
7
- ...require("@fluidframework/build-common/prettier.config.cjs"),
8
- };