@module-federation/runtime 0.1.21 → 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/dist/index.cjs.js CHANGED
@@ -1155,6 +1155,7 @@ class SnapshotHandler {
1155
1155
  this.manifestCache.set(manifestUrl, manifestJson);
1156
1156
  return manifestJson;
1157
1157
  } catch (err) {
1158
+ delete this.manifestLoading[manifestUrl];
1158
1159
  share.error(`Failed to get manifestJson for ${moduleInfo.name}. The manifest URL is ${manifestUrl}. Please ensure that the manifestUrl is accessible.
1159
1160
  \n Error message:
1160
1161
  \n ${err}`);
@@ -1982,7 +1983,7 @@ class FederationHost {
1982
1983
  // maybe will change, temporarily for internal use only
1983
1984
  initContainer: new AsyncWaterfallHook('initContainer')
1984
1985
  });
1985
- this.version = "0.1.21";
1986
+ this.version = "0.2.0";
1986
1987
  this.moduleCache = new Map();
1987
1988
  this.loaderHook = new PluginSystem({
1988
1989
  // FIXME: may not be suitable , not open to the public yet
package/dist/index.esm.js CHANGED
@@ -1153,6 +1153,7 @@ class SnapshotHandler {
1153
1153
  this.manifestCache.set(manifestUrl, manifestJson);
1154
1154
  return manifestJson;
1155
1155
  } catch (err) {
1156
+ delete this.manifestLoading[manifestUrl];
1156
1157
  error(`Failed to get manifestJson for ${moduleInfo.name}. The manifest URL is ${manifestUrl}. Please ensure that the manifestUrl is accessible.
1157
1158
  \n Error message:
1158
1159
  \n ${err}`);
@@ -1980,7 +1981,7 @@ class FederationHost {
1980
1981
  // maybe will change, temporarily for internal use only
1981
1982
  initContainer: new AsyncWaterfallHook('initContainer')
1982
1983
  });
1983
- this.version = "0.1.21";
1984
+ this.version = "0.2.0";
1984
1985
  this.moduleCache = new Map();
1985
1986
  this.loaderHook = new PluginSystem({
1986
1987
  // FIXME: may not be suitable , not open to the public yet
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/runtime",
3
- "version": "0.1.21",
3
+ "version": "0.2.0",
4
4
  "author": "zhouxiao <codingzx@gmail.com>",
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js",
package/dist/share.cjs.js CHANGED
@@ -190,7 +190,7 @@ function getGlobalFederationConstructor() {
190
190
  function setGlobalFederationConstructor(FederationConstructor, isDebug = isDebugMode()) {
191
191
  if (isDebug) {
192
192
  globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor;
193
- globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.1.21";
193
+ globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.2.0";
194
194
  }
195
195
  }
196
196
  // eslint-disable-next-line @typescript-eslint/ban-types
package/dist/share.esm.js CHANGED
@@ -188,7 +188,7 @@ function getGlobalFederationConstructor() {
188
188
  function setGlobalFederationConstructor(FederationConstructor, isDebug = isDebugMode()) {
189
189
  if (isDebug) {
190
190
  globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor;
191
- globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.1.21";
191
+ globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.2.0";
192
192
  }
193
193
  }
194
194
  // eslint-disable-next-line @typescript-eslint/ban-types
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/runtime",
3
- "version": "0.1.21",
3
+ "version": "0.2.0",
4
4
  "author": "zhouxiao <codingzx@gmail.com>",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",
@@ -45,6 +45,6 @@
45
45
  }
46
46
  },
47
47
  "dependencies": {
48
- "@module-federation/sdk": "0.1.21"
48
+ "@module-federation/sdk": "0.2.0"
49
49
  }
50
50
  }