@module-federation/runtime 0.8.2 → 0.8.4
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 +3 -3
- package/dist/index.esm.mjs +3 -3
- package/dist/share.cjs.js +1 -1
- package/dist/share.esm.mjs +1 -1
- package/package.json +8 -3
package/dist/index.cjs.js
CHANGED
|
@@ -1784,7 +1784,7 @@ class RemoteHandler {
|
|
|
1784
1784
|
} else {
|
|
1785
1785
|
const messages = [
|
|
1786
1786
|
`The remote "${remote.name}" is already registered.`,
|
|
1787
|
-
|
|
1787
|
+
'Please note that overriding it may cause unexpected errors.'
|
|
1788
1788
|
];
|
|
1789
1789
|
if (options == null ? void 0 : options.force) {
|
|
1790
1790
|
// remove registered remote
|
|
@@ -1795,8 +1795,8 @@ class RemoteHandler {
|
|
|
1795
1795
|
remote,
|
|
1796
1796
|
origin: host
|
|
1797
1797
|
});
|
|
1798
|
+
sdk.warn(messages.join(' '));
|
|
1798
1799
|
}
|
|
1799
|
-
sdk.warn(messages.join(' '));
|
|
1800
1800
|
}
|
|
1801
1801
|
}
|
|
1802
1802
|
removeRemote(remote) {
|
|
@@ -2026,7 +2026,7 @@ class FederationHost {
|
|
|
2026
2026
|
// maybe will change, temporarily for internal use only
|
|
2027
2027
|
initContainer: new AsyncWaterfallHook('initContainer')
|
|
2028
2028
|
});
|
|
2029
|
-
this.version = "0.8.
|
|
2029
|
+
this.version = "0.8.4";
|
|
2030
2030
|
this.moduleCache = new Map();
|
|
2031
2031
|
this.loaderHook = new PluginSystem({
|
|
2032
2032
|
// FIXME: may not be suitable , not open to the public yet
|
package/dist/index.esm.mjs
CHANGED
|
@@ -1784,7 +1784,7 @@ class RemoteHandler {
|
|
|
1784
1784
|
} else {
|
|
1785
1785
|
const messages = [
|
|
1786
1786
|
`The remote "${remote.name}" is already registered.`,
|
|
1787
|
-
|
|
1787
|
+
'Please note that overriding it may cause unexpected errors.'
|
|
1788
1788
|
];
|
|
1789
1789
|
if (options == null ? void 0 : options.force) {
|
|
1790
1790
|
// remove registered remote
|
|
@@ -1795,8 +1795,8 @@ class RemoteHandler {
|
|
|
1795
1795
|
remote,
|
|
1796
1796
|
origin: host
|
|
1797
1797
|
});
|
|
1798
|
+
warn$1(messages.join(' '));
|
|
1798
1799
|
}
|
|
1799
|
-
warn$1(messages.join(' '));
|
|
1800
1800
|
}
|
|
1801
1801
|
}
|
|
1802
1802
|
removeRemote(remote) {
|
|
@@ -2026,7 +2026,7 @@ class FederationHost {
|
|
|
2026
2026
|
// maybe will change, temporarily for internal use only
|
|
2027
2027
|
initContainer: new AsyncWaterfallHook('initContainer')
|
|
2028
2028
|
});
|
|
2029
|
-
this.version = "0.8.
|
|
2029
|
+
this.version = "0.8.4";
|
|
2030
2030
|
this.moduleCache = new Map();
|
|
2031
2031
|
this.loaderHook = new PluginSystem({
|
|
2032
2032
|
// FIXME: may not be suitable , not open to the public yet
|
package/dist/share.cjs.js
CHANGED
|
@@ -197,7 +197,7 @@ function getGlobalFederationConstructor() {
|
|
|
197
197
|
function setGlobalFederationConstructor(FederationConstructor, isDebug = sdk.isDebugMode()) {
|
|
198
198
|
if (isDebug) {
|
|
199
199
|
CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor;
|
|
200
|
-
CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.8.
|
|
200
|
+
CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.8.4";
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
package/dist/share.esm.mjs
CHANGED
|
@@ -195,7 +195,7 @@ function getGlobalFederationConstructor() {
|
|
|
195
195
|
function setGlobalFederationConstructor(FederationConstructor, isDebug = isDebugMode()) {
|
|
196
196
|
if (isDebug) {
|
|
197
197
|
CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor;
|
|
198
|
-
CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.8.
|
|
198
|
+
CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.8.4";
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
// 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.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"author": "zhouxiao <codingzx@gmail.com>",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.esm.mjs",
|
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/module-federation/core/",
|
|
15
|
+
"directory": "packages/runtime"
|
|
16
|
+
},
|
|
12
17
|
"files": [
|
|
13
18
|
"dist/",
|
|
14
19
|
"README.md"
|
|
@@ -50,7 +55,7 @@
|
|
|
50
55
|
}
|
|
51
56
|
},
|
|
52
57
|
"dependencies": {
|
|
53
|
-
"@module-federation/sdk": "0.8.
|
|
54
|
-
"@module-federation/error-codes": "0.8.
|
|
58
|
+
"@module-federation/sdk": "0.8.4",
|
|
59
|
+
"@module-federation/error-codes": "0.8.4"
|
|
55
60
|
}
|
|
56
61
|
}
|