@module-federation/runtime 0.0.0-next-20240510094642 → 0.0.0-next-20240511023318

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
@@ -1759,15 +1759,16 @@ class FederationHost {
1759
1759
  this.sharedHandler.initShareScopeMap(scopeName, shareScope);
1760
1760
  }
1761
1761
  formatOptions(globalOptions, userOptions) {
1762
- const { shared, shareInfos } = this.sharedHandler.formatShareConfigs(globalOptions, userOptions);
1762
+ const { shared } = this.sharedHandler.formatShareConfigs(globalOptions, userOptions);
1763
1763
  const { userOptions: userOptionsRes, options: globalOptionsRes } = this.hooks.lifecycle.beforeInit.emit({
1764
1764
  origin: this,
1765
1765
  userOptions,
1766
1766
  options: globalOptions,
1767
1767
  shareInfo: shared
1768
1768
  });
1769
+ const { shared: handledShared, shareInfos: handledShareInfos } = this.sharedHandler.formatShareConfigs(globalOptions, userOptions);
1769
1770
  const remotes = this.remoteHandler.formatAndRegisterRemote(globalOptionsRes, userOptionsRes);
1770
- this.sharedHandler.registerShared(shareInfos, userOptions);
1771
+ this.sharedHandler.registerShared(handledShareInfos, userOptions);
1771
1772
  const plugins = [
1772
1773
  ...globalOptionsRes.plugins
1773
1774
  ];
@@ -1781,7 +1782,7 @@ class FederationHost {
1781
1782
  const optionsRes = _extends({}, globalOptions, userOptions, {
1782
1783
  plugins,
1783
1784
  remotes,
1784
- shared
1785
+ shared: handledShared
1785
1786
  });
1786
1787
  this.hooks.lifecycle.init.emit({
1787
1788
  origin: this,
@@ -1818,7 +1819,7 @@ class FederationHost {
1818
1819
  // maybe will change, temporarily for internal use only
1819
1820
  initContainer: new AsyncWaterfallHook('initContainer')
1820
1821
  });
1821
- this.version = "0.1.13";
1822
+ this.version = "0.1.12";
1822
1823
  this.moduleCache = new Map();
1823
1824
  this.loaderHook = new PluginSystem({
1824
1825
  // FIXME: may not be suitable , not open to the public yet
package/dist/index.esm.js CHANGED
@@ -1757,15 +1757,16 @@ class FederationHost {
1757
1757
  this.sharedHandler.initShareScopeMap(scopeName, shareScope);
1758
1758
  }
1759
1759
  formatOptions(globalOptions, userOptions) {
1760
- const { shared, shareInfos } = this.sharedHandler.formatShareConfigs(globalOptions, userOptions);
1760
+ const { shared } = this.sharedHandler.formatShareConfigs(globalOptions, userOptions);
1761
1761
  const { userOptions: userOptionsRes, options: globalOptionsRes } = this.hooks.lifecycle.beforeInit.emit({
1762
1762
  origin: this,
1763
1763
  userOptions,
1764
1764
  options: globalOptions,
1765
1765
  shareInfo: shared
1766
1766
  });
1767
+ const { shared: handledShared, shareInfos: handledShareInfos } = this.sharedHandler.formatShareConfigs(globalOptions, userOptions);
1767
1768
  const remotes = this.remoteHandler.formatAndRegisterRemote(globalOptionsRes, userOptionsRes);
1768
- this.sharedHandler.registerShared(shareInfos, userOptions);
1769
+ this.sharedHandler.registerShared(handledShareInfos, userOptions);
1769
1770
  const plugins = [
1770
1771
  ...globalOptionsRes.plugins
1771
1772
  ];
@@ -1779,7 +1780,7 @@ class FederationHost {
1779
1780
  const optionsRes = _extends({}, globalOptions, userOptions, {
1780
1781
  plugins,
1781
1782
  remotes,
1782
- shared
1783
+ shared: handledShared
1783
1784
  });
1784
1785
  this.hooks.lifecycle.init.emit({
1785
1786
  origin: this,
@@ -1816,7 +1817,7 @@ class FederationHost {
1816
1817
  // maybe will change, temporarily for internal use only
1817
1818
  initContainer: new AsyncWaterfallHook('initContainer')
1818
1819
  });
1819
- this.version = "0.1.13";
1820
+ this.version = "0.1.12";
1820
1821
  this.moduleCache = new Map();
1821
1822
  this.loaderHook = new PluginSystem({
1822
1823
  // 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.13",
3
+ "version": "0.1.12",
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.13";
193
+ globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.1.12";
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.13";
191
+ globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.1.12";
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.0.0-next-20240510094642",
3
+ "version": "0.0.0-next-20240511023318",
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.0.0-next-20240510094642"
48
+ "@module-federation/sdk": "0.0.0-next-20240511023318"
49
49
  }
50
50
  }