@module-federation/runtime 0.0.0-canary-1702522677984 → 0.0.0-codex-node24-dev-node20-compat-ci-20260713063237
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 +13 -0
- package/dist/LICENSE +21 -0
- package/dist/_virtual/_rolldown/runtime.cjs +29 -0
- package/dist/bundler.cjs +52 -0
- package/dist/bundler.d.ts +2 -0
- package/dist/bundler.js +3 -0
- package/dist/core.cjs +18 -0
- package/dist/core.cjs.map +1 -0
- package/dist/core.d.ts +3 -0
- package/dist/core.js +10 -0
- package/dist/core.js.map +1 -0
- package/dist/helpers.cjs +24 -0
- package/dist/helpers.cjs.map +1 -0
- package/dist/helpers.d.ts +24 -0
- package/dist/helpers.js +19 -0
- package/dist/helpers.js.map +1 -0
- package/dist/index.cjs +114 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +66 -0
- package/dist/index.js.map +1 -0
- package/dist/types.cjs +10 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.js +3 -0
- package/dist/utils.cjs +20 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.d.ts +7 -0
- package/dist/utils.js +19 -0
- package/dist/utils.js.map +1 -0
- package/package.json +75 -15
- package/helpers.cjs.d.ts +0 -2
- package/helpers.cjs.js +0 -33
- package/helpers.esm.js +0 -31
- package/index.cjs.d.ts +0 -1
- package/index.cjs.js +0 -1635
- package/index.esm.js +0 -1626
- package/share.cjs.js +0 -771
- package/share.esm.js +0 -734
- package/src/constant.d.ts +0 -2
- package/src/core.d.ts +0 -125
- package/src/global.d.ts +0 -57
- package/src/helpers.d.ts +0 -32
- package/src/index.d.ts +0 -10
- package/src/module/index.d.ts +0 -25
- package/src/plugins/generate-preload-assets.d.ts +0 -8
- package/src/plugins/snapshot/SnapshotHandler.d.ts +0 -43
- package/src/plugins/snapshot/index.d.ts +0 -5
- package/src/type/config.d.ts +0 -94
- package/src/type/index.d.ts +0 -3
- package/src/type/plugin.d.ts +0 -20
- package/src/type/preload.d.ts +0 -26
- package/src/types.d.ts +0 -1
- package/src/utils/env.d.ts +0 -4
- package/src/utils/hooks/asyncHook.d.ts +0 -6
- package/src/utils/hooks/asyncWaterfallHooks.d.ts +0 -10
- package/src/utils/hooks/index.d.ts +0 -6
- package/src/utils/hooks/pluginSystem.d.ts +0 -15
- package/src/utils/hooks/syncHook.d.ts +0 -12
- package/src/utils/hooks/syncWaterfallHook.d.ts +0 -9
- package/src/utils/index.d.ts +0 -5
- package/src/utils/load.d.ts +0 -17
- package/src/utils/logger.d.ts +0 -3
- package/src/utils/manifest.d.ts +0 -7
- package/src/utils/plugin.d.ts +0 -4
- package/src/utils/preload.d.ts +0 -6
- package/src/utils/semver/compare.d.ts +0 -9
- package/src/utils/semver/constants.d.ts +0 -10
- package/src/utils/semver/index.d.ts +0 -2
- package/src/utils/semver/parser.d.ts +0 -9
- package/src/utils/semver/utils.d.ts +0 -11
- package/src/utils/share.d.ts +0 -7
- package/src/utils/tool.d.ts +0 -12
- package/type.cjs.d.ts +0 -1
- package/type.cjs.js +0 -2
- package/type.esm.js +0 -1
package/package.json
CHANGED
|
@@ -1,40 +1,100 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/runtime",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-codex-node24-dev-node20-compat-ci-20260713063237",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"author": "zhouxiao <codingzx@gmail.com>",
|
|
5
|
-
"main": "./index.cjs
|
|
6
|
-
"module": "./index.
|
|
7
|
-
"types": "./index.
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"browser": {
|
|
10
|
+
"url": false
|
|
11
|
+
},
|
|
8
12
|
"license": "MIT",
|
|
9
13
|
"publishConfig": {
|
|
10
14
|
"access": "public"
|
|
11
15
|
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/module-federation/core.git",
|
|
19
|
+
"directory": "packages/runtime"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist/",
|
|
23
|
+
"README.md"
|
|
24
|
+
],
|
|
12
25
|
"exports": {
|
|
13
26
|
".": {
|
|
14
|
-
"import":
|
|
15
|
-
|
|
27
|
+
"import": {
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"default": "./dist/index.js"
|
|
30
|
+
},
|
|
31
|
+
"require": {
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"default": "./dist/index.cjs"
|
|
34
|
+
}
|
|
16
35
|
},
|
|
17
36
|
"./helpers": {
|
|
18
|
-
"import":
|
|
19
|
-
|
|
37
|
+
"import": {
|
|
38
|
+
"types": "./dist/helpers.d.ts",
|
|
39
|
+
"default": "./dist/helpers.js"
|
|
40
|
+
},
|
|
41
|
+
"require": {
|
|
42
|
+
"types": "./dist/helpers.d.ts",
|
|
43
|
+
"default": "./dist/helpers.cjs"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"./types": {
|
|
47
|
+
"import": {
|
|
48
|
+
"types": "./dist/types.d.ts",
|
|
49
|
+
"default": "./dist/types.js"
|
|
50
|
+
},
|
|
51
|
+
"require": {
|
|
52
|
+
"types": "./dist/types.d.ts",
|
|
53
|
+
"default": "./dist/types.cjs"
|
|
54
|
+
}
|
|
20
55
|
},
|
|
56
|
+
"./core": {
|
|
57
|
+
"import": {
|
|
58
|
+
"types": "./dist/core.d.ts",
|
|
59
|
+
"default": "./dist/core.js"
|
|
60
|
+
},
|
|
61
|
+
"require": {
|
|
62
|
+
"types": "./dist/core.d.ts",
|
|
63
|
+
"default": "./dist/core.cjs"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"./bundler": "./dist/bundler.js",
|
|
21
67
|
"./*": "./*"
|
|
22
68
|
},
|
|
23
69
|
"typesVersions": {
|
|
24
70
|
"*": {
|
|
25
71
|
".": [
|
|
26
|
-
"./index.
|
|
72
|
+
"./dist/index.d.ts"
|
|
27
73
|
],
|
|
28
74
|
"helpers": [
|
|
29
|
-
"./helpers.
|
|
75
|
+
"./dist/helpers.d.ts"
|
|
76
|
+
],
|
|
77
|
+
"types": [
|
|
78
|
+
"./dist/types.d.ts"
|
|
79
|
+
],
|
|
80
|
+
"core": [
|
|
81
|
+
"./dist/core.d.ts"
|
|
30
82
|
],
|
|
31
|
-
"
|
|
32
|
-
"./
|
|
83
|
+
"bundler": [
|
|
84
|
+
"./dist/bundler.d.ts"
|
|
33
85
|
]
|
|
34
86
|
}
|
|
35
87
|
},
|
|
36
88
|
"dependencies": {
|
|
37
|
-
"@module-federation/sdk": "0.0.0-
|
|
89
|
+
"@module-federation/sdk": "0.0.0-codex-node24-dev-node20-compat-ci-20260713063237",
|
|
90
|
+
"@module-federation/runtime-core": "0.0.0-codex-node24-dev-node20-compat-ci-20260713063237",
|
|
91
|
+
"@module-federation/error-codes": "0.0.0-codex-node24-dev-node20-compat-ci-20260713063237"
|
|
38
92
|
},
|
|
39
|
-
"
|
|
40
|
-
|
|
93
|
+
"scripts": {
|
|
94
|
+
"build": "tsdown --config tsdown.config.ts",
|
|
95
|
+
"lint": "ESLINT_USE_FLAT_CONFIG=false pnpm exec eslint --ignore-pattern node_modules \"**/*.ts\" \"package.json\"",
|
|
96
|
+
"build-debug": "RUNTIME_TSDOWN_MODE=debug tsdown --config tsdown.config.ts",
|
|
97
|
+
"pre-release": "pnpm run test && pnpm run build",
|
|
98
|
+
"test": "rstest -u"
|
|
99
|
+
}
|
|
100
|
+
}
|
package/helpers.cjs.d.ts
DELETED
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 };
|
package/index.cjs.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./src/index";
|