@module-federation/runtime 0.6.1 → 0.6.3
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 +18 -14
- package/dist/index.esm.js +18 -14
- package/dist/package.json +1 -1
- package/dist/share.cjs.js +1 -1
- package/dist/share.esm.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1471,21 +1471,25 @@ class SharedHandler {
|
|
|
1471
1471
|
if (!this.shareScopeMap[sc][pkgName]) {
|
|
1472
1472
|
this.shareScopeMap[sc][pkgName] = {};
|
|
1473
1473
|
}
|
|
1474
|
-
if (this.shareScopeMap[sc][pkgName][version]) {
|
|
1474
|
+
if (!this.shareScopeMap[sc][pkgName][version]) {
|
|
1475
|
+
this.shareScopeMap[sc][pkgName][version] = polyfills._extends({
|
|
1476
|
+
version,
|
|
1477
|
+
scope: [
|
|
1478
|
+
'default'
|
|
1479
|
+
]
|
|
1480
|
+
}, shareInfo, {
|
|
1481
|
+
lib,
|
|
1482
|
+
loaded,
|
|
1483
|
+
loading
|
|
1484
|
+
});
|
|
1485
|
+
if (get) {
|
|
1486
|
+
this.shareScopeMap[sc][pkgName][version].get = get;
|
|
1487
|
+
}
|
|
1475
1488
|
return;
|
|
1476
1489
|
}
|
|
1477
|
-
this.shareScopeMap[sc][pkgName][version]
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
'default'
|
|
1481
|
-
]
|
|
1482
|
-
}, shareInfo, {
|
|
1483
|
-
lib,
|
|
1484
|
-
loaded,
|
|
1485
|
-
loading
|
|
1486
|
-
});
|
|
1487
|
-
if (get) {
|
|
1488
|
-
this.shareScopeMap[sc][pkgName][version].get = get;
|
|
1490
|
+
const registeredShared = this.shareScopeMap[sc][pkgName][version];
|
|
1491
|
+
if (loading && !registeredShared.loading) {
|
|
1492
|
+
registeredShared.loading = loading;
|
|
1489
1493
|
}
|
|
1490
1494
|
});
|
|
1491
1495
|
}
|
|
@@ -1974,7 +1978,7 @@ class FederationHost {
|
|
|
1974
1978
|
// maybe will change, temporarily for internal use only
|
|
1975
1979
|
initContainer: new AsyncWaterfallHook('initContainer')
|
|
1976
1980
|
});
|
|
1977
|
-
this.version = "0.6.
|
|
1981
|
+
this.version = "0.6.3";
|
|
1978
1982
|
this.moduleCache = new Map();
|
|
1979
1983
|
this.loaderHook = new PluginSystem({
|
|
1980
1984
|
// FIXME: may not be suitable , not open to the public yet
|
package/dist/index.esm.js
CHANGED
|
@@ -1469,21 +1469,25 @@ class SharedHandler {
|
|
|
1469
1469
|
if (!this.shareScopeMap[sc][pkgName]) {
|
|
1470
1470
|
this.shareScopeMap[sc][pkgName] = {};
|
|
1471
1471
|
}
|
|
1472
|
-
if (this.shareScopeMap[sc][pkgName][version]) {
|
|
1472
|
+
if (!this.shareScopeMap[sc][pkgName][version]) {
|
|
1473
|
+
this.shareScopeMap[sc][pkgName][version] = _extends({
|
|
1474
|
+
version,
|
|
1475
|
+
scope: [
|
|
1476
|
+
'default'
|
|
1477
|
+
]
|
|
1478
|
+
}, shareInfo, {
|
|
1479
|
+
lib,
|
|
1480
|
+
loaded,
|
|
1481
|
+
loading
|
|
1482
|
+
});
|
|
1483
|
+
if (get) {
|
|
1484
|
+
this.shareScopeMap[sc][pkgName][version].get = get;
|
|
1485
|
+
}
|
|
1473
1486
|
return;
|
|
1474
1487
|
}
|
|
1475
|
-
this.shareScopeMap[sc][pkgName][version]
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
'default'
|
|
1479
|
-
]
|
|
1480
|
-
}, shareInfo, {
|
|
1481
|
-
lib,
|
|
1482
|
-
loaded,
|
|
1483
|
-
loading
|
|
1484
|
-
});
|
|
1485
|
-
if (get) {
|
|
1486
|
-
this.shareScopeMap[sc][pkgName][version].get = get;
|
|
1488
|
+
const registeredShared = this.shareScopeMap[sc][pkgName][version];
|
|
1489
|
+
if (loading && !registeredShared.loading) {
|
|
1490
|
+
registeredShared.loading = loading;
|
|
1487
1491
|
}
|
|
1488
1492
|
});
|
|
1489
1493
|
}
|
|
@@ -1972,7 +1976,7 @@ class FederationHost {
|
|
|
1972
1976
|
// maybe will change, temporarily for internal use only
|
|
1973
1977
|
initContainer: new AsyncWaterfallHook('initContainer')
|
|
1974
1978
|
});
|
|
1975
|
-
this.version = "0.6.
|
|
1979
|
+
this.version = "0.6.3";
|
|
1976
1980
|
this.moduleCache = new Map();
|
|
1977
1981
|
this.loaderHook = new PluginSystem({
|
|
1978
1982
|
// FIXME: may not be suitable , not open to the public yet
|
package/dist/package.json
CHANGED
package/dist/share.cjs.js
CHANGED
|
@@ -175,7 +175,7 @@ function getGlobalFederationConstructor() {
|
|
|
175
175
|
function setGlobalFederationConstructor(FederationConstructor, isDebug = sdk.isDebugMode()) {
|
|
176
176
|
if (isDebug) {
|
|
177
177
|
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor;
|
|
178
|
-
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.
|
|
178
|
+
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.3";
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
package/dist/share.esm.js
CHANGED
|
@@ -173,7 +173,7 @@ function getGlobalFederationConstructor() {
|
|
|
173
173
|
function setGlobalFederationConstructor(FederationConstructor, isDebug = isDebugMode()) {
|
|
174
174
|
if (isDebug) {
|
|
175
175
|
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor;
|
|
176
|
-
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.
|
|
176
|
+
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.3";
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
// 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.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"author": "zhouxiao <codingzx@gmail.com>",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -50,6 +50,6 @@
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@module-federation/sdk": "0.6.
|
|
53
|
+
"@module-federation/sdk": "0.6.3"
|
|
54
54
|
}
|
|
55
55
|
}
|