@fluidframework/container-loader 2.91.0 → 2.92.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 +4 -0
- package/dist/container.d.ts.map +1 -1
- package/dist/container.js +7 -2
- package/dist/container.js.map +1 -1
- package/dist/legacy.d.ts +1 -1
- package/dist/legacyAlpha.d.ts +1 -1
- package/dist/loaderLayerCompatState.d.ts +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/public.d.ts +1 -1
- package/internal.d.ts +1 -1
- package/legacy/alpha.d.ts +1 -1
- package/legacy.d.ts +1 -1
- package/lib/container.d.ts.map +1 -1
- package/lib/container.js +7 -2
- package/lib/container.js.map +1 -1
- package/lib/legacy.d.ts +1 -1
- package/lib/legacyAlpha.d.ts +1 -1
- package/lib/loaderLayerCompatState.d.ts +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/public.d.ts +1 -1
- package/package.json +17 -17
- package/src/container.ts +10 -1
- package/src/packageVersion.ts +1 -1
package/lib/legacy.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
-
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
|
|
8
|
+
* Generated by "flub generate entrypoints --outFileLegacyBeta legacy --outFileLegacyAlpha legacyAlpha --outDir ./lib --node10TypeCompat" in @fluid-tools/build-cli.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
export {
|
package/lib/legacyAlpha.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
-
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
|
|
8
|
+
* Generated by "flub generate entrypoints --outFileLegacyBeta legacy --outFileLegacyAlpha legacyAlpha --outDir ./lib --node10TypeCompat" in @fluid-tools/build-cli.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
export {
|
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 = "@fluidframework/container-loader";
|
|
8
|
-
export declare const pkgVersion = "2.
|
|
8
|
+
export declare const pkgVersion = "2.92.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 = \"@fluidframework/container-loader\";\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 = \"@fluidframework/container-loader\";\nexport const pkgVersion = \"2.92.0\";\n"]}
|
package/lib/public.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
-
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
|
|
8
|
+
* Generated by "flub generate entrypoints --outFileLegacyBeta legacy --outFileLegacyAlpha legacyAlpha --outDir ./lib --node10TypeCompat" in @fluid-tools/build-cli.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/container-loader",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.92.0",
|
|
4
4
|
"description": "Fluid container loader",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -129,14 +129,13 @@
|
|
|
129
129
|
"temp-directory": "nyc/.nyc_output"
|
|
130
130
|
},
|
|
131
131
|
"dependencies": {
|
|
132
|
-
"@fluid-internal/client-utils": "~2.
|
|
133
|
-
"@fluidframework/container-definitions": "~2.
|
|
134
|
-
"@fluidframework/core-interfaces": "~2.
|
|
135
|
-
"@fluidframework/core-utils": "~2.
|
|
136
|
-
"@fluidframework/driver-definitions": "~2.
|
|
137
|
-
"@fluidframework/driver-utils": "~2.
|
|
138
|
-
"@fluidframework/telemetry-utils": "~2.
|
|
139
|
-
"@types/events_pkg": "npm:@types/events@^3.0.0",
|
|
132
|
+
"@fluid-internal/client-utils": "~2.92.0",
|
|
133
|
+
"@fluidframework/container-definitions": "~2.92.0",
|
|
134
|
+
"@fluidframework/core-interfaces": "~2.92.0",
|
|
135
|
+
"@fluidframework/core-utils": "~2.92.0",
|
|
136
|
+
"@fluidframework/driver-definitions": "~2.92.0",
|
|
137
|
+
"@fluidframework/driver-utils": "~2.92.0",
|
|
138
|
+
"@fluidframework/telemetry-utils": "~2.92.0",
|
|
140
139
|
"@ungap/structured-clone": "^1.2.0",
|
|
141
140
|
"debug": "^4.3.4",
|
|
142
141
|
"double-ended-queue": "^2.1.0-0",
|
|
@@ -146,17 +145,18 @@
|
|
|
146
145
|
"devDependencies": {
|
|
147
146
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
148
147
|
"@biomejs/biome": "~2.4.5",
|
|
149
|
-
"@fluid-internal/client-utils": "~2.
|
|
150
|
-
"@fluid-internal/mocha-test-setup": "~2.
|
|
151
|
-
"@fluid-private/test-loader-utils": "~2.
|
|
152
|
-
"@fluid-tools/build-cli": "^0.
|
|
148
|
+
"@fluid-internal/client-utils": "~2.92.0",
|
|
149
|
+
"@fluid-internal/mocha-test-setup": "~2.92.0",
|
|
150
|
+
"@fluid-private/test-loader-utils": "~2.92.0",
|
|
151
|
+
"@fluid-tools/build-cli": "^0.64.0",
|
|
153
152
|
"@fluidframework/build-common": "^2.0.3",
|
|
154
|
-
"@fluidframework/build-tools": "^0.
|
|
155
|
-
"@fluidframework/container-loader-previous": "npm:@fluidframework/container-loader@2.
|
|
156
|
-
"@fluidframework/eslint-config-fluid": "
|
|
153
|
+
"@fluidframework/build-tools": "^0.64.0",
|
|
154
|
+
"@fluidframework/container-loader-previous": "npm:@fluidframework/container-loader@2.91.0",
|
|
155
|
+
"@fluidframework/eslint-config-fluid": "^9.0.0",
|
|
157
156
|
"@microsoft/api-extractor": "7.52.11",
|
|
158
157
|
"@types/debug": "^4.1.5",
|
|
159
158
|
"@types/double-ended-queue": "^2.1.0",
|
|
159
|
+
"@types/events_pkg": "npm:@types/events@^3.0.0",
|
|
160
160
|
"@types/mocha": "^10.0.10",
|
|
161
161
|
"@types/node": "~20.19.30",
|
|
162
162
|
"@types/sinon": "^17.0.3",
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
},
|
|
180
180
|
"scripts": {
|
|
181
181
|
"api": "fluid-build . --task api",
|
|
182
|
-
"api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outFileLegacyAlpha legacyAlpha --outDir ./dist",
|
|
182
|
+
"api-extractor:commonjs": "flub generate entrypoints --resolutionConditions require --outFileLegacyBeta legacy --outFileLegacyAlpha legacyAlpha --outDir ./dist",
|
|
183
183
|
"api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outFileLegacyAlpha legacyAlpha --outDir ./lib --node10TypeCompat",
|
|
184
184
|
"build": "fluid-build . --task build",
|
|
185
185
|
"build:api-reports": "concurrently \"npm:build:api-reports:*\"",
|
package/src/container.ts
CHANGED
|
@@ -1301,7 +1301,9 @@ export class Container
|
|
|
1301
1301
|
});
|
|
1302
1302
|
|
|
1303
1303
|
// only enable the new behavior if the config is set
|
|
1304
|
-
if (
|
|
1304
|
+
if (
|
|
1305
|
+
this.mc.config.getBoolean("Fluid.Container.DisableCloseOnAttachFailure") !== true
|
|
1306
|
+
) {
|
|
1305
1307
|
attachP = attachP.catch((error) => {
|
|
1306
1308
|
throw normalizeErrorAndClose(error);
|
|
1307
1309
|
});
|
|
@@ -1547,6 +1549,12 @@ export class Container
|
|
|
1547
1549
|
service.on("metadataUpdate", this.metadataUpdateHandler);
|
|
1548
1550
|
}
|
|
1549
1551
|
} else {
|
|
1552
|
+
// When DisableCloseOnAttachFailure is enabled, use no internal retries
|
|
1553
|
+
// The consumer will own the retry policy
|
|
1554
|
+
const disableCloseOnAttachFailure =
|
|
1555
|
+
this.mc.config.getBoolean("Fluid.Container.DisableCloseOnAttachFailure") === true;
|
|
1556
|
+
const maxRetries = disableCloseOnAttachFailure ? 0 : undefined;
|
|
1557
|
+
|
|
1550
1558
|
service = await runWithRetry(
|
|
1551
1559
|
async () =>
|
|
1552
1560
|
this.serviceFactory.createContainer(
|
|
@@ -1560,6 +1568,7 @@ export class Container
|
|
|
1560
1568
|
{
|
|
1561
1569
|
cancel: this._deltaManager.closeAbortController.signal,
|
|
1562
1570
|
}, // progress
|
|
1571
|
+
maxRetries,
|
|
1563
1572
|
);
|
|
1564
1573
|
}
|
|
1565
1574
|
return service;
|
package/src/packageVersion.ts
CHANGED