@module-federation/runtime 0.0.0-next-20240202072805 → 0.0.0-next-20240202083257

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 CHANGED
@@ -1402,7 +1402,7 @@ class FederationHost {
1402
1402
  const versions = scope[name];
1403
1403
  const activeVersion = versions[version];
1404
1404
  const activeVersionEager = Boolean(activeVersion && (activeVersion.eager || ((_activeVersion_shareConfig = activeVersion.shareConfig) == null ? void 0 : _activeVersion_shareConfig.eager)));
1405
- if (!activeVersion || !activeVersion.loaded && (Boolean(!eager) !== !activeVersionEager ? eager : hostName > activeVersion.from)) {
1405
+ if (!activeVersion || activeVersion.strategy !== 'loaded-first' && !activeVersion.loaded && (Boolean(!eager) !== !activeVersionEager ? eager : hostName > activeVersion.from)) {
1406
1406
  versions[version] = shared;
1407
1407
  }
1408
1408
  };
package/dist/index.esm.js CHANGED
@@ -1400,7 +1400,7 @@ class FederationHost {
1400
1400
  const versions = scope[name];
1401
1401
  const activeVersion = versions[version];
1402
1402
  const activeVersionEager = Boolean(activeVersion && (activeVersion.eager || ((_activeVersion_shareConfig = activeVersion.shareConfig) == null ? void 0 : _activeVersion_shareConfig.eager)));
1403
- if (!activeVersion || !activeVersion.loaded && (Boolean(!eager) !== !activeVersionEager ? eager : hostName > activeVersion.from)) {
1403
+ if (!activeVersion || activeVersion.strategy !== 'loaded-first' && !activeVersion.loaded && (Boolean(!eager) !== !activeVersionEager ? eager : hostName > activeVersion.from)) {
1404
1404
  versions[version] = shared;
1405
1405
  }
1406
1406
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/runtime",
3
- "version": "0.0.0-next-20240202072805",
3
+ "version": "0.0.0-next-20240202083257",
4
4
  "author": "zhouxiao <codingzx@gmail.com>",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.esm.js",
@@ -45,6 +45,6 @@
45
45
  }
46
46
  },
47
47
  "dependencies": {
48
- "@module-federation/sdk": "0.0.0-next-20240202072805"
48
+ "@module-federation/sdk": "0.0.0-next-20240202083257"
49
49
  }
50
50
  }