@module-federation/runtime 0.0.0-next-20240822032403 → 0.0.0-next-20240822035014

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
@@ -1433,9 +1433,6 @@ class SharedHandler {
1433
1433
  });
1434
1434
  // TODO: strategy==='version-first' need to be removed in the future
1435
1435
  if (host.options.shareStrategy === 'version-first' || strategy === 'version-first') {
1436
- if (strategy) {
1437
- share.warn(`"shared.strategy is deprecated, please set in initOptions.shareStrategy instead!"`);
1438
- }
1439
1436
  host.options.remotes.forEach((remote)=>{
1440
1437
  if (remote.shareScope === shareScopeName) {
1441
1438
  promises.push(initRemoteModule(remote.name));
package/dist/index.esm.js CHANGED
@@ -1431,9 +1431,6 @@ class SharedHandler {
1431
1431
  });
1432
1432
  // TODO: strategy==='version-first' need to be removed in the future
1433
1433
  if (host.options.shareStrategy === 'version-first' || strategy === 'version-first') {
1434
- if (strategy) {
1435
- warn(`"shared.strategy is deprecated, please set in initOptions.shareStrategy instead!"`);
1436
- }
1437
1434
  host.options.remotes.forEach((remote)=>{
1438
1435
  if (remote.shareScope === shareScopeName) {
1439
1436
  promises.push(initRemoteModule(remote.name));
package/dist/share.cjs.js CHANGED
@@ -697,6 +697,9 @@ function formatShare(shareArgs, from, name, shareStrategy) {
697
697
  throw new Error(`Can not get shared '${name}'!`);
698
698
  });
699
699
  }
700
+ if (shareArgs.strategy) {
701
+ warn(`"shared.strategy is deprecated, please set in initOptions.shareStrategy instead!"`);
702
+ }
700
703
  var _shareArgs_version, _shareArgs_scope, _shareArgs_strategy;
701
704
  return _extends({
702
705
  deps: [],
package/dist/share.esm.js CHANGED
@@ -695,6 +695,9 @@ function formatShare(shareArgs, from, name, shareStrategy) {
695
695
  throw new Error(`Can not get shared '${name}'!`);
696
696
  });
697
697
  }
698
+ if (shareArgs.strategy) {
699
+ warn(`"shared.strategy is deprecated, please set in initOptions.shareStrategy instead!"`);
700
+ }
698
701
  var _shareArgs_version, _shareArgs_scope, _shareArgs_strategy;
699
702
  return _extends({
700
703
  deps: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/runtime",
3
- "version": "0.0.0-next-20240822032403",
3
+ "version": "0.0.0-next-20240822035014",
4
4
  "author": "zhouxiao <codingzx@gmail.com>",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",
@@ -53,6 +53,6 @@
53
53
  }
54
54
  },
55
55
  "dependencies": {
56
- "@module-federation/sdk": "0.0.0-next-20240822032403"
56
+ "@module-federation/sdk": "0.0.0-next-20240822035014"
57
57
  }
58
58
  }