@fluidframework/container-loader 2.90.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/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 {
@@ -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 {
@@ -13,7 +13,7 @@ export declare const loaderCoreCompatDetails: {
13
13
  /**
14
14
  * The package version of the Loader layer.
15
15
  */
16
- readonly pkgVersion: "2.90.0";
16
+ readonly pkgVersion: "2.92.0";
17
17
  /**
18
18
  * The current generation of the Loader layer.
19
19
  */
@@ -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.90.0";
8
+ export declare const pkgVersion = "2.92.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 = "@fluidframework/container-loader";
8
- export const pkgVersion = "2.90.0";
8
+ export const pkgVersion = "2.92.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 = \"@fluidframework/container-loader\";\nexport const pkgVersion = \"2.90.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 = \"@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.90.0",
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.90.0",
133
- "@fluidframework/container-definitions": "~2.90.0",
134
- "@fluidframework/core-interfaces": "~2.90.0",
135
- "@fluidframework/core-utils": "~2.90.0",
136
- "@fluidframework/driver-definitions": "~2.90.0",
137
- "@fluidframework/driver-utils": "~2.90.0",
138
- "@fluidframework/telemetry-utils": "~2.90.0",
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",
@@ -145,18 +144,19 @@
145
144
  },
146
145
  "devDependencies": {
147
146
  "@arethetypeswrong/cli": "^0.18.2",
148
- "@biomejs/biome": "~1.9.3",
149
- "@fluid-internal/client-utils": "~2.90.0",
150
- "@fluid-internal/mocha-test-setup": "~2.90.0",
151
- "@fluid-private/test-loader-utils": "~2.90.0",
152
- "@fluid-tools/build-cli": "^0.63.0",
147
+ "@biomejs/biome": "~2.4.5",
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.63.0",
155
- "@fluidframework/container-loader-previous": "npm:@fluidframework/container-loader@2.83.0",
156
- "@fluidframework/eslint-config-fluid": "~2.90.0",
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 (this.mc.config.getBoolean("Fluid.Container.RetryOnAttachFailure") !== true) {
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;
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/container-loader";
9
- export const pkgVersion = "2.90.0";
9
+ export const pkgVersion = "2.92.0";