@module-federation/runtime
Advanced tools
Comparing version 0.0.0-next-20241106024856 to 0.0.0-next-20241106033151
{ | ||
"name": "@module-federation/runtime", | ||
"version": "0.6.16", | ||
"version": "0.7.0", | ||
"author": "zhouxiao <codingzx@gmail.com>", | ||
@@ -5,0 +5,0 @@ "main": "./index.cjs.js", |
@@ -157,2 +157,5 @@ 'use strict'; | ||
globalThis.__FEDERATION__.__MANIFEST_LOADING__ = {}; | ||
Object.keys(globalLoading).forEach((key)=>{ | ||
delete globalLoading[key]; | ||
}); | ||
} | ||
@@ -183,3 +186,3 @@ function getGlobalFederationInstance(name, version) { | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.16"; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.7.0"; | ||
} | ||
@@ -770,2 +773,5 @@ } | ||
}; | ||
const isLoading = (shared)=>{ | ||
return Boolean(shared.loading); | ||
}; | ||
function findSingletonVersionOrderByVersion(shareScopeMap, scope, pkgName) { | ||
@@ -781,4 +787,7 @@ const versions = shareScopeMap[scope][pkgName]; | ||
const callback = function(prev, cur) { | ||
if (isLoaded(versions[cur])) { | ||
if (isLoaded(versions[prev])) { | ||
const isLoadingOrLoaded = (shared)=>{ | ||
return isLoaded(shared) || isLoading(shared); | ||
}; | ||
if (isLoadingOrLoaded(versions[cur])) { | ||
if (isLoadingOrLoaded(versions[prev])) { | ||
return Boolean(versionLt(prev, cur)); | ||
@@ -789,3 +798,3 @@ } else { | ||
} | ||
if (isLoaded(versions[prev])) { | ||
if (isLoadingOrLoaded(versions[prev])) { | ||
return false; | ||
@@ -792,0 +801,0 @@ } |
{ | ||
"name": "@module-federation/runtime", | ||
"version": "0.0.0-next-20241106024856", | ||
"version": "0.0.0-next-20241106033151", | ||
"author": "zhouxiao <codingzx@gmail.com>", | ||
@@ -53,5 +53,5 @@ "main": "./dist/index.cjs.js", | ||
"dependencies": { | ||
"@module-federation/sdk": "0.0.0-next-20241106024856", | ||
"@module-federation/error-codes": "0.0.0-next-20241106024856" | ||
"@module-federation/sdk": "0.0.0-next-20241106033151", | ||
"@module-federation/error-codes": "0.0.0-next-20241106033151" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
323724
7558
+ Added@module-federation/error-codes@0.0.0-next-20241106033151(transitive)
+ Added@module-federation/sdk@0.0.0-next-20241106033151(transitive)
- Removed@module-federation/error-codes@0.0.0-next-20241106024856(transitive)
- Removed@module-federation/sdk@0.0.0-next-20241106024856(transitive)
Updated@module-federation/error-codes@0.0.0-next-20241106033151