@module-federation/node 2.0.2-beta.2 → 2.0.2-beta.3

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 (43) hide show
  1. package/CHANGELOG.md +154 -125
  2. package/package.json +13 -8
  3. package/src/filesystem/stratagies.d.ts +3 -3
  4. package/src/filesystem/stratagies.js +22 -23
  5. package/src/filesystem/stratagies.js.map +1 -1
  6. package/src/index.d.ts +3 -0
  7. package/src/index.js +7 -1
  8. package/src/index.js.map +1 -1
  9. package/src/plugins/AutomaticPublicPathPlugin.d.ts +9 -0
  10. package/src/plugins/AutomaticPublicPathPlugin.js +38 -0
  11. package/src/plugins/AutomaticPublicPathPlugin.js.map +1 -0
  12. package/src/plugins/ChunkCorrelationPlugin.d.ts +3 -3
  13. package/src/plugins/ChunkCorrelationPlugin.js +23 -7
  14. package/src/plugins/ChunkCorrelationPlugin.js.map +1 -1
  15. package/src/plugins/CommonJsChunkLoadingPlugin.d.ts +4 -4
  16. package/src/plugins/CommonJsChunkLoadingPlugin.js +22 -19
  17. package/src/plugins/CommonJsChunkLoadingPlugin.js.map +1 -1
  18. package/src/plugins/DynamicFilesystemChunkLoadingRuntimeModule.js +15 -13
  19. package/src/plugins/DynamicFilesystemChunkLoadingRuntimeModule.js.map +1 -1
  20. package/src/plugins/NodeContainerPlugin.d.ts +57 -0
  21. package/src/plugins/NodeContainerPlugin.js +105 -0
  22. package/src/plugins/NodeContainerPlugin.js.map +1 -0
  23. package/src/plugins/NodeFederationPlugin.d.ts +4 -1
  24. package/src/plugins/NodeFederationPlugin.js +43 -18
  25. package/src/plugins/NodeFederationPlugin.js.map +1 -1
  26. package/src/plugins/RemotePublicPathRuntimeModule.d.ts +3 -3
  27. package/src/plugins/RemotePublicPathRuntimeModule.js +54 -30
  28. package/src/plugins/RemotePublicPathRuntimeModule.js.map +1 -1
  29. package/src/plugins/{parts.js → webpackChunkUtilities.js} +15 -6
  30. package/src/plugins/webpackChunkUtilities.js.map +1 -0
  31. package/src/utils/flush-chunks.js +1 -0
  32. package/src/utils/flush-chunks.js.map +1 -1
  33. package/src/utils/hot-reload.d.ts +7 -1
  34. package/src/utils/hot-reload.js +97 -91
  35. package/src/utils/hot-reload.js.map +1 -1
  36. package/src/filesystem/DynamicFilesystemRuntimeModule.d.ts +0 -6
  37. package/src/filesystem/DynamicFilesystemRuntimeModule.js +0 -30
  38. package/src/filesystem/DynamicFilesystemRuntimeModule.js.map +0 -1
  39. package/src/plugins/FederationModuleInfoRuntimeModule.d.ts +0 -9
  40. package/src/plugins/FederationModuleInfoRuntimeModule.js +0 -55
  41. package/src/plugins/FederationModuleInfoRuntimeModule.js.map +0 -1
  42. package/src/plugins/parts.js.map +0 -1
  43. /package/src/plugins/{parts.d.ts → webpackChunkUtilities.d.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -2,265 +2,294 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
- ## [2.0.2-beta.2](https://github.com/module-federation/nextjs-mf/compare/node-2.0.2-beta.1...node-2.0.2-beta.2) (2023-09-15)
5
+ ## [2.0.2-beta.3](https://github.com/module-federation/nextjs-mf/compare/node-2.0.2-beta.2...node-2.0.2-beta.3) (2023-10-03)
6
6
 
7
7
 
8
8
  ### Bug Fixes
9
9
 
10
- * Auto Public Path, detect multiple output targets ([65f17b1](https://github.com/module-federation/nextjs-mf/commit/65f17b189f37e0ad9e72bb0bf04463e9c5455929))
11
- * ensure custom FS works with target: node or async node preset ([a08fcab](https://github.com/module-federation/nextjs-mf/commit/a08fcab7dde903966d34be9dab0b34c8896948ca))
12
-
10
+ * add exported file ([19b1afb](https://github.com/module-federation/nextjs-mf/commit/19b1afbd58572897f36b16926f841e35d154c712))
11
+ * bad impleentation during federation port ([cc2e53f](https://github.com/module-federation/nextjs-mf/commit/cc2e53f0351fb94c9068223ad6b8d990a913ab53))
12
+ * chunk flushing ([c9df545](https://github.com/module-federation/nextjs-mf/commit/c9df5451c84e6458b392884492bf669bf7383d5c))
13
+ * dont crash offline remotes ([f0d7671](https://github.com/module-federation/nextjs-mf/commit/f0d7671569ac34f64017a303739b54880f5220e6))
14
+ * export parseRemotes ([12ed54c](https://github.com/module-federation/nextjs-mf/commit/12ed54c87ba539bc2a79cdee86058f0a2776653e))
15
+ * hot reloading system ([99f733b](https://github.com/module-federation/nextjs-mf/commit/99f733bbdbd727a99fbaaeab3f92f4b65fa568dd))
16
+ * remove logger in filesystem ([c370ed5](https://github.com/module-federation/nextjs-mf/commit/c370ed5fdc5fe3423703f29daa40a4227ac51cf2))
17
+ * remove logging on DFS ([40b8c28](https://github.com/module-federation/nextjs-mf/commit/40b8c28fac9c39fec8623415a36e487152c2ef34))
18
+ * search registry for both ident and unique name ([f22dc25](https://github.com/module-federation/nextjs-mf/commit/f22dc25e5a6374273b1bc51b0e101b57226c5906))
19
+ * simplify template ([b4e633b](https://github.com/module-federation/nextjs-mf/commit/b4e633b6624264456800bc7351c6d815430d42b5))
20
+ * stats plugin updates ([c1db325](https://github.com/module-federation/nextjs-mf/commit/c1db325d3311b2126964f4ad2ddbfa9d82a50674))
21
+ * ts in template string ([0edbbea](https://github.com/module-federation/nextjs-mf/commit/0edbbeaa42503237b88132252e29a34a79bade51))
22
+ * ts in template string ([9b8f652](https://github.com/module-federation/nextjs-mf/commit/9b8f652f96bf6f29d5fc238bb616e19187158a57))
13
23
 
14
24
 
15
- ## [2.0.2-beta.1](https://github.com/module-federation/nextjs-mf/compare/node-2.0.2-beta.0...node-2.0.2-beta.1) (2023-09-14)
25
+ ### Features
16
26
 
27
+ * create and expose AutomaticPublicPathPlugin.ts ([9d0fcdd](https://github.com/module-federation/nextjs-mf/commit/9d0fcdd2e36fae971f2eec3269980baedf276b35))
28
+ * improve options logic in node federation plugin ([b69b70d](https://github.com/module-federation/nextjs-mf/commit/b69b70d200c63e3557089e8a0669fc43330c988c))
29
+ * improved async init ([bb19b07](https://github.com/module-federation/nextjs-mf/commit/bb19b07b5be1bbc28bd6b049ea7aea6510ad17a2))
30
+ * improved async init ([019694e](https://github.com/module-federation/nextjs-mf/commit/019694e55fe1f6bebfdab0701bf9087bf0034b8f))
31
+ * Static fallback to non auto public path ([3c58780](https://github.com/module-federation/nextjs-mf/commit/3c587809f1e936fba291eab3d7c790115be5102c))
32
+ * support vmok conventions ([0501da8](https://github.com/module-federation/nextjs-mf/commit/0501da86eaaab6ea79a3397c2c683086cc591309))
33
+ * support vmok conventions ([d53b586](https://github.com/module-federation/nextjs-mf/commit/d53b5867719eb7fff32bee2edd3255023d598f44))
34
+ * Use enhanced Federation Plugin ([e021d66](https://github.com/module-federation/nextjs-mf/commit/e021d6667996962f154137d164bed13f53a6a135))
17
35
 
18
36
 
19
- ## [2.0.2-beta.0](https://github.com/module-federation/nextjs-mf/compare/node-2.0.1...node-2.0.2-beta.0) (2023-09-14)
20
37
 
38
+ ## [2.0.2-beta.2](https://github.com/module-federation/nextjs-mf/compare/node-2.0.2-beta.1...node-2.0.2-beta.2) (2023-09-15)
21
39
 
22
40
  ### Bug Fixes
23
41
 
24
- * import utils manually ([2767191](https://github.com/module-federation/nextjs-mf/commit/2767191467d9d685704b747d42b5f170da233847))
25
- * **node:** use ES6 imports and override method in FederationModuleInfoRuntimeModule (#bytedance) ([d420ad9](https://github.com/module-federation/nextjs-mf/commit/d420ad94b7515123254af45c61704abcc0971511))
26
- * remove ensure remote runtime module ([d06c082](https://github.com/module-federation/nextjs-mf/commit/d06c0823435063dcd277897ab551cd3a9c996d3d))
42
+ - Auto Public Path, detect multiple output targets ([65f17b1](https://github.com/module-federation/nextjs-mf/commit/65f17b189f37e0ad9e72bb0bf04463e9c5455929))
43
+ - ensure custom FS works with target: node or async node preset ([a08fcab](https://github.com/module-federation/nextjs-mf/commit/a08fcab7dde903966d34be9dab0b34c8896948ca))
27
44
 
45
+ ## [2.0.2-beta.1](https://github.com/module-federation/nextjs-mf/compare/node-2.0.2-beta.0...node-2.0.2-beta.1) (2023-09-14)
28
46
 
29
- ### Features
47
+ ## [2.0.2-beta.0](https://github.com/module-federation/nextjs-mf/compare/node-2.0.1...node-2.0.2-beta.0) (2023-09-14)
48
+
49
+ ### Bug Fixes
30
50
 
31
- * add auto public path support for remote modules (node_auto_public_path) ([b12c984](https://github.com/module-federation/nextjs-mf/commit/b12c9841aa55027cb7b77e768ff9c0b456120d51))
32
- * Dynamic Filesystem ([#1274](https://github.com/module-federation/nextjs-mf/issues/1274)) ([2bec98a](https://github.com/module-federation/nextjs-mf/commit/2bec98a2472b44898a7f14ec6868a2368cfb6d82))
33
- * FederationModuleInfo Runtime Module ([50a1a0c](https://github.com/module-federation/nextjs-mf/commit/50a1a0c7a37bbe42ab6f2f5559b411567fee0fe9))
34
- * FederationModuleInfo Runtime Module ([7b09ef6](https://github.com/module-federation/nextjs-mf/commit/7b09ef6c0f4ee68a1b5caa5f021632059c522b8f))
35
- * implement Bytedance Infra Node Plugin ([82e6801](https://github.com/module-federation/nextjs-mf/commit/82e680157bbad68fa93800a69149c4c28652cfed))
36
- * implement Bytedance Infra Node Plugin ([97f283e](https://github.com/module-federation/nextjs-mf/commit/97f283e4746bf6f048ee27584adde5249c8e577c))
37
- * native self forming node federation ([#1291](https://github.com/module-federation/nextjs-mf/issues/1291)) ([1dd5ed1](https://github.com/module-federation/nextjs-mf/commit/1dd5ed17c981e036336925e807203e94b58c36d6))
38
- * **node-remote:** Improve module federation runtime compatibility ([5eb2092](https://github.com/module-federation/nextjs-mf/commit/5eb209249c44d525c12eff5739bf23a93db08e4f))
39
- * **node:** auto set public path and improve chunk loading strategy #node_auto_public_path ([65989da](https://github.com/module-federation/nextjs-mf/commit/65989dab95ee2acee7ec9a5ab321921a278cd078))
40
- * **node:** enhance error handling and remote container registry in RemotePublicPathRuntimeModule (#bytedance) ([061285e](https://github.com/module-federation/nextjs-mf/commit/061285e0b6210baa1dd502dc94fd57fd9a8af822))
41
- * **NodeFederationPlugin:** assign remoteContainerRegistry to importMetaName ([ca33d98](https://github.com/module-federation/nextjs-mf/commit/ca33d98df63fdb8dac402b1cc0ec8bf95f9f1971))
42
- * **node:** remove unused import from DynamicFilesystemRuntimeModule ([f9787a9](https://github.com/module-federation/nextjs-mf/commit/f9787a9a67da936679db388e5c66e012e7452d8a))
43
- * remove old loadScript hack ([fbe19bc](https://github.com/module-federation/nextjs-mf/commit/fbe19bc76694c14b6a95c577669c2e8656ede1ba))
44
- * **utilities:** update DelegateModulesPlugin and tests (#node_auto_public_path) ([df8bb79](https://github.com/module-federation/nextjs-mf/commit/df8bb791c3fedef299cb15960546ff5ad9c665ef))
51
+ - import utils manually ([2767191](https://github.com/module-federation/nextjs-mf/commit/2767191467d9d685704b747d42b5f170da233847))
52
+ - **node:** use ES6 imports and override method in FederationModuleInfoRuntimeModule (#bytedance) ([d420ad9](https://github.com/module-federation/nextjs-mf/commit/d420ad94b7515123254af45c61704abcc0971511))
53
+ - remove ensure remote runtime module ([d06c082](https://github.com/module-federation/nextjs-mf/commit/d06c0823435063dcd277897ab551cd3a9c996d3d))
45
54
 
55
+ ### Features
46
56
 
57
+ - add auto public path support for remote modules (node_auto_public_path) ([b12c984](https://github.com/module-federation/nextjs-mf/commit/b12c9841aa55027cb7b77e768ff9c0b456120d51))
58
+ - Dynamic Filesystem ([#1274](https://github.com/module-federation/nextjs-mf/issues/1274)) ([2bec98a](https://github.com/module-federation/nextjs-mf/commit/2bec98a2472b44898a7f14ec6868a2368cfb6d82))
59
+ - FederationModuleInfo Runtime Module ([50a1a0c](https://github.com/module-federation/nextjs-mf/commit/50a1a0c7a37bbe42ab6f2f5559b411567fee0fe9))
60
+ - FederationModuleInfo Runtime Module ([7b09ef6](https://github.com/module-federation/nextjs-mf/commit/7b09ef6c0f4ee68a1b5caa5f021632059c522b8f))
61
+ - implement Bytedance Infra Node Plugin ([82e6801](https://github.com/module-federation/nextjs-mf/commit/82e680157bbad68fa93800a69149c4c28652cfed))
62
+ - implement Bytedance Infra Node Plugin ([97f283e](https://github.com/module-federation/nextjs-mf/commit/97f283e4746bf6f048ee27584adde5249c8e577c))
63
+ - native self forming node federation ([#1291](https://github.com/module-federation/nextjs-mf/issues/1291)) ([1dd5ed1](https://github.com/module-federation/nextjs-mf/commit/1dd5ed17c981e036336925e807203e94b58c36d6))
64
+ - **node-remote:** Improve module federation runtime compatibility ([5eb2092](https://github.com/module-federation/nextjs-mf/commit/5eb209249c44d525c12eff5739bf23a93db08e4f))
65
+ - **node:** auto set public path and improve chunk loading strategy #node_auto_public_path ([65989da](https://github.com/module-federation/nextjs-mf/commit/65989dab95ee2acee7ec9a5ab321921a278cd078))
66
+ - **node:** enhance error handling and remote container registry in RemotePublicPathRuntimeModule (#bytedance) ([061285e](https://github.com/module-federation/nextjs-mf/commit/061285e0b6210baa1dd502dc94fd57fd9a8af822))
67
+ - **NodeFederationPlugin:** assign remoteContainerRegistry to importMetaName ([ca33d98](https://github.com/module-federation/nextjs-mf/commit/ca33d98df63fdb8dac402b1cc0ec8bf95f9f1971))
68
+ - **node:** remove unused import from DynamicFilesystemRuntimeModule ([f9787a9](https://github.com/module-federation/nextjs-mf/commit/f9787a9a67da936679db388e5c66e012e7452d8a))
69
+ - remove old loadScript hack ([fbe19bc](https://github.com/module-federation/nextjs-mf/commit/fbe19bc76694c14b6a95c577669c2e8656ede1ba))
70
+ - **utilities:** update DelegateModulesPlugin and tests (#node_auto_public_path) ([df8bb79](https://github.com/module-federation/nextjs-mf/commit/df8bb791c3fedef299cb15960546ff5ad9c665ef))
47
71
 
48
72
  ## [2.0.1](https://github.com/module-federation/nextjs-mf/compare/node-2.0.0...node-2.0.1) (2023-09-13)
49
73
 
50
74
  ### Dependency Updates
51
75
 
52
- * `utils` updated to version `3.0.1`
53
- * `utils` updated to version `3.0.1`
54
-
76
+ - `utils` updated to version `3.0.1`
77
+ - `utils` updated to version `3.0.1`
55
78
 
56
79
  # [2.0.0](https://github.com/module-federation/nextjs-mf/compare/node-1.0.6...node-2.0.0) (2023-09-09)
57
80
 
58
81
  ### Dependency Updates
59
82
 
60
- * `utils` updated to version `3.0.0`
61
- * `utils` updated to version `3.0.0`
83
+ - `utils` updated to version `3.0.0`
84
+ - `utils` updated to version `3.0.0`
62
85
 
63
86
  ### Bug Fixes
64
87
 
65
- * workaround to self ref module error in prod ([#1205](https://github.com/module-federation/nextjs-mf/issues/1205)) ([1d88beb](https://github.com/module-federation/nextjs-mf/commit/1d88beb0da629f036e132573fee9f05494b1f540))
66
-
88
+ - workaround to self ref module error in prod ([#1205](https://github.com/module-federation/nextjs-mf/issues/1205)) ([1d88beb](https://github.com/module-federation/nextjs-mf/commit/1d88beb0da629f036e132573fee9f05494b1f540))
67
89
 
68
90
  ### Features
69
91
 
70
- * core package for module federation ([#1093](https://github.com/module-federation/nextjs-mf/issues/1093)) ([d460400](https://github.com/module-federation/nextjs-mf/commit/d46040053e9b627321b5fe8e05556c5bb727c238)), closes [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#835](https://github.com/module-federation/nextjs-mf/issues/835) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#871](https://github.com/module-federation/nextjs-mf/issues/871) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#872](https://github.com/module-federation/nextjs-mf/issues/872) [#875](https://github.com/module-federation/nextjs-mf/issues/875) [#884](https://github.com/module-federation/nextjs-mf/issues/884) [#887](https://github.com/module-federation/nextjs-mf/issues/887) [#893](https://github.com/module-federation/nextjs-mf/issues/893) [#885](https://github.com/module-federation/nextjs-mf/issues/885) [#899](https://github.com/module-federation/nextjs-mf/issues/899) [#904](https://github.com/module-federation/nextjs-mf/issues/904) [#932](https://github.com/module-federation/nextjs-mf/issues/932) [#936](https://github.com/module-federation/nextjs-mf/issues/936) [#959](https://github.com/module-federation/nextjs-mf/issues/959) [#960](https://github.com/module-federation/nextjs-mf/issues/960) [#969](https://github.com/module-federation/nextjs-mf/issues/969) [#971](https://github.com/module-federation/nextjs-mf/issues/971) [#1234](https://github.com/module-federation/nextjs-mf/issues/1234) [#1235](https://github.com/module-federation/nextjs-mf/issues/1235)
71
-
92
+ - core package for module federation ([#1093](https://github.com/module-federation/nextjs-mf/issues/1093)) ([d460400](https://github.com/module-federation/nextjs-mf/commit/d46040053e9b627321b5fe8e05556c5bb727c238)), closes [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#835](https://github.com/module-federation/nextjs-mf/issues/835) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#871](https://github.com/module-federation/nextjs-mf/issues/871) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#872](https://github.com/module-federation/nextjs-mf/issues/872) [#875](https://github.com/module-federation/nextjs-mf/issues/875) [#884](https://github.com/module-federation/nextjs-mf/issues/884) [#887](https://github.com/module-federation/nextjs-mf/issues/887) [#893](https://github.com/module-federation/nextjs-mf/issues/893) [#885](https://github.com/module-federation/nextjs-mf/issues/885) [#899](https://github.com/module-federation/nextjs-mf/issues/899) [#904](https://github.com/module-federation/nextjs-mf/issues/904) [#932](https://github.com/module-federation/nextjs-mf/issues/932) [#936](https://github.com/module-federation/nextjs-mf/issues/936) [#959](https://github.com/module-federation/nextjs-mf/issues/959) [#960](https://github.com/module-federation/nextjs-mf/issues/960) [#969](https://github.com/module-federation/nextjs-mf/issues/969) [#971](https://github.com/module-federation/nextjs-mf/issues/971) [#1234](https://github.com/module-federation/nextjs-mf/issues/1234) [#1235](https://github.com/module-federation/nextjs-mf/issues/1235)
72
93
 
73
94
  ### BREAKING CHANGES
74
95
 
75
- * automaticAsyncBoundary option has been removed
96
+ - automaticAsyncBoundary option has been removed
76
97
 
77
- * fix: exclude specific pages from page map automatically
98
+ - fix: exclude specific pages from page map automatically
78
99
 
79
- * refactor: conslidate codebase
100
+ - refactor: conslidate codebase
80
101
 
81
- * fix: improve hot reload share recovery
102
+ - fix: improve hot reload share recovery
82
103
 
83
- * refactor: remove server jsonp template
104
+ - refactor: remove server jsonp template
84
105
 
85
- * chore: remove dead code from runtime modules
106
+ - chore: remove dead code from runtime modules
86
107
 
87
- * fix: clean up jsonp getCustomJsonpCode
108
+ - fix: clean up jsonp getCustomJsonpCode
88
109
 
89
110
  getting chunk loading global from compiler output options
90
111
 
91
- * feat: adding cleanInitArrays runtime helper
112
+ - feat: adding cleanInitArrays runtime helper
92
113
 
93
- * chore: remove share scope hoist and module hoisting system
114
+ - chore: remove share scope hoist and module hoisting system
94
115
 
95
- * chore: cleanup code
116
+ - chore: cleanup code
96
117
 
97
- * chore: remove dead code from add module runtime plugin
118
+ - chore: remove dead code from add module runtime plugin
98
119
 
99
120
  likely can remove whole plugin in future
100
121
 
101
- * chore: remove logs from delegate modules
122
+ - chore: remove logs from delegate modules
102
123
 
103
- * chore: remove old utils
124
+ - chore: remove old utils
104
125
 
105
- * fix: add warning on auto page stitch
126
+ - fix: add warning on auto page stitch
106
127
 
107
- * fix: remove commented out code from InvertedContainerPlugin.ts
128
+ - fix: remove commented out code from InvertedContainerPlugin.ts
108
129
 
109
- * chore: improve logging to see if its local load or remote load
130
+ - chore: improve logging to see if its local load or remote load
110
131
 
111
- * chore: clean up old custom promises factories
132
+ - chore: clean up old custom promises factories
112
133
 
113
- * fix: remove container proxy code
134
+ - fix: remove container proxy code
114
135
 
115
- * fix: remove container proxy code
116
- * automaticAsyncBoundary option has been removed
136
+ - fix: remove container proxy code
137
+ - automaticAsyncBoundary option has been removed
117
138
 
118
- * fix: exclude specific pages from page map automatically
139
+ - fix: exclude specific pages from page map automatically
119
140
 
120
- * refactor: conslidate codebase
141
+ - refactor: conslidate codebase
121
142
 
122
- * fix: improve hot reload share recovery
143
+ - fix: improve hot reload share recovery
123
144
 
124
- * refactor: remove server jsonp template
145
+ - refactor: remove server jsonp template
125
146
 
126
- * chore: remove dead code from runtime modules
147
+ - chore: remove dead code from runtime modules
127
148
 
128
- * fix: clean up jsonp getCustomJsonpCode
149
+ - fix: clean up jsonp getCustomJsonpCode
129
150
 
130
151
  getting chunk loading global from compiler output options
131
152
 
132
- * feat: adding cleanInitArrays runtime helper
153
+ - feat: adding cleanInitArrays runtime helper
133
154
 
134
- * chore: remove share scope hoist and module hoisting system
155
+ - chore: remove share scope hoist and module hoisting system
135
156
 
136
- * chore: cleanup code
157
+ - chore: cleanup code
137
158
 
138
- * chore: remove dead code from add module runtime plugin
159
+ - chore: remove dead code from add module runtime plugin
139
160
 
140
161
  likely can remove whole plugin in future
141
162
 
142
- * chore: remove logs from delegate modules
163
+ - chore: remove logs from delegate modules
143
164
 
144
- * chore: remove old utils
165
+ - chore: remove old utils
145
166
 
146
- * fix: add warning on auto page stitch
167
+ - fix: add warning on auto page stitch
147
168
 
148
- * fix: remove commented out code from InvertedContainerPlugin.ts
169
+ - fix: remove commented out code from InvertedContainerPlugin.ts
149
170
 
150
- * chore: improve logging to see if its local load or remote load
171
+ - chore: improve logging to see if its local load or remote load
151
172
 
152
- * chore: clean up old custom promises factories
173
+ - chore: clean up old custom promises factories
153
174
 
154
- * fix: remove container proxy code
175
+ - fix: remove container proxy code
155
176
 
156
- * fix: remove container proxy code
177
+ - fix: remove container proxy code
157
178
 
158
- * chore: fix project.json
179
+ - chore: fix project.json
159
180
 
160
- * debugging
181
+ - debugging
161
182
 
162
- * fix: resolve backmerge issues with build
183
+ - fix: resolve backmerge issues with build
163
184
 
164
- * Merge branch 'kill_child_compilers' into fix_backmerge_issues
185
+ - Merge branch 'kill_child_compilers' into fix_backmerge_issues
165
186
 
166
187
  # Conflicts:
167
- # package-lock.json
168
- # package.json
169
- # packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
170
- # packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
171
- # packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
172
188
 
173
- * feat: enable eager sharing
189
+ # package-lock.json
174
190
 
175
- * refactor: improve module hooks for eager loading and search
191
+ # package.json
176
192
 
177
- * refactor: cleanup custom jsonp and make es5
193
+ # packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
178
194
 
179
- * refactor: cleanup inverted container code
195
+ # packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
180
196
 
181
- * refactor: cleanup inverted container code
182
- * automaticAsyncBoundary option has been removed
197
+ # packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
183
198
 
184
- * fix: exclude specific pages from page map automatically
199
+ - feat: enable eager sharing
185
200
 
186
- * refactor: conslidate codebase
201
+ - refactor: improve module hooks for eager loading and search
187
202
 
188
- * fix: improve hot reload share recovery
203
+ - refactor: cleanup custom jsonp and make es5
189
204
 
190
- * refactor: remove server jsonp template
205
+ - refactor: cleanup inverted container code
191
206
 
192
- * chore: remove dead code from runtime modules
207
+ - refactor: cleanup inverted container code
208
+ - automaticAsyncBoundary option has been removed
209
+
210
+ - fix: exclude specific pages from page map automatically
193
211
 
194
- * fix: clean up jsonp getCustomJsonpCode
212
+ - refactor: conslidate codebase
213
+
214
+ - fix: improve hot reload share recovery
215
+
216
+ - refactor: remove server jsonp template
217
+
218
+ - chore: remove dead code from runtime modules
219
+
220
+ - fix: clean up jsonp getCustomJsonpCode
195
221
 
196
222
  getting chunk loading global from compiler output options
197
223
 
198
- * feat: adding cleanInitArrays runtime helper
224
+ - feat: adding cleanInitArrays runtime helper
199
225
 
200
- * chore: remove share scope hoist and module hoisting system
226
+ - chore: remove share scope hoist and module hoisting system
201
227
 
202
- * chore: cleanup code
228
+ - chore: cleanup code
203
229
 
204
- * chore: remove dead code from add module runtime plugin
230
+ - chore: remove dead code from add module runtime plugin
205
231
 
206
232
  likely can remove whole plugin in future
207
233
 
208
- * chore: remove logs from delegate modules
234
+ - chore: remove logs from delegate modules
209
235
 
210
- * chore: remove old utils
236
+ - chore: remove old utils
211
237
 
212
- * fix: add warning on auto page stitch
238
+ - fix: add warning on auto page stitch
213
239
 
214
- * fix: remove commented out code from InvertedContainerPlugin.ts
240
+ - fix: remove commented out code from InvertedContainerPlugin.ts
215
241
 
216
- * chore: improve logging to see if its local load or remote load
242
+ - chore: improve logging to see if its local load or remote load
217
243
 
218
- * chore: clean up old custom promises factories
244
+ - chore: clean up old custom promises factories
219
245
 
220
- * fix: remove container proxy code
246
+ - fix: remove container proxy code
221
247
 
222
- * fix: remove container proxy code
248
+ - fix: remove container proxy code
223
249
 
224
- * fix: resolve backmerge issues with build
250
+ - fix: resolve backmerge issues with build
225
251
 
226
- * Merge branch 'kill_child_compilers' into fix_backmerge_issues
252
+ - Merge branch 'kill_child_compilers' into fix_backmerge_issues
227
253
 
228
254
  # Conflicts:
229
- # package-lock.json
230
- # package.json
231
- # packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
232
- # packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
233
- # packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
234
255
 
235
- * feat: enable eager sharing
256
+ # package-lock.json
257
+
258
+ # package.json
259
+
260
+ # packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
236
261
 
237
- * refactor: improve module hooks for eager loading and search
262
+ # packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
263
+
264
+ # packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
238
265
 
239
- * refactor: cleanup custom jsonp and make es5
266
+ - feat: enable eager sharing
240
267
 
241
- * refactor: cleanup inverted container code
268
+ - refactor: improve module hooks for eager loading and search
242
269
 
243
- * refactor: cleanup inverted container code
270
+ - refactor: cleanup custom jsonp and make es5
244
271
 
245
- * ci: fix install step with npm and NX
272
+ - refactor: cleanup inverted container code
246
273
 
247
- * test: remove tests for now
274
+ - refactor: cleanup inverted container code
248
275
 
249
- * chore(utils): release version 1.7.3-beta.0
276
+ - ci: fix install step with npm and NX
250
277
 
251
- * chore(utils): release version 1.7.3
278
+ - test: remove tests for now
252
279
 
253
- * chore(node): release version 0.14.4-beta.0
280
+ - chore(utils): release version 1.7.3-beta.0
254
281
 
255
- * chore(node): release version 0.14.4
282
+ - chore(utils): release version 1.7.3
256
283
 
257
- * chore(nextjs-mf): release version 6.4.1-beta.4
284
+ - chore(node): release version 0.14.4-beta.0
258
285
 
259
- * fix: remove debugging runtime variable
286
+ - chore(node): release version 0.14.4
260
287
 
261
- * chore(nextjs-mf): release version 6.4.1-beta.5
288
+ - chore(nextjs-mf): release version 6.4.1-beta.4
262
289
 
290
+ - fix: remove debugging runtime variable
263
291
 
292
+ - chore(nextjs-mf): release version 6.4.1-beta.5
264
293
 
265
294
  ## [1.0.7](https://github.com/module-federation/nextjs-mf/compare/node-1.0.6...node-1.0.7) (2023-08-14)
266
295
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "@module-federation/node",
4
- "version": "2.0.2-beta.2",
4
+ "version": "2.0.2-beta.3",
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",
7
7
  "exports": {
@@ -14,6 +14,8 @@
14
14
  "import": "./src/utils/index.js",
15
15
  "require": "./src/utils/index.js"
16
16
  },
17
+ "./src/plugins/RemotePublicPathPlugin.js": "./src/plugins/RemotePublicPathPlugin.js",
18
+ "./src/plugins/NodeFederationPlugin.js": "./src/plugins/NodeFederationPlugin.js",
17
19
  "./src/": "./src/"
18
20
  },
19
21
  "publishConfig": {
@@ -33,24 +35,27 @@
33
35
  "author": "Zack Jackson <zackary.l.jackson@gmail.com>",
34
36
  "license": "MIT",
35
37
  "dependencies": {
36
- "node-fetch": "^2.6.7",
38
+ "@module-federation/utilities": "3.0.2-beta.0",
37
39
  "encoding": "^0.1.13",
38
- "@module-federation/utilities": "3.0.2-beta.0"
40
+ "node-fetch": "^2.6.7",
41
+ "tapable": "2.2.1",
42
+ "webpack-sources": "3.2.3",
43
+ "@module-federation/enhanced": "0.0.3"
39
44
  },
40
45
  "peerDependencies": {
41
- "webpack": "^5.40.0",
46
+ "next": "^12||^13",
42
47
  "react": "^16||^17||^18",
43
48
  "react-dom": "^16||^17||^18",
44
- "next": "^12||^13"
49
+ "webpack": "^5.40.0"
45
50
  },
46
51
  "peerDependenciesMeta": {
47
- "react": {
52
+ "next": {
48
53
  "optional": true
49
54
  },
50
- "react-dom": {
55
+ "react": {
51
56
  "optional": true
52
57
  },
53
- "next": {
58
+ "react-dom": {
54
59
  "optional": true
55
60
  }
56
61
  }
@@ -1,5 +1,5 @@
1
- export function fileSystemRunInContextStrategy(chunkId: any, rootOutputDir: any, remotes: any, callback: any): Promise<void>;
2
- export function httpEvalStrategy(chunkName: any, remoteName: any, remotes: any, callback: any): Promise<void>;
1
+ export declare function fileSystemRunInContextStrategy(chunkId: any, rootOutputDir: any, remotes: any, callback: any): Promise<void>;
2
+ export declare function httpEvalStrategy(chunkName: any, remoteName: any, remotes: any, callback: any): Promise<void>;
3
3
  /**
4
4
  * HttpVmStrategy
5
5
  * This function is used to execute a chunk of code in a VM using HTTP or HTTPS based on the protocol.
@@ -8,4 +8,4 @@ export function httpEvalStrategy(chunkName: any, remoteName: any, remotes: any,
8
8
  * @param {object} remotes - An object containing the remote servers.
9
9
  * @param {function} callback - A callback function to be executed after the chunk is executed.
10
10
  */
11
- export function httpVmStrategy(chunkName: string, remoteName: string, remotes: object, callback: Function): Promise<void>;
11
+ export declare function httpVmStrategy(chunkName: any, remoteName: any, remotes: any, callback: any): Promise<void>;
@@ -1,20 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.httpVmStrategy = exports.httpEvalStrategy = exports.fileSystemRunInContextStrategy = void 0;
4
+ //@ts-nocheck
4
5
  async function fileSystemRunInContextStrategy(chunkId, rootOutputDir, remotes, callback) {
5
- var fs = require('fs');
6
- var path = require('path');
7
- var vm = require('vm');
8
- var filename = require('path').join(__dirname,
9
- //eslint-disable-next-line
10
- rootOutputDir + __webpack_require__.u(chunkId));
6
+ const fs = require('fs');
7
+ const path = require('path');
8
+ const vm = require('vm');
9
+ const filename = path.join(__dirname, rootOutputDir + __webpack_require__.u(chunkId));
11
10
  if (fs.existsSync(filename)) {
12
11
  fs.readFile(filename, 'utf-8', (err, content) => {
13
12
  if (err) {
14
13
  callback(err, null);
15
14
  return;
16
15
  }
17
- var chunk = {};
16
+ const chunk = {};
18
17
  try {
19
18
  vm.runInThisContext('(function(exports, require, __dirname, __filename) {' +
20
19
  content +
@@ -35,25 +34,25 @@ async function fileSystemRunInContextStrategy(chunkId, rootOutputDir, remotes, c
35
34
  exports.fileSystemRunInContextStrategy = fileSystemRunInContextStrategy;
36
35
  // HttpEvalStrategy
37
36
  async function httpEvalStrategy(chunkName, remoteName, remotes, callback) {
38
- var url;
37
+ let url;
39
38
  try {
40
- // eslint-disable-next-line no-undef
41
39
  url = new URL(chunkName, __webpack_require__.p);
42
40
  }
43
41
  catch (e) {
44
42
  console.error('module-federation: failed to construct absolute chunk path of', remoteName, 'for', chunkName, e);
45
43
  url = new URL(remotes[remoteName]);
46
- var getBasenameFromUrl = (url) => {
44
+ const getBasenameFromUrl = (url) => {
47
45
  const urlParts = url.split('/');
48
46
  return urlParts[urlParts.length - 1];
49
47
  };
50
- var fileToReplace = getBasenameFromUrl(url.pathname);
48
+ const fileToReplace = getBasenameFromUrl(url.pathname);
51
49
  url.pathname = url.pathname.replace(fileToReplace, chunkName);
52
50
  }
53
51
  const data = await fetch(url).then((res) => res.text());
54
- var chunk = {};
52
+ const chunk = {};
55
53
  try {
56
- eval('(function(exports, require, __dirname, __filename) {' + data + '\n})', chunkName)(chunk, require, '.', chunkName);
54
+ const urlDirname = url.pathname.split('/').slice(0, -1).join('/');
55
+ eval('(function(exports, require, __dirname, __filename) {' + data + '\n})', chunkName)(chunk, require, urlDirname, chunkName);
57
56
  callback(null, chunk);
58
57
  }
59
58
  catch (e) {
@@ -70,30 +69,30 @@ exports.httpEvalStrategy = httpEvalStrategy;
70
69
  * @param {function} callback - A callback function to be executed after the chunk is executed.
71
70
  */
72
71
  async function httpVmStrategy(chunkName, remoteName, remotes, callback) {
73
- var http = require('http');
74
- var https = require('https');
75
- var vm = require('vm');
76
- var url;
72
+ const http = require('http');
73
+ const https = require('https');
74
+ const vm = require('vm');
75
+ const path = require('path');
76
+ let url;
77
77
  try {
78
- console.log('trying chunk load', chunkName, __webpack_require__.p);
79
78
  url = new URL(chunkName, __webpack_require__.p);
80
79
  }
81
80
  catch (e) {
82
81
  console.error('module-federation: failed to construct absolute chunk path of', remoteName, 'for', chunkName, e);
83
- console.log('fallbak url constructed', remotes._config[remoteName]);
84
82
  url = new URL(remotes._config[remoteName]);
85
- var fileToReplace = require('path').basename(url.pathname);
83
+ const fileToReplace = path.basename(url.pathname);
86
84
  url.pathname = url.pathname.replace(fileToReplace, chunkName);
87
85
  }
88
- var protocol = url.protocol === 'https:' ? https : http;
86
+ const protocol = url.protocol === 'https:' ? https : http;
89
87
  protocol.get(url, (res) => {
90
88
  let data = '';
91
89
  res.on('data', (chunk) => {
92
90
  data += chunk;
93
91
  });
94
92
  res.on('end', () => {
95
- var chunk = {};
96
- vm.runInThisContext('(function(exports, require, __dirname, __filename) {' + data + '\n})', chunkName)(chunk, require, '.', chunkName);
93
+ const chunk = {};
94
+ const urlDirname = url.pathname.split('/').slice(0, -1).join('/');
95
+ vm.runInThisContext('(function(exports, require, __dirname, __filename) {' + data + '\n})', chunkName)(chunk, require, urlDirname, chunkName);
97
96
  callback(null, chunk);
98
97
  });
99
98
  res.on('error', (err) => {
@@ -1 +1 @@
1
- {"version":3,"file":"stratagies.js","sourceRoot":"","sources":["../../../../../packages/node/src/filesystem/stratagies.js"],"names":[],"mappings":";;;AAAO,KAAK,UAAU,8BAA8B,CAClD,OAAO,EACP,aAAa,EACb,OAAO,EACP,QAAQ;IAER,IAAI,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,IAAI,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC3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KAAK,GAAG,EAAE,CAAC;YACf,EAAE,CAAC,gBAAgB,CACjB,sDAAsD,GAAG,IAAI,GAAG,MAAM,EACtE,SAAS,CACV,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,CAAC,CAAC;YAClC,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACxB,CAAC,CAAC,CAAC;QACH,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;YACtB,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACtB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAlCD,wCAkCC"}
1
+ {"version":3,"file":"stratagies.js","sourceRoot":"","sources":["../../../../../packages/node/src/filesystem/stratagies.ts"],"names":[],"mappings":";;;AAAA,aAAa;AACN,KAAK,UAAU,8BAA8B,CAClD,OAAO,EACP,aAAa,EACb,OAAO,EACP,QAAQ;IAER,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzB,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7B,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzB,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CACxB,SAAS,EACT,aAAa,GAAG,mBAAmB,CAAC,CAAC,CAAC,OAAO,CAAC,CAC/C,CAAC;IACF,IAAI,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QAC3B,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;YAC9C,IAAI,GAAG,EAAE;gBACP,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;gBACpB,OAAO;aACR;YACD,MAAM,KAAK,GAAG,EAAE,CAAC;YACjB,IAAI;gBACF,EAAE,CAAC,gBAAgB,CACjB,sDAAsD;oBACpD,OAAO;oBACP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AAxCD,wCAwCC"}
package/src/index.d.ts CHANGED
@@ -2,3 +2,6 @@ export { default as StreamingTargetPlugin } from './plugins/StreamingTargetPlugi
2
2
  export { default as NodeFederationPlugin } from './plugins/NodeFederationPlugin';
3
3
  export { default as UniversalFederationPlugin } from './plugins/UniversalFederationPlugin';
4
4
  export { default as ChunkCorrelationPlugin } from './plugins/ChunkCorrelationPlugin';
5
+ export { default as RemotePublicPathPlugin } from './plugins/RemotePublicPathRuntimeModule';
6
+ export { default as NodeContainerPlugin } from './plugins/NodeContainerPlugin';
7
+ export { parseRemotes } from './plugins/NodeFederationPlugin';