@module-federation/utilities 3.0.3-0 → 3.0.5

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 (51) hide show
  1. package/LICENSE +21 -0
  2. package/dist/index.cjs.d.ts +1 -0
  3. package/dist/index.cjs.default.js +1 -0
  4. package/dist/index.cjs.js +1426 -0
  5. package/dist/index.cjs.mjs +2 -0
  6. package/dist/index.esm.js +1393 -0
  7. package/dist/package.json +54 -0
  8. package/{src → dist/src}/index.d.ts +1 -1
  9. package/{src → dist/src}/utils/pure.d.ts +1 -1
  10. package/package.json +27 -14
  11. package/CHANGELOG.md +0 -944
  12. package/src/Logger.js +0 -15
  13. package/src/Logger.js.map +0 -1
  14. package/src/components/ErrorBoundary.js +0 -33
  15. package/src/components/ErrorBoundary.js.map +0 -1
  16. package/src/components/FederationBoundary.js +0 -71
  17. package/src/components/FederationBoundary.js.map +0 -1
  18. package/src/index.js +0 -37
  19. package/src/index.js.map +0 -1
  20. package/src/plugins/DelegateModulesPlugin.js +0 -84
  21. package/src/plugins/DelegateModulesPlugin.js.map +0 -1
  22. package/src/types/index.js +0 -5
  23. package/src/types/index.js.map +0 -1
  24. package/src/utils/common.js +0 -168
  25. package/src/utils/common.js.map +0 -1
  26. package/src/utils/correctImportPath.d.ts +0 -1
  27. package/src/utils/correctImportPath.js +0 -24
  28. package/src/utils/correctImportPath.js.map +0 -1
  29. package/src/utils/getRuntimeRemotes.js +0 -49
  30. package/src/utils/getRuntimeRemotes.js.map +0 -1
  31. package/src/utils/importDelegatedModule.js +0 -87
  32. package/src/utils/importDelegatedModule.js.map +0 -1
  33. package/src/utils/importRemote.js +0 -119
  34. package/src/utils/importRemote.js.map +0 -1
  35. package/src/utils/isEmpty.js +0 -11
  36. package/src/utils/isEmpty.js.map +0 -1
  37. package/src/utils/pure.js +0 -150
  38. package/src/utils/pure.js.map +0 -1
  39. package/src/utils/react.js +0 -9
  40. package/src/utils/react.js.map +0 -1
  41. /package/{src → dist/src}/Logger.d.ts +0 -0
  42. /package/{src → dist/src}/components/ErrorBoundary.d.ts +0 -0
  43. /package/{src → dist/src}/components/FederationBoundary.d.ts +0 -0
  44. /package/{src → dist/src}/plugins/DelegateModulesPlugin.d.ts +0 -0
  45. /package/{src → dist/src}/types/index.d.ts +0 -0
  46. /package/{src → dist/src}/utils/common.d.ts +0 -0
  47. /package/{src → dist/src}/utils/getRuntimeRemotes.d.ts +0 -0
  48. /package/{src → dist/src}/utils/importDelegatedModule.d.ts +0 -0
  49. /package/{src → dist/src}/utils/importRemote.d.ts +0 -0
  50. /package/{src → dist/src}/utils/isEmpty.d.ts +0 -0
  51. /package/{src → dist/src}/utils/react.d.ts +0 -0
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@module-federation/utilities",
3
+ "version": "3.0.5",
4
+ "type": "commonjs",
5
+ "main": "./index.cjs.js",
6
+ "types": "./dist/index.cjs.d.ts",
7
+ "license": "MIT",
8
+ "publishConfig": {
9
+ "access": "public"
10
+ },
11
+ "files": [
12
+ "dist/",
13
+ "README.md"
14
+ ],
15
+ "repository": "https://github.com/module-federation/universe/tree/main/packages/utilities",
16
+ "devDependencies": {
17
+ "react": "18.2.0"
18
+ },
19
+ "peerDependencies": {
20
+ "webpack": "^5.40.0",
21
+ "react-dom": "^16 || ^17 || ^18",
22
+ "react": "^16 || ^17 || ^18"
23
+ },
24
+ "peerDependenciesMeta": {
25
+ "react": {
26
+ "optional": true
27
+ },
28
+ "react-dom": {
29
+ "optional": true
30
+ },
31
+ "next": {
32
+ "optional": true
33
+ }
34
+ },
35
+ "exports": {
36
+ ".": {
37
+ "module": "./index.esm.js",
38
+ "import": "./index.cjs.mjs",
39
+ "default": "./index.cjs.js"
40
+ },
41
+ "./package.json": "./package.json"
42
+ },
43
+ "typesVersions": {
44
+ "*": {
45
+ ".": [
46
+ "./dist/index.cjs.d.ts"
47
+ ],
48
+ "type": [
49
+ "./dist/type.cjs.d.ts"
50
+ ]
51
+ }
52
+ },
53
+ "module": "./index.esm.js"
54
+ }
@@ -4,7 +4,7 @@ export type { LoggerInstance } from './Logger';
4
4
  export { createDelegatedModule, createRuntimeVariables, getContainer, injectScript, getModule, } from './utils/common';
5
5
  export { isObjectEmpty } from './utils/isEmpty';
6
6
  export { importRemote } from './utils/importRemote';
7
- export { correctImportPath } from './utils/correctImportPath';
8
7
  export { Logger } from './Logger';
9
8
  export { getRuntimeRemotes } from './utils/getRuntimeRemotes';
10
9
  export { importDelegatedModule } from './utils/importDelegatedModule';
10
+ export { extractUrlAndGlobal, loadScript } from './utils/pure';
@@ -1,4 +1,4 @@
1
- import { RemoteVars, RuntimeRemote, RuntimeRemotesMap } from '../types/index';
1
+ import { RemoteVars, RuntimeRemote, RuntimeRemotesMap } from '../types';
2
2
  export declare const remoteVars: RemoteVars;
3
3
  export declare const extractUrlAndGlobal: (urlAndGlobal: string) => [string, string];
4
4
  export declare const loadScript: (keyOrRuntimeRemoteItem: string | RuntimeRemote) => any;
package/package.json CHANGED
@@ -1,36 +1,49 @@
1
1
  {
2
2
  "name": "@module-federation/utilities",
3
- "version": "3.0.3-0",
3
+ "version": "3.0.5",
4
4
  "type": "commonjs",
5
- "main": "./src/index.js",
6
- "types": "src/index.d.ts",
5
+ "main": "./dist/index.cjs.js",
6
+ "types": "./dist/index.cjs.d.ts",
7
7
  "license": "MIT",
8
8
  "publishConfig": {
9
- "registry": "https://registry.npmjs.org/"
9
+ "access": "public"
10
10
  },
11
+ "files": [
12
+ "dist/",
13
+ "README.md"
14
+ ],
11
15
  "repository": "https://github.com/module-federation/universe/tree/main/packages/utilities",
12
16
  "devDependencies": {
13
- "next": "13.5.3",
14
17
  "react": "18.2.0"
15
18
  },
16
19
  "peerDependencies": {
17
- "next": "^12 || ^13",
18
- "react": "^16 || ^17 || ^18",
20
+ "webpack": "^5.40.0",
19
21
  "react-dom": "^16 || ^17 || ^18",
20
- "webpack": "^5.40.0"
22
+ "react": "^16 || ^17 || ^18"
21
23
  },
22
24
  "peerDependenciesMeta": {
23
- "next": {
24
- "optional": true
25
- },
26
25
  "react": {
27
26
  "optional": true
28
27
  },
29
28
  "react-dom": {
30
29
  "optional": true
30
+ },
31
+ "next": {
32
+ "optional": true
31
33
  }
32
34
  },
33
- "dependencies": {
34
- "webpack-sources": "3.2.3"
35
+ "exports": {
36
+ ".": "./dist/index.cjs.js",
37
+ "./package.json": "./package.json"
38
+ },
39
+ "typesVersions": {
40
+ "*": {
41
+ ".": [
42
+ "./dist/index.cjs.d.ts"
43
+ ],
44
+ "type": [
45
+ "./dist/type.cjs.d.ts"
46
+ ]
47
+ }
35
48
  }
36
- }
49
+ }