@lynx-js/external-bundle-rsbuild-plugin-canary 0.1.1 → 0.2.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,16 @@
1
1
  # @lynx-js/external-bundle-rsbuild-plugin
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - feat: support retrying `fetchBundle` on timeout via a new `retries` option (defaults to `0`). ([#2681](https://github.com/lynx-family/lynx-stack/pull/2681))
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`069af04`](https://github.com/lynx-family/lynx-stack/commit/069af04f7afd5fc9944f46f1f1488aed03f03b57)]:
12
+ - @lynx-js/externals-loading-webpack-plugin@0.2.0
13
+
3
14
  ## 0.1.1
4
15
 
5
16
  ### Patch Changes
package/lib/index.d.ts CHANGED
@@ -102,7 +102,7 @@ export declare const builtInExternalsPresetDefinitions: ExternalsPresetDefinitio
102
102
  *
103
103
  * @public
104
104
  */
105
- export interface PluginExternalBundleOptions extends Pick<ExternalsLoadingPluginOptions, 'globalObject' | 'timeout'> {
105
+ export interface PluginExternalBundleOptions extends Pick<ExternalsLoadingPluginOptions, 'globalObject' | 'timeout' | 'retries'> {
106
106
  /**
107
107
  * Root directory that stores project-owned external bundles referenced by
108
108
  * `bundlePath`.
package/lib/index.js CHANGED
@@ -437,6 +437,7 @@ export function pluginExternalBundle(options) {
437
437
  externals,
438
438
  globalObject: options.globalObject,
439
439
  timeout: options.timeout,
440
+ retries: options.retries,
440
441
  }));
441
442
  return config;
442
443
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/external-bundle-rsbuild-plugin-canary",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "An rsbuild plugin for loading lynx external bundles.",
5
5
  "keywords": [
6
6
  "rsbuild",
@@ -34,12 +34,12 @@
34
34
  "README.md"
35
35
  ],
36
36
  "dependencies": {
37
- "@lynx-js/externals-loading-webpack-plugin": "npm:@lynx-js/externals-loading-webpack-plugin-canary@0.1.1"
37
+ "@lynx-js/externals-loading-webpack-plugin": "npm:@lynx-js/externals-loading-webpack-plugin-canary@0.2.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@microsoft/api-extractor": "7.58.2",
41
41
  "@rsbuild/core": "1.7.5",
42
- "@lynx-js/react-umd": "npm:@lynx-js/react-umd-canary@0.119.0"
42
+ "@lynx-js/react-umd": "npm:@lynx-js/react-umd-canary@0.121.1"
43
43
  },
44
44
  "engines": {
45
45
  "node": ">=18"