@module-federation/runtime 1.1.0-canary.1 → 2.0.1

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.
Files changed (79) hide show
  1. package/README.md +13 -0
  2. package/dist/LICENSE +21 -0
  3. package/dist/core.cjs.cjs +33 -0
  4. package/dist/core.cjs.cjs.map +1 -0
  5. package/dist/core.cjs.d.ts +2 -0
  6. package/dist/core.d.ts +2 -0
  7. package/dist/core.esm.js +4 -0
  8. package/dist/core.esm.js.map +1 -0
  9. package/dist/helpers.cjs.cjs +24 -0
  10. package/dist/helpers.cjs.cjs.map +1 -0
  11. package/dist/helpers.d.ts +2 -0
  12. package/dist/helpers.esm.js +17 -0
  13. package/dist/helpers.esm.js.map +1 -0
  14. package/dist/index.cjs.cjs +95 -0
  15. package/dist/index.cjs.cjs.map +1 -0
  16. package/dist/index.d.ts +1 -0
  17. package/dist/index.esm.js +78 -0
  18. package/dist/index.esm.js.map +1 -0
  19. package/dist/src/core.d.ts +3 -0
  20. package/dist/src/helpers.d.ts +37 -0
  21. package/dist/src/index.d.ts +16 -0
  22. package/dist/src/types.d.ts +1 -0
  23. package/dist/src/utils.d.ts +3 -0
  24. package/dist/types.cjs.cjs +17 -0
  25. package/dist/types.cjs.cjs.map +1 -0
  26. package/dist/types.cjs.d.ts +1 -0
  27. package/dist/types.d.ts +1 -0
  28. package/dist/types.esm.js +2 -0
  29. package/dist/types.esm.js.map +1 -0
  30. package/dist/utils.cjs.cjs +34 -0
  31. package/dist/utils.cjs.cjs.map +1 -0
  32. package/dist/utils.esm.js +32 -0
  33. package/dist/utils.esm.js.map +1 -0
  34. package/package.json +65 -16
  35. package/helpers.cjs.js +0 -33
  36. package/helpers.esm.js +0 -31
  37. package/index.cjs.js +0 -1619
  38. package/index.esm.js +0 -1610
  39. package/share.cjs.js +0 -771
  40. package/share.esm.js +0 -734
  41. package/src/constant.d.ts +0 -2
  42. package/src/core.d.ts +0 -121
  43. package/src/global.d.ts +0 -57
  44. package/src/helpers.d.ts +0 -32
  45. package/src/index.d.ts +0 -10
  46. package/src/module/index.d.ts +0 -25
  47. package/src/plugins/generate-preload-assets.d.ts +0 -8
  48. package/src/plugins/snapshot/SnapshotHandler.d.ts +0 -44
  49. package/src/plugins/snapshot/index.d.ts +0 -5
  50. package/src/type/config.d.ts +0 -94
  51. package/src/type/index.d.ts +0 -3
  52. package/src/type/plugin.d.ts +0 -20
  53. package/src/type/preload.d.ts +0 -26
  54. package/src/types.d.ts +0 -1
  55. package/src/utils/env.d.ts +0 -4
  56. package/src/utils/hooks/asyncHook.d.ts +0 -6
  57. package/src/utils/hooks/asyncWaterfallHooks.d.ts +0 -10
  58. package/src/utils/hooks/index.d.ts +0 -6
  59. package/src/utils/hooks/pluginSystem.d.ts +0 -15
  60. package/src/utils/hooks/syncHook.d.ts +0 -12
  61. package/src/utils/hooks/syncWaterfallHook.d.ts +0 -9
  62. package/src/utils/index.d.ts +0 -5
  63. package/src/utils/load.d.ts +0 -17
  64. package/src/utils/logger.d.ts +0 -3
  65. package/src/utils/manifest.d.ts +0 -7
  66. package/src/utils/plugin.d.ts +0 -4
  67. package/src/utils/preload.d.ts +0 -6
  68. package/src/utils/semver/compare.d.ts +0 -9
  69. package/src/utils/semver/constants.d.ts +0 -10
  70. package/src/utils/semver/index.d.ts +0 -2
  71. package/src/utils/semver/parser.d.ts +0 -9
  72. package/src/utils/semver/utils.d.ts +0 -11
  73. package/src/utils/share.d.ts +0 -7
  74. package/src/utils/tool.d.ts +0 -12
  75. package/type.cjs.d.ts +0 -1
  76. package/type.cjs.js +0 -2
  77. package/type.esm.js +0 -1
  78. /package/{helpers.cjs.d.ts → dist/helpers.cjs.d.ts} +0 -0
  79. /package/{index.cjs.d.ts → dist/index.cjs.d.ts} +0 -0
package/helpers.cjs.js DELETED
@@ -1,33 +0,0 @@
1
- 'use strict';
2
-
3
- var share = require('./share.cjs.js');
4
-
5
- const ShareUtils = {
6
- getGlobalShare: share.getGlobalShare,
7
- getGlobalShareScope: share.getGlobalShareScope
8
- };
9
- const GlobalUtils = {
10
- nativeGlobal: share.nativeGlobal,
11
- resetFederationGlobalInfo: share.resetFederationGlobalInfo,
12
- getGlobalFederationInstance: share.getGlobalFederationInstance,
13
- setGlobalFederationInstance: share.setGlobalFederationInstance,
14
- getGlobalFederationConstructor: share.getGlobalFederationConstructor,
15
- setGlobalFederationConstructor: share.setGlobalFederationConstructor,
16
- getInfoWithoutType: share.getInfoWithoutType,
17
- getGlobalSnapshot: share.getGlobalSnapshot,
18
- getTargetSnapshotInfoByModuleInfo: share.getTargetSnapshotInfoByModuleInfo,
19
- getGlobalSnapshotInfoByModuleInfo: share.getGlobalSnapshotInfoByModuleInfo,
20
- setGlobalSnapshotInfoByModuleInfo: share.setGlobalSnapshotInfoByModuleInfo,
21
- addGlobalSnapshot: share.addGlobalSnapshot,
22
- getRemoteEntryExports: share.getRemoteEntryExports,
23
- registerGlobalPlugins: share.registerGlobalPlugins,
24
- getGlobalHostPlugins: share.getGlobalHostPlugins,
25
- getPreloaded: share.getPreloaded,
26
- setPreloaded: share.setPreloaded
27
- };
28
- var helpers = {
29
- global: GlobalUtils,
30
- share: ShareUtils
31
- };
32
-
33
- module.exports = helpers;
package/helpers.esm.js DELETED
@@ -1,31 +0,0 @@
1
- import { l as getGlobalShare, x as getGlobalShareScope, F as nativeGlobal, H as resetFederationGlobalInfo, A as getGlobalFederationInstance, C as setGlobalFederationInstance, B as getGlobalFederationConstructor, z as setGlobalFederationConstructor, m as getInfoWithoutType, r as getGlobalSnapshot, I as getTargetSnapshotInfoByModuleInfo, p as getGlobalSnapshotInfoByModuleInfo, q as setGlobalSnapshotInfoByModuleInfo, J as addGlobalSnapshot, c as getRemoteEntryExports, E as registerGlobalPlugins, g as getGlobalHostPlugins, n as getPreloaded, o as setPreloaded } from './share.esm.js';
2
-
3
- const ShareUtils = {
4
- getGlobalShare,
5
- getGlobalShareScope
6
- };
7
- const GlobalUtils = {
8
- nativeGlobal,
9
- resetFederationGlobalInfo,
10
- getGlobalFederationInstance,
11
- setGlobalFederationInstance,
12
- getGlobalFederationConstructor,
13
- setGlobalFederationConstructor,
14
- getInfoWithoutType,
15
- getGlobalSnapshot,
16
- getTargetSnapshotInfoByModuleInfo,
17
- getGlobalSnapshotInfoByModuleInfo,
18
- setGlobalSnapshotInfoByModuleInfo,
19
- addGlobalSnapshot,
20
- getRemoteEntryExports,
21
- registerGlobalPlugins,
22
- getGlobalHostPlugins,
23
- getPreloaded,
24
- setPreloaded
25
- };
26
- var helpers = {
27
- global: GlobalUtils,
28
- share: ShareUtils
29
- };
30
-
31
- export { helpers as default };