@module-federation/bridge-react 2.3.3 → 2.5.0

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 (75) hide show
  1. package/dist/base.cjs.js +2 -2
  2. package/dist/base.es.js +3 -3
  3. package/dist/data-fetch-server-middleware.es.js +1 -1
  4. package/dist/data-fetch-utils.cjs.js +1 -1
  5. package/dist/data-fetch-utils.es.js +4 -4
  6. package/dist/data-fetch.cjs.js +22 -0
  7. package/dist/data-fetch.d.ts +140 -0
  8. package/dist/data-fetch.es.js +22 -0
  9. package/dist/index.cjs.js +2 -2
  10. package/dist/index.es.js +3 -3
  11. package/dist/{lazy-load-component-plugin-DZDwZ0Kz.js → lazy-load-component-plugin-8zeSnzyV.js} +1 -1
  12. package/dist/{lazy-load-component-plugin-Bf_HsMyF.mjs → lazy-load-component-plugin-B3GJRx1-.mjs} +2 -2
  13. package/dist/lazy-load-component-plugin.cjs.js +2 -2
  14. package/dist/lazy-load-component-plugin.es.js +2 -2
  15. package/dist/lazy-utils.es.js +17 -17
  16. package/dist/{prefetch-DYFX9hl9.js → prefetch-DVsz9M2C.js} +210 -82
  17. package/dist/{prefetch-ByDYONsx.mjs → prefetch-zNZ70qRm.mjs} +211 -83
  18. package/dist/{utils-D4k5eixv.mjs → utils-DGS4pYp8.mjs} +23 -23
  19. package/package.json +18 -10
  20. package/.turbo/turbo-build.log +0 -85
  21. package/CHANGELOG.md +0 -839
  22. package/__tests__/bridge.spec.tsx +0 -160
  23. package/__tests__/createLazyComponent.spec.tsx +0 -209
  24. package/__tests__/prefetch.spec.ts +0 -156
  25. package/__tests__/router.spec.tsx +0 -82
  26. package/__tests__/setupTests.ts +0 -8
  27. package/__tests__/util.ts +0 -36
  28. package/jest.config.ts +0 -21
  29. package/src/base.ts +0 -50
  30. package/src/index.ts +0 -50
  31. package/src/lazy/AwaitDataFetch.tsx +0 -217
  32. package/src/lazy/constant.ts +0 -30
  33. package/src/lazy/createLazyComponent.tsx +0 -411
  34. package/src/lazy/data-fetch/cache.ts +0 -291
  35. package/src/lazy/data-fetch/call-data-fetch.ts +0 -13
  36. package/src/lazy/data-fetch/data-fetch-server-middleware.ts +0 -196
  37. package/src/lazy/data-fetch/index.ts +0 -16
  38. package/src/lazy/data-fetch/inject-data-fetch.ts +0 -109
  39. package/src/lazy/data-fetch/prefetch.ts +0 -112
  40. package/src/lazy/data-fetch/runtime-plugin.ts +0 -115
  41. package/src/lazy/index.ts +0 -35
  42. package/src/lazy/logger.ts +0 -6
  43. package/src/lazy/types.ts +0 -75
  44. package/src/lazy/utils.ts +0 -375
  45. package/src/lazy/wrapNoSSR.tsx +0 -10
  46. package/src/modern-app-env.d.ts +0 -2
  47. package/src/plugins/lazy-load-component-plugin.spec.ts +0 -21
  48. package/src/plugins/lazy-load-component-plugin.ts +0 -57
  49. package/src/provider/context.tsx +0 -4
  50. package/src/provider/plugin.ts +0 -22
  51. package/src/provider/versions/bridge-base.tsx +0 -153
  52. package/src/provider/versions/legacy.ts +0 -87
  53. package/src/provider/versions/v18.ts +0 -47
  54. package/src/provider/versions/v19.ts +0 -48
  55. package/src/remote/RemoteAppWrapper.tsx +0 -108
  56. package/src/remote/base-component/component.tsx +0 -2
  57. package/src/remote/base-component/create.tsx +0 -23
  58. package/src/remote/base-component/index.tsx +0 -10
  59. package/src/remote/createHelpers.tsx +0 -132
  60. package/src/remote/router-component/component.tsx +0 -104
  61. package/src/remote/router-component/create.tsx +0 -23
  62. package/src/remote/router-component/index.tsx +0 -10
  63. package/src/router/default.tsx +0 -73
  64. package/src/router/v5.tsx +0 -43
  65. package/src/router/v6.tsx +0 -74
  66. package/src/router/v7.tsx +0 -75
  67. package/src/types.ts +0 -147
  68. package/src/utils/index.ts +0 -44
  69. package/src/v18.ts +0 -9
  70. package/src/v19.ts +0 -9
  71. package/tsconfig.json +0 -42
  72. package/tsconfig.node.json +0 -11
  73. package/tsconfig.spec.json +0 -26
  74. package/vite.config.ts +0 -112
  75. package/vitest.config.ts +0 -27
@@ -1,85 +0,0 @@
1
-
2
- > @module-federation/bridge-react@2.3.3 build /home/runner/work/core/core/packages/bridge/bridge-react
3
- > vite build
4
-
5
- The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
6
- vite v5.4.21 building for production...
7
- transforming...
8
- ../../../node_modules/.pnpm/react-error-boundary@4.1.2_react@18.3.1/node_modules/react-error-boundary/dist/react-error-boundary.esm.js (1:0): Module level directives cause errors when bundled, "use client" in "../../../node_modules/.pnpm/react-error-boundary@4.1.2_react@18.3.1/node_modules/react-error-boundary/dist/react-error-boundary.esm.js" was ignored.
9
- ✓ 98 modules transformed.
10
- Entry module "src/provider/plugin.ts" is using named and default exports together. Consumers of your bundle will have to use `chunk.default` to access the default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.
11
- Entry module "src/plugins/lazy-load-component-plugin.ts" is using named and default exports together. Consumers of your bundle will have to use `chunk.default` to access the default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.
12
- rendering chunks...
13
- 
14
- [vite:dts] Start generate declaration files...
15
- computing gzip size...
16
- dist/lazy-load-component-plugin.cjs.js  0.39 kB │ gzip: 0.23 kB
17
- dist/plugin.cjs.js  0.43 kB │ gzip: 0.27 kB
18
- dist/v18.cjs.js  0.54 kB │ gzip: 0.29 kB
19
- dist/v19.cjs.js  0.54 kB │ gzip: 0.29 kB
20
- dist/data-fetch-utils.cjs.js  0.87 kB │ gzip: 0.41 kB
21
- dist/index-DbjGCKOr.js  1.22 kB │ gzip: 0.53 kB
22
- dist/lazy-utils.cjs.js  1.27 kB │ gzip: 0.40 kB
23
- dist/base.cjs.js  1.58 kB │ gzip: 0.51 kB
24
- dist/router-v5.cjs.js  1.98 kB │ gzip: 0.73 kB
25
- dist/router.cjs.js  3.13 kB │ gzip: 0.90 kB
26
- dist/router-v7.cjs.js  3.27 kB │ gzip: 0.95 kB
27
- dist/router-v6.cjs.js  3.28 kB │ gzip: 0.95 kB
28
- dist/logger-Dxblx6P-.js  3.78 kB │ gzip: 1.22 kB
29
- dist/index.cjs.js  5.25 kB │ gzip: 1.52 kB
30
- dist/data-fetch-server-middleware.cjs.js  5.79 kB │ gzip: 1.73 kB
31
- dist/createHelpers-9B0ttrN_.js  7.32 kB │ gzip: 1.95 kB
32
- dist/bridge-base-IlvdqYIj.js  7.70 kB │ gzip: 2.11 kB
33
- dist/lazy-load-component-plugin-DZDwZ0Kz.js 17.65 kB │ gzip: 4.21 kB
34
- dist/prefetch-DYFX9hl9.js 32.08 kB │ gzip: 7.85 kB
35
- dist/utils-CFTy4LVE.js 72.53 kB │ gzip: 15.19 kB
36
- [vite:dts] Start rollup declaration files...
37
- Analysis will use the bundled TypeScript version 5.8.2
38
- *** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
39
- Analysis will use the bundled TypeScript version 5.8.2
40
- *** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
41
- Analysis will use the bundled TypeScript version 5.8.2
42
- *** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
43
- Analysis will use the bundled TypeScript version 5.8.2
44
- *** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
45
- Analysis will use the bundled TypeScript version 5.8.2
46
- *** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
47
- Analysis will use the bundled TypeScript version 5.8.2
48
- *** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
49
- Analysis will use the bundled TypeScript version 5.8.2
50
- *** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
51
- Analysis will use the bundled TypeScript version 5.8.2
52
- *** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
53
- Analysis will use the bundled TypeScript version 5.8.2
54
- *** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
55
- Analysis will use the bundled TypeScript version 5.8.2
56
- *** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
57
- Analysis will use the bundled TypeScript version 5.8.2
58
- *** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
59
- Analysis will use the bundled TypeScript version 5.8.2
60
- *** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
61
- Analysis will use the bundled TypeScript version 5.8.2
62
- *** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
63
- [vite:dts] Declaration files built in 46431ms.
64
- 
65
- dist/lazy-load-component-plugin.es.js  0.17 kB │ gzip: 0.15 kB
66
- dist/plugin.es.js  0.29 kB │ gzip: 0.18 kB
67
- dist/v18.es.js  0.44 kB │ gzip: 0.23 kB
68
- dist/v19.es.js  0.44 kB │ gzip: 0.23 kB
69
- dist/lazy-utils.es.js  0.64 kB │ gzip: 0.34 kB
70
- dist/data-fetch-utils.es.js  0.68 kB │ gzip: 0.35 kB
71
- dist/base.es.js  1.07 kB │ gzip: 0.46 kB
72
- dist/index-Bs2NxD2z.mjs  1.16 kB │ gzip: 0.54 kB
73
- dist/router-v5.es.js  1.18 kB │ gzip: 0.45 kB
74
- dist/router.es.js  2.35 kB │ gzip: 0.63 kB
75
- dist/router-v6.es.js  2.45 kB │ gzip: 0.67 kB
76
- dist/router-v7.es.js  2.52 kB │ gzip: 0.69 kB
77
- dist/logger-DwWkXsWl.mjs  3.71 kB │ gzip: 1.22 kB
78
- dist/index.es.js  4.23 kB │ gzip: 1.33 kB
79
- dist/data-fetch-server-middleware.es.js  5.73 kB │ gzip: 1.76 kB
80
- dist/bridge-base-EnVXD4Hr.mjs  7.11 kB │ gzip: 1.92 kB
81
- dist/createHelpers-D77sECmY.mjs  7.27 kB │ gzip: 1.96 kB
82
- dist/lazy-load-component-plugin-Bf_HsMyF.mjs 17.79 kB │ gzip: 4.33 kB
83
- dist/prefetch-ByDYONsx.mjs 32.10 kB │ gzip: 7.91 kB
84
- dist/utils-D4k5eixv.mjs 71.78 kB │ gzip: 15.18 kB
85
- ✓ built in 48.84s