@module-federation/runtime 0.0.0-next-20241106033302 → 0.0.0-next-20241106063644

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
@@ -1785,13 +1785,13 @@ class RemoteHandler {
1785
1785
  if (loadedModule) {
1786
1786
  const remoteInfo = loadedModule.remoteInfo;
1787
1787
  const key = remoteInfo.entryGlobalName;
1788
- if (share.CurrentGlobal[key]) {
1788
+ if (globalThis[key]) {
1789
1789
  var _Object_getOwnPropertyDescriptor;
1790
- if ((_Object_getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor(share.CurrentGlobal, key)) == null ? void 0 : _Object_getOwnPropertyDescriptor.configurable) {
1791
- delete share.CurrentGlobal[key];
1790
+ if ((_Object_getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor(globalThis, key)) == null ? void 0 : _Object_getOwnPropertyDescriptor.configurable) {
1791
+ delete globalThis[key];
1792
1792
  } else {
1793
1793
  // @ts-ignore
1794
- share.CurrentGlobal[key] = undefined;
1794
+ globalThis[key] = undefined;
1795
1795
  }
1796
1796
  }
1797
1797
  const remoteEntryUniqueKey = getRemoteEntryUniqueKey(loadedModule.remoteInfo);
@@ -1801,7 +1801,7 @@ class RemoteHandler {
1801
1801
  host.snapshotHandler.manifestCache.delete(remoteInfo.entry);
1802
1802
  // delete unloaded shared and instance
1803
1803
  let remoteInsId = remoteInfo.buildVersion ? sdk.composeKeyWithSeparator(remoteInfo.name, remoteInfo.buildVersion) : remoteInfo.name;
1804
- const remoteInsIndex = share.CurrentGlobal.__FEDERATION__.__INSTANCES__.findIndex((ins)=>{
1804
+ const remoteInsIndex = globalThis.__FEDERATION__.__INSTANCES__.findIndex((ins)=>{
1805
1805
  if (remoteInfo.buildVersion) {
1806
1806
  return ins.options.id === remoteInsId;
1807
1807
  } else {
@@ -1809,7 +1809,7 @@ class RemoteHandler {
1809
1809
  }
1810
1810
  });
1811
1811
  if (remoteInsIndex !== -1) {
1812
- const remoteIns = share.CurrentGlobal.__FEDERATION__.__INSTANCES__[remoteInsIndex];
1812
+ const remoteIns = globalThis.__FEDERATION__.__INSTANCES__[remoteInsIndex];
1813
1813
  remoteInsId = remoteIns.options.id || remoteInsId;
1814
1814
  const globalShareScopeMap = share.getGlobalShareScope();
1815
1815
  let isAllSharedNotUsed = true;
@@ -1856,7 +1856,7 @@ class RemoteHandler {
1856
1856
  var _globalShareScopeMap_insId_shareScope_shareName, _globalShareScopeMap_insId_shareScope, _globalShareScopeMap_insId;
1857
1857
  (_globalShareScopeMap_insId = globalShareScopeMap[insId]) == null ? true : (_globalShareScopeMap_insId_shareScope = _globalShareScopeMap_insId[shareScope]) == null ? true : (_globalShareScopeMap_insId_shareScope_shareName = _globalShareScopeMap_insId_shareScope[shareName]) == null ? true : delete _globalShareScopeMap_insId_shareScope_shareName[shareVersion];
1858
1858
  });
1859
- share.CurrentGlobal.__FEDERATION__.__INSTANCES__.splice(remoteInsIndex, 1);
1859
+ globalThis.__FEDERATION__.__INSTANCES__.splice(remoteInsIndex, 1);
1860
1860
  }
1861
1861
  const { hostGlobalSnapshot } = getGlobalRemoteInfo(remote, host);
1862
1862
  if (hostGlobalSnapshot) {
@@ -1,7 +1,7 @@
1
1
  import { a as _extends, _ as _object_without_properties_loose } from './polyfills.esm.mjs';
2
2
  import { isBrowserEnv, loadScriptNode, composeKeyWithSeparator, loadScript, safeToString, createLink, createScript, getResourceUrl, isManifestProvider, generateSnapshotFromManifest, warn as warn$1 } from '@module-federation/sdk';
3
3
  export { loadScript, loadScriptNode } from '@module-federation/sdk';
4
- import { o as getGlobalHostPlugins, t as globalLoading, D as DEFAULT_REMOTE_TYPE, u as DEFAULT_SCOPE, l as getRemoteEntryExports, v as assert, w as error, x as getFMId, y as isObject, z as warn, A as isPlainObject, B as isRemoteInfoWithEntry, C as isPureRemoteEntry, E as getRemoteEntryInfoFromSnapshot, e as getInfoWithoutType, p as getPreloaded, q as setPreloaded, g as getRegisteredShare, F as arrayOptions, i as getGlobalSnapshotInfoByModuleInfo, k as addGlobalSnapshot, j as setGlobalSnapshotInfoByModuleInfo, G as Global, f as getGlobalSnapshot, H as formatShareConfigs, I as getTargetSharedOptions, a as getGlobalShareScope, J as addUniqueItem, K as CurrentGlobal, L as logger, M as getBuilderId, d as setGlobalFederationConstructor, b as getGlobalFederationInstance, c as getGlobalFederationConstructor, s as setGlobalFederationInstance } from './share.esm.mjs';
4
+ import { o as getGlobalHostPlugins, t as globalLoading, D as DEFAULT_REMOTE_TYPE, u as DEFAULT_SCOPE, l as getRemoteEntryExports, v as assert, w as error, x as getFMId, y as isObject, z as warn, A as isPlainObject, B as isRemoteInfoWithEntry, C as isPureRemoteEntry, E as getRemoteEntryInfoFromSnapshot, e as getInfoWithoutType, p as getPreloaded, q as setPreloaded, g as getRegisteredShare, F as arrayOptions, i as getGlobalSnapshotInfoByModuleInfo, k as addGlobalSnapshot, j as setGlobalSnapshotInfoByModuleInfo, G as Global, f as getGlobalSnapshot, H as formatShareConfigs, I as getTargetSharedOptions, a as getGlobalShareScope, J as addUniqueItem, K as logger, L as getBuilderId, d as setGlobalFederationConstructor, b as getGlobalFederationInstance, c as getGlobalFederationConstructor, s as setGlobalFederationInstance } from './share.esm.mjs';
5
5
  export { m as registerGlobalPlugins } from './share.esm.mjs';
6
6
  import { getShortErrorMsg, RUNTIME_001, runtimeDescMap, RUNTIME_002, RUNTIME_007, RUNTIME_003, RUNTIME_005, RUNTIME_006, RUNTIME_004 } from '@module-federation/error-codes';
7
7
 
@@ -1785,13 +1785,13 @@ class RemoteHandler {
1785
1785
  if (loadedModule) {
1786
1786
  const remoteInfo = loadedModule.remoteInfo;
1787
1787
  const key = remoteInfo.entryGlobalName;
1788
- if (CurrentGlobal[key]) {
1788
+ if (globalThis[key]) {
1789
1789
  var _Object_getOwnPropertyDescriptor;
1790
- if ((_Object_getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor(CurrentGlobal, key)) == null ? void 0 : _Object_getOwnPropertyDescriptor.configurable) {
1791
- delete CurrentGlobal[key];
1790
+ if ((_Object_getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor(globalThis, key)) == null ? void 0 : _Object_getOwnPropertyDescriptor.configurable) {
1791
+ delete globalThis[key];
1792
1792
  } else {
1793
1793
  // @ts-ignore
1794
- CurrentGlobal[key] = undefined;
1794
+ globalThis[key] = undefined;
1795
1795
  }
1796
1796
  }
1797
1797
  const remoteEntryUniqueKey = getRemoteEntryUniqueKey(loadedModule.remoteInfo);
@@ -1801,7 +1801,7 @@ class RemoteHandler {
1801
1801
  host.snapshotHandler.manifestCache.delete(remoteInfo.entry);
1802
1802
  // delete unloaded shared and instance
1803
1803
  let remoteInsId = remoteInfo.buildVersion ? composeKeyWithSeparator(remoteInfo.name, remoteInfo.buildVersion) : remoteInfo.name;
1804
- const remoteInsIndex = CurrentGlobal.__FEDERATION__.__INSTANCES__.findIndex((ins)=>{
1804
+ const remoteInsIndex = globalThis.__FEDERATION__.__INSTANCES__.findIndex((ins)=>{
1805
1805
  if (remoteInfo.buildVersion) {
1806
1806
  return ins.options.id === remoteInsId;
1807
1807
  } else {
@@ -1809,7 +1809,7 @@ class RemoteHandler {
1809
1809
  }
1810
1810
  });
1811
1811
  if (remoteInsIndex !== -1) {
1812
- const remoteIns = CurrentGlobal.__FEDERATION__.__INSTANCES__[remoteInsIndex];
1812
+ const remoteIns = globalThis.__FEDERATION__.__INSTANCES__[remoteInsIndex];
1813
1813
  remoteInsId = remoteIns.options.id || remoteInsId;
1814
1814
  const globalShareScopeMap = getGlobalShareScope();
1815
1815
  let isAllSharedNotUsed = true;
@@ -1856,7 +1856,7 @@ class RemoteHandler {
1856
1856
  var _globalShareScopeMap_insId_shareScope_shareName, _globalShareScopeMap_insId_shareScope, _globalShareScopeMap_insId;
1857
1857
  (_globalShareScopeMap_insId = globalShareScopeMap[insId]) == null ? true : (_globalShareScopeMap_insId_shareScope = _globalShareScopeMap_insId[shareScope]) == null ? true : (_globalShareScopeMap_insId_shareScope_shareName = _globalShareScopeMap_insId_shareScope[shareName]) == null ? true : delete _globalShareScopeMap_insId_shareScope_shareName[shareVersion];
1858
1858
  });
1859
- CurrentGlobal.__FEDERATION__.__INSTANCES__.splice(remoteInsIndex, 1);
1859
+ globalThis.__FEDERATION__.__INSTANCES__.splice(remoteInsIndex, 1);
1860
1860
  }
1861
1861
  const { hostGlobalSnapshot } = getGlobalRemoteInfo(remote, host);
1862
1862
  if (hostGlobalSnapshot) {
package/dist/share.cjs.js CHANGED
@@ -90,14 +90,13 @@ function getRemoteEntryInfoFromSnapshot(snapshot) {
90
90
  return defaultRemoteEntryInfo;
91
91
  }
92
92
 
93
- const CurrentGlobal = typeof globalThis === 'object' ? globalThis : window;
94
93
  const nativeGlobal = (()=>{
95
94
  try {
96
95
  // get real window (incase of sandbox)
97
96
  return document.defaultView;
98
97
  } catch (e) {
99
98
  // node env
100
- return CurrentGlobal;
99
+ return globalThis;
101
100
  }
102
101
  })();
103
102
  const Global = nativeGlobal;
@@ -114,10 +113,10 @@ function includeOwnProperty(target, key) {
114
113
  // This section is to prevent encapsulation by certain microfrontend frameworks. Due to reuse policies, sandbox escapes.
115
114
  // The sandbox in the microfrontend does not replicate the value of 'configurable'.
116
115
  // If there is no loading content on the global object, this section defines the loading object.
117
- if (!includeOwnProperty(CurrentGlobal, '__GLOBAL_LOADING_REMOTE_ENTRY__')) {
118
- definePropertyGlobalVal(CurrentGlobal, '__GLOBAL_LOADING_REMOTE_ENTRY__', {});
116
+ if (!includeOwnProperty(globalThis, '__GLOBAL_LOADING_REMOTE_ENTRY__')) {
117
+ definePropertyGlobalVal(globalThis, '__GLOBAL_LOADING_REMOTE_ENTRY__', {});
119
118
  }
120
- const globalLoading = CurrentGlobal.__GLOBAL_LOADING_REMOTE_ENTRY__;
119
+ const globalLoading = globalThis.__GLOBAL_LOADING_REMOTE_ENTRY__;
121
120
  function setGlobalDefaultVal(target) {
122
121
  var _target___FEDERATION__, _target___FEDERATION__1, _target___FEDERATION__2, _target___FEDERATION__3, _target___FEDERATION__4, _target___FEDERATION__5;
123
122
  if (includeOwnProperty(target, '__VMOK__') && !includeOwnProperty(target, '__FEDERATION__')) {
@@ -147,18 +146,18 @@ function setGlobalDefaultVal(target) {
147
146
  var ___PRELOADED_MAP__;
148
147
  (___PRELOADED_MAP__ = (_target___FEDERATION__5 = target.__FEDERATION__).__PRELOADED_MAP__) != null ? ___PRELOADED_MAP__ : _target___FEDERATION__5.__PRELOADED_MAP__ = new Map();
149
148
  }
150
- setGlobalDefaultVal(CurrentGlobal);
149
+ setGlobalDefaultVal(globalThis);
151
150
  setGlobalDefaultVal(nativeGlobal);
152
151
  function resetFederationGlobalInfo() {
153
- CurrentGlobal.__FEDERATION__.__GLOBAL_PLUGIN__ = [];
154
- CurrentGlobal.__FEDERATION__.__INSTANCES__ = [];
155
- CurrentGlobal.__FEDERATION__.moduleInfo = {};
156
- CurrentGlobal.__FEDERATION__.__SHARE__ = {};
157
- CurrentGlobal.__FEDERATION__.__MANIFEST_LOADING__ = {};
152
+ globalThis.__FEDERATION__.__GLOBAL_PLUGIN__ = [];
153
+ globalThis.__FEDERATION__.__INSTANCES__ = [];
154
+ globalThis.__FEDERATION__.moduleInfo = {};
155
+ globalThis.__FEDERATION__.__SHARE__ = {};
156
+ globalThis.__FEDERATION__.__MANIFEST_LOADING__ = {};
158
157
  }
159
158
  function getGlobalFederationInstance(name, version) {
160
159
  const buildId = getBuilderId();
161
- return CurrentGlobal.__FEDERATION__.__INSTANCES__.find((GMInstance)=>{
160
+ return globalThis.__FEDERATION__.__INSTANCES__.find((GMInstance)=>{
162
161
  if (buildId && GMInstance.options.id === getBuilderId()) {
163
162
  return true;
164
163
  }
@@ -172,15 +171,15 @@ function getGlobalFederationInstance(name, version) {
172
171
  });
173
172
  }
174
173
  function setGlobalFederationInstance(FederationInstance) {
175
- CurrentGlobal.__FEDERATION__.__INSTANCES__.push(FederationInstance);
174
+ globalThis.__FEDERATION__.__INSTANCES__.push(FederationInstance);
176
175
  }
177
176
  function getGlobalFederationConstructor() {
178
- return CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR__;
177
+ return globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__;
179
178
  }
180
179
  function setGlobalFederationConstructor(FederationConstructor, isDebug = sdk.isDebugMode()) {
181
180
  if (isDebug) {
182
- CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor;
183
- CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.7.0";
181
+ globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor;
182
+ globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.7.0";
184
183
  }
185
184
  }
186
185
  // eslint-disable-next-line @typescript-eslint/ban-types
@@ -256,7 +255,7 @@ const addGlobalSnapshot = (moduleInfos)=>{
256
255
  };
257
256
  const getRemoteEntryExports = (name, globalName)=>{
258
257
  const remoteEntryKey = globalName || `__FEDERATION_${name}:custom__`;
259
- const entryExports = CurrentGlobal[remoteEntryKey];
258
+ const entryExports = globalThis[remoteEntryKey];
260
259
  return {
261
260
  remoteEntryKey,
262
261
  entryExports
@@ -277,8 +276,8 @@ const registerGlobalPlugins = (plugins)=>{
277
276
  });
278
277
  };
279
278
  const getGlobalHostPlugins = ()=>nativeGlobal.__FEDERATION__.__GLOBAL_PLUGIN__;
280
- const getPreloaded = (id)=>CurrentGlobal.__FEDERATION__.__PRELOADED_MAP__.get(id);
281
- const setPreloaded = (id)=>CurrentGlobal.__FEDERATION__.__PRELOADED_MAP__.set(id, true);
279
+ const getPreloaded = (id)=>globalThis.__FEDERATION__.__PRELOADED_MAP__.get(id);
280
+ const setPreloaded = (id)=>globalThis.__FEDERATION__.__PRELOADED_MAP__.set(id, true);
282
281
 
283
282
  const DEFAULT_SCOPE = 'default';
284
283
  const DEFAULT_REMOTE_TYPE = 'global';
@@ -878,7 +877,6 @@ function getTargetSharedOptions(options) {
878
877
  return Object.assign({}, resolver(shareInfos[pkgName]), extraOptions == null ? void 0 : extraOptions.customShareInfo);
879
878
  }
880
879
 
881
- exports.CurrentGlobal = CurrentGlobal;
882
880
  exports.DEFAULT_REMOTE_TYPE = DEFAULT_REMOTE_TYPE;
883
881
  exports.DEFAULT_SCOPE = DEFAULT_SCOPE;
884
882
  exports.Global = Global;
@@ -88,14 +88,13 @@ function getRemoteEntryInfoFromSnapshot(snapshot) {
88
88
  return defaultRemoteEntryInfo;
89
89
  }
90
90
 
91
- const CurrentGlobal = typeof globalThis === 'object' ? globalThis : window;
92
91
  const nativeGlobal = (()=>{
93
92
  try {
94
93
  // get real window (incase of sandbox)
95
94
  return document.defaultView;
96
95
  } catch (e) {
97
96
  // node env
98
- return CurrentGlobal;
97
+ return globalThis;
99
98
  }
100
99
  })();
101
100
  const Global = nativeGlobal;
@@ -112,10 +111,10 @@ function includeOwnProperty(target, key) {
112
111
  // This section is to prevent encapsulation by certain microfrontend frameworks. Due to reuse policies, sandbox escapes.
113
112
  // The sandbox in the microfrontend does not replicate the value of 'configurable'.
114
113
  // If there is no loading content on the global object, this section defines the loading object.
115
- if (!includeOwnProperty(CurrentGlobal, '__GLOBAL_LOADING_REMOTE_ENTRY__')) {
116
- definePropertyGlobalVal(CurrentGlobal, '__GLOBAL_LOADING_REMOTE_ENTRY__', {});
114
+ if (!includeOwnProperty(globalThis, '__GLOBAL_LOADING_REMOTE_ENTRY__')) {
115
+ definePropertyGlobalVal(globalThis, '__GLOBAL_LOADING_REMOTE_ENTRY__', {});
117
116
  }
118
- const globalLoading = CurrentGlobal.__GLOBAL_LOADING_REMOTE_ENTRY__;
117
+ const globalLoading = globalThis.__GLOBAL_LOADING_REMOTE_ENTRY__;
119
118
  function setGlobalDefaultVal(target) {
120
119
  var _target___FEDERATION__, _target___FEDERATION__1, _target___FEDERATION__2, _target___FEDERATION__3, _target___FEDERATION__4, _target___FEDERATION__5;
121
120
  if (includeOwnProperty(target, '__VMOK__') && !includeOwnProperty(target, '__FEDERATION__')) {
@@ -145,18 +144,18 @@ function setGlobalDefaultVal(target) {
145
144
  var ___PRELOADED_MAP__;
146
145
  (___PRELOADED_MAP__ = (_target___FEDERATION__5 = target.__FEDERATION__).__PRELOADED_MAP__) != null ? ___PRELOADED_MAP__ : _target___FEDERATION__5.__PRELOADED_MAP__ = new Map();
147
146
  }
148
- setGlobalDefaultVal(CurrentGlobal);
147
+ setGlobalDefaultVal(globalThis);
149
148
  setGlobalDefaultVal(nativeGlobal);
150
149
  function resetFederationGlobalInfo() {
151
- CurrentGlobal.__FEDERATION__.__GLOBAL_PLUGIN__ = [];
152
- CurrentGlobal.__FEDERATION__.__INSTANCES__ = [];
153
- CurrentGlobal.__FEDERATION__.moduleInfo = {};
154
- CurrentGlobal.__FEDERATION__.__SHARE__ = {};
155
- CurrentGlobal.__FEDERATION__.__MANIFEST_LOADING__ = {};
150
+ globalThis.__FEDERATION__.__GLOBAL_PLUGIN__ = [];
151
+ globalThis.__FEDERATION__.__INSTANCES__ = [];
152
+ globalThis.__FEDERATION__.moduleInfo = {};
153
+ globalThis.__FEDERATION__.__SHARE__ = {};
154
+ globalThis.__FEDERATION__.__MANIFEST_LOADING__ = {};
156
155
  }
157
156
  function getGlobalFederationInstance(name, version) {
158
157
  const buildId = getBuilderId();
159
- return CurrentGlobal.__FEDERATION__.__INSTANCES__.find((GMInstance)=>{
158
+ return globalThis.__FEDERATION__.__INSTANCES__.find((GMInstance)=>{
160
159
  if (buildId && GMInstance.options.id === getBuilderId()) {
161
160
  return true;
162
161
  }
@@ -170,15 +169,15 @@ function getGlobalFederationInstance(name, version) {
170
169
  });
171
170
  }
172
171
  function setGlobalFederationInstance(FederationInstance) {
173
- CurrentGlobal.__FEDERATION__.__INSTANCES__.push(FederationInstance);
172
+ globalThis.__FEDERATION__.__INSTANCES__.push(FederationInstance);
174
173
  }
175
174
  function getGlobalFederationConstructor() {
176
- return CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR__;
175
+ return globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__;
177
176
  }
178
177
  function setGlobalFederationConstructor(FederationConstructor, isDebug = isDebugMode()) {
179
178
  if (isDebug) {
180
- CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor;
181
- CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.7.0";
179
+ globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor;
180
+ globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.7.0";
182
181
  }
183
182
  }
184
183
  // eslint-disable-next-line @typescript-eslint/ban-types
@@ -254,7 +253,7 @@ const addGlobalSnapshot = (moduleInfos)=>{
254
253
  };
255
254
  const getRemoteEntryExports = (name, globalName)=>{
256
255
  const remoteEntryKey = globalName || `__FEDERATION_${name}:custom__`;
257
- const entryExports = CurrentGlobal[remoteEntryKey];
256
+ const entryExports = globalThis[remoteEntryKey];
258
257
  return {
259
258
  remoteEntryKey,
260
259
  entryExports
@@ -275,8 +274,8 @@ const registerGlobalPlugins = (plugins)=>{
275
274
  });
276
275
  };
277
276
  const getGlobalHostPlugins = ()=>nativeGlobal.__FEDERATION__.__GLOBAL_PLUGIN__;
278
- const getPreloaded = (id)=>CurrentGlobal.__FEDERATION__.__PRELOADED_MAP__.get(id);
279
- const setPreloaded = (id)=>CurrentGlobal.__FEDERATION__.__PRELOADED_MAP__.set(id, true);
277
+ const getPreloaded = (id)=>globalThis.__FEDERATION__.__PRELOADED_MAP__.get(id);
278
+ const setPreloaded = (id)=>globalThis.__FEDERATION__.__PRELOADED_MAP__.set(id, true);
280
279
 
281
280
  const DEFAULT_SCOPE = 'default';
282
281
  const DEFAULT_REMOTE_TYPE = 'global';
@@ -876,4 +875,4 @@ function getTargetSharedOptions(options) {
876
875
  return Object.assign({}, resolver(shareInfos[pkgName]), extraOptions == null ? void 0 : extraOptions.customShareInfo);
877
876
  }
878
877
 
879
- export { isPlainObject as A, isRemoteInfoWithEntry as B, isPureRemoteEntry as C, DEFAULT_REMOTE_TYPE as D, getRemoteEntryInfoFromSnapshot as E, arrayOptions as F, Global as G, formatShareConfigs as H, getTargetSharedOptions as I, addUniqueItem as J, CurrentGlobal as K, logger as L, getBuilderId as M, getGlobalShareScope as a, getGlobalFederationInstance as b, getGlobalFederationConstructor as c, setGlobalFederationConstructor as d, getInfoWithoutType as e, getGlobalSnapshot as f, getRegisteredShare as g, getTargetSnapshotInfoByModuleInfo as h, getGlobalSnapshotInfoByModuleInfo as i, setGlobalSnapshotInfoByModuleInfo as j, addGlobalSnapshot as k, getRemoteEntryExports as l, registerGlobalPlugins as m, nativeGlobal as n, getGlobalHostPlugins as o, getPreloaded as p, setPreloaded as q, resetFederationGlobalInfo as r, setGlobalFederationInstance as s, globalLoading as t, DEFAULT_SCOPE as u, assert as v, error as w, getFMId as x, isObject as y, warn as z };
878
+ export { isPlainObject as A, isRemoteInfoWithEntry as B, isPureRemoteEntry as C, DEFAULT_REMOTE_TYPE as D, getRemoteEntryInfoFromSnapshot as E, arrayOptions as F, Global as G, formatShareConfigs as H, getTargetSharedOptions as I, addUniqueItem as J, logger as K, getBuilderId as L, getGlobalShareScope as a, getGlobalFederationInstance as b, getGlobalFederationConstructor as c, setGlobalFederationConstructor as d, getInfoWithoutType as e, getGlobalSnapshot as f, getRegisteredShare as g, getTargetSnapshotInfoByModuleInfo as h, getGlobalSnapshotInfoByModuleInfo as i, setGlobalSnapshotInfoByModuleInfo as j, addGlobalSnapshot as k, getRemoteEntryExports as l, registerGlobalPlugins as m, nativeGlobal as n, getGlobalHostPlugins as o, getPreloaded as p, setPreloaded as q, resetFederationGlobalInfo as r, setGlobalFederationInstance as s, globalLoading as t, DEFAULT_SCOPE as u, assert as v, error as w, getFMId as x, isObject as y, warn as z };
@@ -12,7 +12,6 @@ export interface Federation {
12
12
  __MANIFEST_LOADING__: Record<string, Promise<ModuleInfo>>;
13
13
  __PRELOADED_MAP__: Map<string, boolean>;
14
14
  }
15
- export declare const CurrentGlobal: typeof globalThis;
16
15
  export declare const nativeGlobal: typeof global;
17
16
  export declare const Global: typeof globalThis;
18
17
  declare global {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/runtime",
3
- "version": "0.0.0-next-20241106033302",
3
+ "version": "0.0.0-next-20241106063644",
4
4
  "author": "zhouxiao <codingzx@gmail.com>",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.mjs",
@@ -50,7 +50,7 @@
50
50
  }
51
51
  },
52
52
  "dependencies": {
53
- "@module-federation/sdk": "0.0.0-next-20241106033302",
54
- "@module-federation/error-codes": "0.0.0-next-20241106033302"
53
+ "@module-federation/sdk": "0.0.0-next-20241106063644",
54
+ "@module-federation/error-codes": "0.0.0-next-20241106063644"
55
55
  }
56
56
  }