@module-federation/utilities 3.1.96 → 3.1.98

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.
Files changed (32) hide show
  1. package/dist/cjs/Logger.js +17 -14
  2. package/dist/cjs/components/ErrorBoundary.js +14 -12
  3. package/dist/cjs/components/FederationBoundary.js +14 -12
  4. package/dist/cjs/index.js +62 -60
  5. package/dist/cjs/plugins/DelegateModulesPlugin.js +21 -18
  6. package/dist/cjs/types/index.js +2 -4
  7. package/dist/cjs/utils/common.js +17 -15
  8. package/dist/cjs/utils/getRuntimeRemotes.js +13 -11
  9. package/dist/cjs/utils/getRuntimeRemotes.test.js +2 -2
  10. package/dist/cjs/utils/importDelegateModule.test.js +2 -4
  11. package/dist/cjs/utils/importDelegatedModule.js +13 -11
  12. package/dist/cjs/utils/importRemote.js +21 -19
  13. package/dist/cjs/utils/isEmpty.js +18 -14
  14. package/dist/cjs/utils/pure.js +21 -18
  15. package/dist/cjs/utils/react.js +13 -11
  16. package/dist/esm/Logger.mjs +0 -2
  17. package/dist/esm/components/ErrorBoundary.mjs +2 -4
  18. package/dist/esm/components/FederationBoundary.mjs +2 -5
  19. package/dist/esm/index.mjs +7 -17
  20. package/dist/esm/plugins/DelegateModulesPlugin.mjs +4 -7
  21. package/dist/esm/rslib-runtime.mjs +37 -0
  22. package/dist/esm/types/index.mjs +0 -2
  23. package/dist/esm/utils/common.mjs +2 -12
  24. package/dist/esm/utils/getRuntimeRemotes.mjs +0 -2
  25. package/dist/esm/utils/getRuntimeRemotes.test.mjs +0 -3
  26. package/dist/esm/utils/importDelegateModule.test.mjs +1 -19
  27. package/dist/esm/utils/importDelegatedModule.mjs +0 -2
  28. package/dist/esm/utils/importRemote.mjs +4 -36
  29. package/dist/esm/utils/isEmpty.mjs +0 -2
  30. package/dist/esm/utils/pure.mjs +1 -27
  31. package/dist/esm/utils/react.mjs +1 -5
  32. package/package.json +2 -2
@@ -1,31 +1,5 @@
1
- var __webpack_modules__ = ({});
2
- /************************************************************************/
3
- // The module cache
4
- var __webpack_module_cache__ = {};
1
+ import { __webpack_require__ } from "../rslib-runtime.mjs";
5
2
 
6
- // The require function
7
- function __webpack_require__(moduleId) {
8
-
9
- // Check if module is in cache
10
- var cachedModule = __webpack_module_cache__[moduleId];
11
- if (cachedModule !== undefined) {
12
- return cachedModule.exports;
13
- }
14
- // Create a new module (and put it into the cache)
15
- var module = (__webpack_module_cache__[moduleId] = {
16
- exports: {}
17
- });
18
- // Execute the module function
19
- __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
20
-
21
- // Return the exports of the module
22
- return module.exports;
23
-
24
- }
25
-
26
- /************************************************************************/
27
-
28
- ;// CONCATENATED MODULE: ./src/utils/pure.ts
29
3
  const pure = typeof process !== 'undefined' ? process.env['REMOTES'] || {} : {};
30
4
  const remoteVars = pure;
31
5
  const extractUrlAndGlobal = (urlAndGlobal)=>{
@@ -1,8 +1,4 @@
1
- import FederationBoundary from "../components/FederationBoundary.mjs";
2
1
 
3
- ;// CONCATENATED MODULE: external "../components/FederationBoundary.mjs"
4
2
 
5
- ;// CONCATENATED MODULE: ./src/utils/react.tsx
6
3
 
7
-
8
- export { FederationBoundary };
4
+ export { default as FederationBoundary } from "../components/FederationBoundary.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/utilities",
3
- "version": "3.1.96",
3
+ "version": "3.1.98",
4
4
  "main": "./dist/cjs/index.js",
5
5
  "module": "./dist/esm/index.mjs",
6
6
  "types": "./dist/types/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  "rsbuild-plugin-publint": "^0.2.1"
24
24
  },
25
25
  "dependencies": {
26
- "@module-federation/sdk": "2.5.1"
26
+ "@module-federation/sdk": "2.7.0"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "react": "^16 || ^17 || ^18",