@module-federation/runtime 0.0.0-next-20250701093604 → 0.0.0-next-20250701105507

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/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  ## Documentation
8
8
 
9
- See [https://module-federation.io/guide/basic/runtime.html](https://module-federation.io/guide/basic/runtime.html) for details.
9
+ See [https://module-federation.io/guide/basic/runtime/runtime.html](https://module-federation.io/guide/basic/runtime/runtime.html) for details.
10
10
 
11
11
  ## License
12
12
 
@@ -4,10 +4,11 @@ var polyfills = require('./polyfills.cjs.cjs');
4
4
  var runtimeCore = require('@module-federation/runtime-core');
5
5
  var utils = require('./utils.cjs.cjs');
6
6
 
7
- var helpers = polyfills._extends({}, runtimeCore.helpers, {
7
+ var helpers = {
8
8
  global: polyfills._extends({}, runtimeCore.helpers.global, {
9
9
  getGlobalFederationInstance: utils.getGlobalFederationInstance
10
- })
11
- });
10
+ }),
11
+ share: runtimeCore.helpers.share
12
+ };
12
13
 
13
14
  module.exports = helpers;
@@ -2,10 +2,11 @@ import { _ as _extends } from './polyfills.esm.js';
2
2
  import { helpers as helpers$1 } from '@module-federation/runtime-core';
3
3
  import { g as getGlobalFederationInstance } from './utils.esm.js';
4
4
 
5
- var helpers = _extends({}, helpers$1, {
5
+ var helpers = {
6
6
  global: _extends({}, helpers$1.global, {
7
7
  getGlobalFederationInstance
8
- })
9
- });
8
+ }),
9
+ share: helpers$1.share
10
+ };
10
11
 
11
12
  export { helpers as default };
@@ -1,11 +1,26 @@
1
- import { helpers } from '@module-federation/runtime-core';
2
1
  import { getGlobalFederationInstance } from './utils';
3
2
  export type { IGlobalUtils, IShareUtils, } from '@module-federation/runtime-core';
4
3
  declare const _default: {
5
- global: typeof helpers.global & {
4
+ global: {
6
5
  getGlobalFederationInstance: typeof getGlobalFederationInstance;
6
+ Global: typeof import("@module-federation/runtime-core").Global;
7
+ nativeGlobal: typeof global;
8
+ resetFederationGlobalInfo: typeof import("@module-federation/runtime-core").resetFederationGlobalInfo;
9
+ setGlobalFederationInstance: typeof import("@module-federation/runtime-core").setGlobalFederationInstance;
10
+ getGlobalFederationConstructor: typeof import("@module-federation/runtime-core").getGlobalFederationConstructor;
11
+ setGlobalFederationConstructor: typeof import("@module-federation/runtime-core").setGlobalFederationConstructor;
12
+ getInfoWithoutType: typeof import("@module-federation/runtime-core").getInfoWithoutType;
13
+ getGlobalSnapshot: typeof import("@module-federation/runtime-core").getGlobalSnapshot;
14
+ getTargetSnapshotInfoByModuleInfo: typeof import("packages/runtime-core/dist/src/global").getTargetSnapshotInfoByModuleInfo;
15
+ getGlobalSnapshotInfoByModuleInfo: typeof import("packages/runtime-core/dist/src/global").getGlobalSnapshotInfoByModuleInfo;
16
+ setGlobalSnapshotInfoByModuleInfo: typeof import("packages/runtime-core/dist/src/global").setGlobalSnapshotInfoByModuleInfo;
17
+ addGlobalSnapshot: typeof import("@module-federation/runtime-core").addGlobalSnapshot;
18
+ getRemoteEntryExports: typeof import("packages/runtime-core/dist/src/global").getRemoteEntryExports;
19
+ registerGlobalPlugins: typeof import("@module-federation/runtime-core").registerGlobalPlugins;
20
+ getGlobalHostPlugins: typeof import("packages/runtime-core/dist/src/global").getGlobalHostPlugins;
21
+ getPreloaded: typeof import("packages/runtime-core/dist/src/global").getPreloaded;
22
+ setPreloaded: typeof import("packages/runtime-core/dist/src/global").setPreloaded;
7
23
  };
8
- share: typeof helpers.share;
9
- utils: typeof helpers.utils;
24
+ share: import("@module-federation/runtime-core").IShareUtils;
10
25
  };
11
26
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/runtime",
3
- "version": "0.0.0-next-20250701093604",
3
+ "version": "0.0.0-next-20250701105507",
4
4
  "type": "module",
5
5
  "author": "zhouxiao <codingzx@gmail.com>",
6
6
  "main": "./dist/index.cjs.cjs",
@@ -79,8 +79,8 @@
79
79
  }
80
80
  },
81
81
  "dependencies": {
82
- "@module-federation/sdk": "0.0.0-next-20250701093604",
83
- "@module-federation/error-codes": "0.0.0-next-20250701093604",
84
- "@module-federation/runtime-core": "0.0.0-next-20250701093604"
82
+ "@module-federation/error-codes": "0.0.0-next-20250701105507",
83
+ "@module-federation/sdk": "0.0.0-next-20250701105507",
84
+ "@module-federation/runtime-core": "0.0.0-next-20250701105507"
85
85
  }
86
86
  }