Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
413 commits
Select commit Hold shift + click to select a range
af7cd02
chore(node): release version 0.14.1-beta.0
ScriptedAlchemy Apr 28, 2023
fa9f91f
chore(node): release version 0.14.1
ScriptedAlchemy Apr 28, 2023
61e4b56
chore(nextjs-mf): release version 6.4.1-beta.0
ScriptedAlchemy Apr 28, 2023
dfa7fb3
fix: use [fullhash] if no hash exists / in development mode.
ScriptedAlchemy Apr 28, 2023
f0390a6
Update dependabot.yml
ScriptedAlchemy Apr 28, 2023
3d2d836
revert dependabot change
ScriptedAlchemy Apr 28, 2023
7c77da7
chore(node): release version 0.14.2-beta.0
ScriptedAlchemy Apr 28, 2023
109327b
chore(node): release version 0.14.2-beta.1
ScriptedAlchemy Apr 28, 2023
c1e7729
chore(node): release version 0.14.2-beta.2
ScriptedAlchemy Apr 28, 2023
ebcab60
chore(node): release version 0.14.2-beta.1
ScriptedAlchemy Apr 28, 2023
2af137c
chore(node): release version 0.14.2
ScriptedAlchemy Apr 28, 2023
901770b
chore(nextjs-mf): release version 6.4.1-beta.1
ScriptedAlchemy Apr 28, 2023
6f95b7a
update plugins
ScriptedAlchemy Apr 28, 2023
2f731ee
fix: disable next chunk splits
ScriptedAlchemy Apr 28, 2023
a5660b1
chore(nextjs-mf): release version 6.4.1-beta.2
ScriptedAlchemy Apr 28, 2023
5a1f621
chore: fix package imports
ScriptedAlchemy Apr 29, 2023
102f507
update plugins
ScriptedAlchemy Apr 29, 2023
cbbc7f5
feat: install an async boundary runtime module
ScriptedAlchemy May 1, 2023
42e59f1
fix: improve startup inversion
ScriptedAlchemy May 1, 2023
f593725
fix: improve eager modularization
ScriptedAlchemy May 1, 2023
062657f
refactor: improve jsonp loading
ScriptedAlchemy May 1, 2023
6a05a5f
feat: eager load initial consumes
ScriptedAlchemy May 2, 2023
c841a4b
fix: improve module and async module loading in runtmie module
ScriptedAlchemy May 2, 2023
de7b0de
chore: move LoadDependenciesTemplate to own file, write tests
ScriptedAlchemy May 2, 2023
1d90b35
chore: fix logs
ScriptedAlchemy May 2, 2023
98ad6ad
fix: improve stability of chunk push
ScriptedAlchemy May 2, 2023
ffc1131
fix: prevent hmr destroying share scope
ScriptedAlchemy May 2, 2023
ee95f5f
fix: implement exact version resolution
ScriptedAlchemy May 3, 2023
d0f2eef
chore: move runtime module to single file again
ScriptedAlchemy May 3, 2023
e86b64e
chore: remove dead hooks
ScriptedAlchemy May 3, 2023
615d5cd
Merge branch 'main' into kill_child_compilers
ScriptedAlchemy May 3, 2023
22a1e24
chore: update locks
ScriptedAlchemy May 3, 2023
4dc296e
chore(utils): release version 1.7.2-beta.0
ScriptedAlchemy May 3, 2023
7819476
chore(utils): release version 1.7.2
ScriptedAlchemy May 3, 2023
21241c9
chore(node): release version 0.14.3-beta.0
ScriptedAlchemy May 3, 2023
9c8c3ab
chore(node): release version 0.14.3
ScriptedAlchemy May 3, 2023
ee3d6ca
chore(nextjs-mf): release version 6.4.1-beta.3
ScriptedAlchemy May 3, 2023
9e8ae72
Merge branch 'kill_child_compilers' into async_boundary_runtime
ScriptedAlchemy May 3, 2023
5033af9
Merge remote-tracking branch 'origin/main' into kill_child_compilers
ScriptedAlchemy May 3, 2023
4d8d26f
chore: update nx
ScriptedAlchemy May 3, 2023
e4f080e
Merge branch 'kill_child_compilers' into async_boundary_runtime
ScriptedAlchemy May 3, 2023
7fa792a
feat: [7] Async boundary runtime server (#851)
ScriptedAlchemy May 12, 2023
f7bc0e7
chore: remove dead code from add module runtime plugin
ScriptedAlchemy May 12, 2023
9c784e2
chore: remove logs from delegate modules
ScriptedAlchemy May 12, 2023
2af3733
chore: remove old utils
ScriptedAlchemy May 12, 2023
2f068cf
fix: add warning on auto page stitch
ScriptedAlchemy May 12, 2023
7d52961
fix: remove commented out code from InvertedContainerPlugin.ts
ScriptedAlchemy May 12, 2023
8adfa28
chore: improve logging to see if its local load or remote load
ScriptedAlchemy May 12, 2023
3ae320a
chore: clean up old custom promises factories
ScriptedAlchemy May 12, 2023
6123d98
fix: remove container proxy code
ScriptedAlchemy May 12, 2023
358191e
fix: remove container proxy code
ScriptedAlchemy May 12, 2023
840e3b5
feat: [v7] Async boundary runtime (#835)
ScriptedAlchemy May 12, 2023
b6735ff
chore: fix project.json
ScriptedAlchemy May 12, 2023
e86f579
Merge remote-tracking branch 'origin/main' into kill_child_compilers
ScriptedAlchemy May 12, 2023
fbe87eb
Merge branch 'main' into kill_child_compilers
ScriptedAlchemy May 12, 2023
dbd4048
Merge branch 'main' into kill_child_compilers
ScriptedAlchemy May 12, 2023
6057c74
debugging
ScriptedAlchemy May 12, 2023
2ad095c
fix: resolve backmerge issues with build
ScriptedAlchemy May 13, 2023
49bc254
Merge branch 'kill_child_compilers' into fix_backmerge_issues
ScriptedAlchemy May 13, 2023
45e166d
Merge branch 'kill_child_compilers' into fix_backmerge_issues
ScriptedAlchemy May 13, 2023
b1e4418
feat: enable eager sharing
ScriptedAlchemy May 13, 2023
54e839e
refactor: improve module hooks for eager loading and search
ScriptedAlchemy May 13, 2023
9a58574
refactor: cleanup custom jsonp and make es5
ScriptedAlchemy May 13, 2023
ce8b27f
refactor: cleanup inverted container code
ScriptedAlchemy May 13, 2023
93d0a7f
refactor: cleanup inverted container code
ScriptedAlchemy May 13, 2023
00da7c8
fix: resolve backmerge issues (#871)
ScriptedAlchemy May 13, 2023
83abd6c
ci: fix install step with npm and NX
ScriptedAlchemy May 13, 2023
291abaa
Merge remote-tracking branch 'origin/kill_child_compilers' into kill_…
ScriptedAlchemy May 13, 2023
97e6667
test: remove tests for now
ScriptedAlchemy May 13, 2023
7a4b46e
chore(utils): release version 1.7.3-beta.0
ScriptedAlchemy May 13, 2023
db1c823
chore(utils): release version 1.7.3
ScriptedAlchemy May 13, 2023
fd823cf
chore(node): release version 0.14.4-beta.0
ScriptedAlchemy May 13, 2023
f83e220
chore(node): release version 0.14.4
ScriptedAlchemy May 13, 2023
8d50e54
chore(nextjs-mf): release version 6.4.1-beta.4
ScriptedAlchemy May 13, 2023
d15dc2d
fix: remove debugging runtime variable
ScriptedAlchemy May 13, 2023
eb53691
chore(nextjs-mf): release version 6.4.1-beta.5
ScriptedAlchemy May 13, 2023
2991039
feat: Quantum Modules (#872)
ScriptedAlchemy May 15, 2023
ccc5307
locks
ScriptedAlchemy May 15, 2023
8e0a8e3
chore(node): release version 0.14.5-beta.0
ScriptedAlchemy May 15, 2023
98b33f1
chore(node): release version 0.14.5
ScriptedAlchemy May 15, 2023
2d0e194
chore(nextjs-mf): release version 6.4.1-beta.6
ScriptedAlchemy May 15, 2023
06f85b1
chore: lock file
ScriptedAlchemy May 15, 2023
12bb896
fix: ensure eager modules always exist in host (inject dependent modu…
ScriptedAlchemy May 15, 2023
48b8365
DX: Add GPT module and command-line interface (#875)
ScriptedAlchemy May 15, 2023
75067b2
Merge branch 'main' into kill_child_compilers
ScriptedAlchemy May 15, 2023
7f05231
chore: update locks
ScriptedAlchemy May 16, 2023
92505d3
DX: add GPT helper
ScriptedAlchemy May 16, 2023
849e7cc
Remove unused and commented code from async-pages-loader
ScriptedAlchemy May 16, 2023
cd4bf0f
DX: add GPT helper
ScriptedAlchemy May 16, 2023
60e37ff
Fix production build issue caused by optimization stages
ScriptedAlchemy May 16, 2023
2666ddd
Refactor loadScript and improve error handling
ScriptedAlchemy May 16, 2023
28b23a5
Update scripts and apply server plugins
ScriptedAlchemy May 16, 2023
c38e7c7
chore(utils): release version 1.7.4
ScriptedAlchemy May 16, 2023
7280a55
chore(node): release version 0.14.6
ScriptedAlchemy May 16, 2023
708823e
chore(nextjs-mf): release version 6.4.1-beta.7
ScriptedAlchemy May 16, 2023
de7b2ce
fix: Improved Share Scope Properties and Fixed Production Build Issue…
ScriptedAlchemy May 16, 2023
9f65c59
chore: remove logs
ScriptedAlchemy May 16, 2023
cbb4d6b
Refactor InvertedContainerRuntimeModule and remove console logs
ScriptedAlchemy May 16, 2023
6d4c5cf
chore(utils): release version 1.7.5-beta.0
ScriptedAlchemy May 16, 2023
f2d3225
chore(utils): release version 1.7.5
ScriptedAlchemy May 16, 2023
03a07ed
chore(node): release version 0.14.7-beta.0
ScriptedAlchemy May 16, 2023
44873a2
chore(utils): release version 1.7.6-beta.0
ScriptedAlchemy May 16, 2023
6987e05
chore(node): release version 0.14.7-beta.1
ScriptedAlchemy May 16, 2023
1b515f8
chore(nextjs-mf): release version 6.4.1-beta.8
ScriptedAlchemy May 16, 2023
c271423
chore(utils): release version 1.7.6-beta.1
ScriptedAlchemy May 16, 2023
971665a
chore(node): release version 0.14.7-beta.2
ScriptedAlchemy May 16, 2023
52ce554
chore(nextjs-mf): release version 6.4.1-beta.8
ScriptedAlchemy May 16, 2023
fa281ec
fix: remove old files
ScriptedAlchemy May 16, 2023
20c9de6
chore(utils): release version 1.7.6-beta.2
ScriptedAlchemy May 16, 2023
17aa10c
chore(node): release version 0.14.7-beta.3
ScriptedAlchemy May 16, 2023
eb24fee
chore(nextjs-mf): release version 6.4.1-beta.8
ScriptedAlchemy May 16, 2023
4e6981f
feat: remove entry injection
ScriptedAlchemy May 16, 2023
12c824b
chore(utils): release version 1.7.6-rc.0
ScriptedAlchemy May 16, 2023
ab74a61
chore(node): release version 0.14.7-rc.0
ScriptedAlchemy May 16, 2023
4450668
chore(nextjs-mf): release version 6.4.1-rc.0
ScriptedAlchemy May 16, 2023
898fc64
chore: back to beta tag
ScriptedAlchemy May 16, 2023
f48b69b
update locks
ScriptedAlchemy May 17, 2023
db4b5d1
update locks
ScriptedAlchemy May 17, 2023
14bfc38
fix(chunk-module-duplication): prevent runtime reset and share scope …
ScriptedAlchemy May 17, 2023
bfac345
refactor: Next.js Micro-Frontends code improvements
ScriptedAlchemy May 17, 2023
aef8746
chore(utils): release version 1.7.6-rc.1
ScriptedAlchemy May 17, 2023
35a767d
chore(node): release version 0.14.7-rc.1
ScriptedAlchemy May 17, 2023
89ac356
chore(nextjs-mf): release version 6.4.1-rc.1
ScriptedAlchemy May 17, 2023
7a4d580
update locks
ScriptedAlchemy May 17, 2023
dd5ba98
refactor(apply-server-plugins): Update server plugin configurations a…
ScriptedAlchemy May 17, 2023
f5eef78
chore(utils): release version 1.7.6-rc.2
ScriptedAlchemy May 17, 2023
800b214
chore(node): release version 0.14.7-rc.2
ScriptedAlchemy May 17, 2023
08c9350
chore(nextjs-mf): release version 6.4.1-rc.2
ScriptedAlchemy May 17, 2023
22b2f6a
[chore] Update package.json and internal.ts
ScriptedAlchemy May 17, 2023
c79cd62
fix: externalization and missing runtime chunks (#887)
ScriptedAlchemy May 18, 2023
9af484d
fix: deprecation warnings about chunkGraph
ScriptedAlchemy May 18, 2023
cfa43f5
fix: missing chunk hashes on exposed modules (#893)
ScriptedAlchemy May 20, 2023
199e6b9
fix: chunk and module duplications (#885)
ScriptedAlchemy May 22, 2023
6cf396d
Merge branch 'main' into kill_child_compilers
ScriptedAlchemy May 22, 2023
470d7ad
fix: client prod build issues (#899)
ScriptedAlchemy May 23, 2023
75b95d8
chore(utils): release version 1.8.1-rc.0
ScriptedAlchemy May 23, 2023
4fa4d9f
Merge branch 'main' into kill_child_compilers
ScriptedAlchemy May 23, 2023
9ee6a6d
chore(utils): release version 1.8.1-rc.1
ScriptedAlchemy May 23, 2023
8fa9af4
chore(node): release version 0.15.2-rc.0
ScriptedAlchemy May 23, 2023
6a1f730
chore(nextjs-mf): release version 6.5.2-rc.0
ScriptedAlchemy May 23, 2023
5936c15
build: Generate exports for packages
ScriptedAlchemy May 23, 2023
fed9f48
chore: Improved Debug Output and Reduced Code Redundancy (#904)
ScriptedAlchemy May 23, 2023
5afb143
chore: finish nx migraitons
ScriptedAlchemy May 24, 2023
5f740fd
chore:update locks
ScriptedAlchemy May 24, 2023
ad8caf7
fix: remove specific module type from package
ScriptedAlchemy May 24, 2023
d09e841
fix: Improved Entrypoint Module Detection and Refactoring (#932)
ScriptedAlchemy May 25, 2023
ef28b96
Merge branch 'main' into kill_child_compilers
ScriptedAlchemy May 25, 2023
b56eefe
chore: update Node.js version to 18 in GitHub actions
ScriptedAlchemy May 25, 2023
1e3030a
chore: update locks
ScriptedAlchemy May 25, 2023
be7a007
chore: update .nvmrc, remove type, and clean up code
ScriptedAlchemy May 25, 2023
a1ebe03
refactor: change yarn to npm in scripts
ScriptedAlchemy May 25, 2023
701cd85
refactor: remove legacy-peer-deps flag from npm ci command
ScriptedAlchemy May 25, 2023
a8481d6
chore(utils): release version 1.8.1-rc1.0
ScriptedAlchemy May 25, 2023
5ee1a32
chore(utils): release version 1.8.1-rc1.0
ScriptedAlchemy May 25, 2023
40669d5
Merge branch 'main' into kill_child_compilers
ScriptedAlchemy May 25, 2023
fee5c78
chore(utils): release version 1.8.1-rc1.0
ScriptedAlchemy May 25, 2023
3587c35
chore(node): release version 0.15.2-rc1.0
ScriptedAlchemy May 25, 2023
d23f45d
chore(nextjs-mf): release version 6.5.2-rc1.0
ScriptedAlchemy May 25, 2023
3d8d540
feat: support custom distDir
ScriptedAlchemy May 25, 2023
103fa91
fix: remove default props deprecation on flush chunks
ScriptedAlchemy May 25, 2023
3174b98
refactor: improve ChunkCorrelationPlugin.js
ScriptedAlchemy May 26, 2023
391b137
refactor: change processAssets.tapAsync to processAssets.tap in Chunk…
ScriptedAlchemy May 26, 2023
4dad1eb
fix: Improve chunk correlation (#936)
ScriptedAlchemy May 26, 2023
0545cf8
Merge remote-tracking branch 'origin/kill_child_compilers' into kill_…
ScriptedAlchemy May 26, 2023
9e416dd
chore(utils): release version 1.8.1-rc.2
ScriptedAlchemy May 26, 2023
e447302
chore(utils): release version 1.8.1-rc.2
ScriptedAlchemy May 26, 2023
5a4de6d
chore(native-federation-typescript): release version 0.2.2-rc.0
ScriptedAlchemy May 26, 2023
d51d73e
chore(utils): release version 1.8.1
ScriptedAlchemy May 26, 2023
902efc5
chore(utils): release version 1.8.2-beta.0
ScriptedAlchemy May 26, 2023
009b6d8
chore(node): release version 0.15.2-beta.0
ScriptedAlchemy May 26, 2023
8cc5ec2
chore(nextjs-mf): release version 6.5.2-beta.0
ScriptedAlchemy May 26, 2023
5ea321a
fix: remove logs or wrap in debug flag (#959)
ScriptedAlchemy Jun 9, 2023
7ef4bb2
Merge branch 'main' into kill_child_compilers
ScriptedAlchemy Jun 9, 2023
7130f88
Merge branch 'main' into kill_child_compilers
ScriptedAlchemy Jun 9, 2023
334cfe3
chore(utils): release version 1.8.2-rc3.0
ScriptedAlchemy Jun 9, 2023
139d9e9
chore(node): release version 0.15.2-rc3.0
ScriptedAlchemy Jun 9, 2023
8071b3d
chore(nextjs-mf): release version 6.5.2-rc3.0
ScriptedAlchemy Jun 9, 2023
d362a77
fix: Path loader patches (#960)
ScriptedAlchemy Jun 9, 2023
f56e195
chore(utils): release version 1.8.2-rc3.1
ScriptedAlchemy Jun 9, 2023
4fadfb4
chore(node): release version 0.15.2-rc3.1
ScriptedAlchemy Jun 9, 2023
914582b
chore(nextjs-mf): release version 6.5.2-rc3.1
ScriptedAlchemy Jun 9, 2023
b5c7af1
fix: Runtime module checking (#969)
ScriptedAlchemy Jun 15, 2023
1c42e2a
fix: Resolve conditional exports (#971)
ScriptedAlchemy Jun 15, 2023
5e8b49c
fix: Resolve condition names (#974)
ScriptedAlchemy Jun 16, 2023
903296a
fix: Api routes (#984)
ScriptedAlchemy Jun 21, 2023
fe483a1
Merge branch 'main' into kill_child_compilers
ScriptedAlchemy Jun 21, 2023
a5d04ad
chore(utils): release version 1.8.2-rc4.0
ScriptedAlchemy Jun 21, 2023
292cc99
chore(node): release version 0.15.2-rc4.0
ScriptedAlchemy Jun 21, 2023
16e685a
chore(nextjs-mf): release version 6.5.2-rc4.0
ScriptedAlchemy Jun 21, 2023
b051c12
fix: Non-Deterministic Chunk ID Handling (#986)
ScriptedAlchemy Jun 23, 2023
c534c49
Merge branch 'main' into kill_child_compilers
ScriptedAlchemy Jun 23, 2023
cee0b91
chore(utils): release version 1.8.2-rc5.0
ScriptedAlchemy Jun 23, 2023
bd564e6
chore(node): release version 0.15.2-rc5.0
ScriptedAlchemy Jun 23, 2023
7b8ff88
chore(nextjs-mf): release version 6.5.2-rc5.0
ScriptedAlchemy Jun 23, 2023
1bd38a2
ci: allow empty release
ScriptedAlchemy Jun 23, 2023
a86b070
fix: remove loggers
ScriptedAlchemy Jun 23, 2023
5ffae85
Merge branch 'main' into kill_child_compilers
ScriptedAlchemy Jun 23, 2023
72cd092
chore: update locks
ScriptedAlchemy Jun 23, 2023
415f43b
chore(utils): release version 1.8.2-rc.0
ScriptedAlchemy Jun 23, 2023
1f658df
chore(utils): release version 1.8.2-rc6.0
ScriptedAlchemy Jun 23, 2023
cc45f7d
chore(node): release version 0.15.2-rc6.0
ScriptedAlchemy Jun 23, 2023
f19f38c
chore(nextjs-mf): release version 6.5.2-rc6.0
ScriptedAlchemy Jun 23, 2023
fc176ff
fix: image path fallback
ScriptedAlchemy Jun 27, 2023
66e8ea1
chore(utils): release version 1.8.2-rc7.0
ScriptedAlchemy Jun 27, 2023
4415725
Merge branch 'main' into kill_child_compilers
ScriptedAlchemy Jun 27, 2023
5246343
chore(utils): release version 1.8.2-rc7.1
ScriptedAlchemy Jun 27, 2023
4a2e260
chore(node): release version 0.15.2-rc7.0
ScriptedAlchemy Jun 27, 2023
e1ca9e7
chore(nextjs-mf): release version 6.5.2-rc7.0
ScriptedAlchemy Jun 27, 2023
2495582
fix: disable flushing remotes to ssr for now
ScriptedAlchemy Jun 27, 2023
6b1337b
chore(utils): release version 1.8.2-rc8.0
ScriptedAlchemy Jun 27, 2023
a0e7623
chore(node): release version 0.15.2-rc8.0
ScriptedAlchemy Jun 27, 2023
235db22
chore(nextjs-mf): release version 6.5.2-rc8.0
ScriptedAlchemy Jun 27, 2023
6c5cfae
fix: disable flushing remotes to ssr for now
ScriptedAlchemy Jun 28, 2023
c273a40
fix: proxy get() module not passing all applied args to underlaying b…
ScriptedAlchemy Jun 28, 2023
a267904
docs: updat readme
ScriptedAlchemy Jun 28, 2023
60a173a
Merge remote-tracking branch 'origin/kill_child_compilers' into kill_…
ScriptedAlchemy Jun 28, 2023
44916e2
Merge branch 'fix_arg_spread' into kill_child_compilers
ScriptedAlchemy Jun 28, 2023
d12829b
Merge branch 'main' into kill_child_compilers
ScriptedAlchemy Jun 28, 2023
c25ec3b
Merge branch 'main' into kill_child_compilers
ScriptedAlchemy Jun 28, 2023
c804753
chore(utils): release version 1.8.2-rc8.1
ScriptedAlchemy Jun 28, 2023
f26e2e0
chore(utils): release version 1.8.2-rc8.2
ScriptedAlchemy Jun 28, 2023
84052b0
chore(node): release version 0.15.2-rc8.1
ScriptedAlchemy Jun 28, 2023
380d768
chore(nextjs-mf): release version 6.5.2-rc8.1
ScriptedAlchemy Jun 28, 2023
5cc746d
choew: update dps
ScriptedAlchemy Jun 28, 2023
7bc0f1b
Merge branch 'main' into kill_child_compilers
ScriptedAlchemy Jun 28, 2023
9725606
choew: update locks
ScriptedAlchemy Jun 28, 2023
e0bdb9c
Merge branch 'main' into kill_child_compilers
ScriptedAlchemy Jun 29, 2023
03e65ef
Merge branch 'main' into kill_child_compilers
ScriptedAlchemy Jun 30, 2023
efb5d1e
style:lints
ScriptedAlchemy Jun 30, 2023
4ea10f5
chore: patch from main
ScriptedAlchemy Jun 30, 2023
1833f75
tests: fix tests
ScriptedAlchemy Jun 30, 2023
9664729
chore: update readme
ScriptedAlchemy Jun 30, 2023
4f509f8
chore: update readme
ScriptedAlchemy Jun 30, 2023
1265453
chore: update readme
ScriptedAlchemy Jun 30, 2023
301f22e
chore: update readme
ScriptedAlchemy Jun 30, 2023
9f4b0ef
chore: tests
ScriptedAlchemy Jun 30, 2023
d6cb7ea
style: tsignore
ScriptedAlchemy Jun 30, 2023
44de0be
fix: ts errors
ScriptedAlchemy Jun 30, 2023
93335c3
chore: fix nx building (#1086)
ScriptedAlchemy Jun 30, 2023
4c7b3ff
fix: module type errors
ScriptedAlchemy Jun 30, 2023
c0f78b6
Merge branch 'main' into kill_child_compilers
ScriptedAlchemy Jun 30, 2023
c061920
chore(utils): release version 1.9.2-rc.0
ScriptedAlchemy Jun 30, 2023
ae5cd6b
chore(node): release version 0.16.3-rc.0
ScriptedAlchemy Jun 30, 2023
ebc529a
chore(nextjs-mf): release version 6.7.2-rc.0
ScriptedAlchemy Jun 30, 2023
4c43729
feat: support edge workers
ScriptedAlchemy Jul 1, 2023
3f5df94
feat: support edge workers (#1084)
ScriptedAlchemy Jul 1, 2023
7e083ba
chore(utils): release version 1.9.2-rc.1
ScriptedAlchemy Jul 1, 2023
9bd0304
chore(node): release version 0.16.3-rc.1
ScriptedAlchemy Jul 1, 2023
ba8c2b5
chore(nextjs-mf): release version 6.7.2-rc.1
ScriptedAlchemy Jul 1, 2023
d217077
Update packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
ScriptedAlchemy Jul 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.16.0
8 changes: 0 additions & 8 deletions .vscode/extensions.json

This file was deleted.

1 change: 1 addition & 0 deletions apps/3000-home/components/SharedNav.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import { Menu, Layout } from 'antd';
import { useRouter } from 'next/router';
import './menu';

const SharedNav = () => {
const { asPath, push } = useRouter();
Expand Down
9 changes: 5 additions & 4 deletions apps/3000-home/next.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const { registerPluginTSTranspiler } = require('nx/src/utils/nx-plugin.js');

registerPluginTSTranspiler();
const { withNx } = require('@nx/next/plugins/with-nx');
const { createDelegatedModule } = require('@module-federation/utilities');
const { withNx } = require('@nrwl/next/plugins/with-nx');
const NextFederationPlugin = require('@module-federation/nextjs-mf');
const { createDelegatedModule } = require('@module-federation/utilities');

/**
* @type {import('@nx/next/plugins/with-nx').WithNxOptions}
* @type {import('@nrwl/next/plugins/with-nx').WithNxOptions}
**/
const nextConfig = {
nx: {
Expand All @@ -16,6 +16,7 @@ const nextConfig = {
},
webpack(config, options) {
const { isServer } = options;
// used for testing build output snapshots

const remotes = {
shop: createDelegatedModule(require.resolve('./remote-delegate.js'), {
Expand All @@ -26,6 +27,7 @@ const nextConfig = {
// checkout: createDelegatedModule(require.resolve('./remote-delegate.js'), {
// remote: `checkout@http://localhost:3002/_next/static/${isServer ? 'ssr' : 'chunks'}/remoteEntry.js`,
// }),

// shop: `shop@http://localhost:3001/_next/static/${
// isServer ? 'ssr' : 'chunks'
// }/remoteEntry.js`,
Expand All @@ -51,7 +53,6 @@ const nextConfig = {
antd: {},
},
extraOptions: {
automaticAsyncBoundary: true,
exposePages: true,
enableImageLoaderFix: true,
enableUrlLoaderFix: true,
Expand Down
2 changes: 1 addition & 1 deletion apps/3000-home/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"antd": "^4.22.3",
"lodash": "4.17.21",
"next": "13.3.1",
"next": "13.4.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"js-cookie": "^3.0.1"
Expand Down
4 changes: 2 additions & 2 deletions apps/3000-home/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Router, { useRouter } from 'next/router';
import SharedNav from '../components/SharedNav';
import HostAppMenu from '../components/menu';
import 'antd/dist/antd.css';

console.log(__webpack_share_scopes__);
function MyApp(props) {
const { Component, pageProps } = props;
const { asPath } = useRouter();
Expand All @@ -26,7 +26,7 @@ function MyApp(props) {
}
};
// handle first route hit.
React.useMemo(() => handleRouteChange(asPath), []);
React.useMemo(() => handleRouteChange(asPath), [asPath]);

//handle route change
React.useEffect(() => {
Expand Down
3 changes: 3 additions & 0 deletions apps/3000-home/pages/api/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function handler(req, res) {
res.status(200).json({ name: 'John Doe' });
}
6 changes: 3 additions & 3 deletions apps/3000-home/pages/checkout/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-ignore
//@ts-ignore
import Page from 'checkout/pages/checkout/index';

const Checkout = Page;
// the data loading method needs to be here so next can static analyze it properly.
// eslint-disable-next-line no-self-assign
Checkout.getInitialProps = Page.getInitialProps;

export default Checkout;
47 changes: 47 additions & 0 deletions apps/3000-home/pages/dynamic-remote.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import React from 'react';
//eslint-disable-next-line
import { injectScript } from '@module-federation/utilities';
// example of dynamic remote import on server and client
const isServer = typeof window === 'undefined';
//could also use
// getModule({
// remoteContainer: {
// global: 'app2',
// url: 'http://localhost:3002/remoteEntry.js',
// },
// modulePath: './sample'
// }).then((sample) => {
// console.log(sample)
// });
const dynamicContainer = injectScript({
global: 'checkout',
url: `http://localhost:3002/_next/static/${
isServer ? 'ssr' : 'chunks'
}/remoteEntry.js`,
}).then((container) => {
return container.get('./CheckoutTitle').then((factory) => {
return factory();
});
});
const DynamicComponent = React.lazy(() => dynamicContainer);

// eslint-disable-next-line react/display-name
export default (props) => {
return (
<>
<React.Suspense>
<DynamicComponent />
</React.Suspense>
<p>Code from GSSP:</p>
<pre>{props.code}</pre>
</>
);
};

export async function getServerSideProps() {
return {
props: {
code: (await dynamicContainer).default.toString(),
},
};
}
30 changes: 14 additions & 16 deletions apps/3000-home/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
import React, { Suspense } from 'react';
import React, { Suspense, lazy } from 'react';
import Head from 'next/head';
import dynamic from 'next/dynamic';

const CheckoutTitle = dynamic(() => import('checkout/CheckoutTitle'), {
ssr: true,
});
const ButtonOldAnt = dynamic(() => import('checkout/ButtonOldAnt'), {
ssr: true,
});
const WebpackSvgRemote = dynamic(() => import('shop/WebpackSvg'), {
ssr: true,
});
const WebpackPngRemote = dynamic(() => import('shop/WebpackPng'), {
ssr: true,
});
import CheckoutTitle from 'checkout/CheckoutTitle';
import ButtonOldAnt from 'checkout/ButtonOldAnt';
console.log(ButtonOldAnt);
// console.log('cc', cc);
// const CheckoutTitle = lazy(() => import('checkout/CheckoutTitle'));
// const ButtonOldAnt = lazy(() => import('checkout/ButtonOldAnt'));
const WebpackSvgRemote = lazy(() =>
import('shop/WebpackSvg').then((m) => {
console.log(m);
return m;
})
);
const WebpackPngRemote = lazy(() => import('shop/WebpackPng'));

const Home = () => {
return (
Expand Down Expand Up @@ -63,7 +62,6 @@ const Home = () => {
<b>checkout</b>
</li>
</ul>

<h2 style={{ marginTop: '30px' }}>Federation test cases</h2>
<table border={1} cellPadding={5}>
<thead>
Expand Down
15 changes: 11 additions & 4 deletions apps/3000-home/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@
"outputPath": "dist/apps/3000-home"
},
"production": {}
}
},
"dependsOn": [
{
"target": "build",
"dependencies": true
}
]
},
"serve": {
"executor": "@nx/next:server",
Expand Down Expand Up @@ -50,10 +56,11 @@
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/3000-home/**/*.{ts,tsx,js,jsx}"]
"lintFilePatterns": [
"apps/3000-home/**/*.{ts,tsx,js,jsx}"
]
}
}
},
"tags": [],
"implicitDependencies": ["nextjs-mf"]
"tags": []
}
11 changes: 5 additions & 6 deletions apps/3000-home/remote-delegate.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
/* eslint-disable no-undef */
const { importDelegatedModule } = require('@module-federation/utilities');

// Delegates are currently not used in this example, but are left here for testing.
module.exports = new Promise((resolve, reject) => {
//eslint-disable-next-line
console.log('Delegate being called for', __resourceQuery);
// eslint-disable-next-line no-async-promise-executor
module.exports = new Promise(async (resolve, reject) => {
//eslint-disable-next-line
const currentRequest = new URLSearchParams(__resourceQuery).get('remote');

const [global, url] = currentRequest.split('@');
const { importDelegatedModule } = await import(
'@module-federation/utilities/src/utils/importDelegatedModule'
);

importDelegatedModule({
global,
Expand Down
56 changes: 28 additions & 28 deletions apps/3001-shop/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,33 +23,33 @@ const nextConfig = {
name: 'shop',
filename: 'static/chunks/remoteEntry.js',
remotes: {
home: createDelegatedModule(require.resolve('./remote-delegate.js'), {
remote: `home_app@http://localhost:3000/_next/static/${
isServer ? 'ssr' : 'chunks'
}/remoteEntry.js`,
}),
shop: createDelegatedModule(require.resolve('./remote-delegate.js'), {
remote: `shop@http://localhost:3001/_next/static/${
isServer ? 'ssr' : 'chunks'
}/remoteEntry.js`,
}),
checkout: createDelegatedModule(
require.resolve('./remote-delegate.js'),
{
remote: `checkout@http://localhost:3002/_next/static/${
isServer ? 'ssr' : 'chunks'
}/remoteEntry.js`,
}
),
// home: `home_app@http://localhost:3000/_next/static/${
// isServer ? 'ssr' : 'chunks'
// }/remoteEntry.js`,
// shop: `shop@http://localhost:3001/_next/static/${
// isServer ? 'ssr' : 'chunks'
// }/remoteEntry.js`,
// checkout: `checkout@http://localhost:3002/_next/static/${
// isServer ? 'ssr' : 'chunks'
// }/remoteEntry.js`,
// home: createDelegatedModule(require.resolve('./remote-delegate.js'), {
// remote: `home_app@http://localhost:3000/_next/static/${
// isServer ? 'ssr' : 'chunks'
// }/remoteEntry.js`,
// }),
// shop: createDelegatedModule(require.resolve('./remote-delegate.js'), {
// remote: `shop@http://localhost:3001/_next/static/${
// isServer ? 'ssr' : 'chunks'
// }/remoteEntry.js`,
// }),
// checkout: createDelegatedModule(
// require.resolve('./remote-delegate.js'),
// {
// remote: `checkout@http://localhost:3002/_next/static/${
// isServer ? 'ssr' : 'chunks'
// }/remoteEntry.js`,
// }
// ),
home: `home_app@http://localhost:3000/_next/static/${
isServer ? 'ssr' : 'chunks'
}/remoteEntry.js`,
shop: `shop@http://localhost:3001/_next/static/${
isServer ? 'ssr' : 'chunks'
}/remoteEntry.js`,
checkout: `checkout@http://localhost:3002/_next/static/${
isServer ? 'ssr' : 'chunks'
}/remoteEntry.js`,
},
exposes: {
'./useCustomRemoteHook': './components/useCustomRemoteHook',
Expand All @@ -59,10 +59,10 @@ const nextConfig = {
},
shared: {
lodash: {},
antd: {},
},
extraOptions: {
exposePages: true,
automaticAsyncBoundary: true,
enableImageLoaderFix: true,
enableUrlLoaderFix: true,
automaticPageStitching: false,
Expand Down
2 changes: 1 addition & 1 deletion apps/3001-shop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"antd": "^4.22.3",
"lodash": "4.17.21",
"next": "13.3.1",
"next": "13.4.2",
"react": "18.2.0",
"react-dom": "18.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion apps/3001-shop/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function MyApp({ Component, pageProps }) {
}
};
// handle first route hit.
React.useMemo(() => handleRouteChange(asPath), []);
React.useMemo(() => handleRouteChange(asPath), [asPath]);

//handle route change
React.useEffect(() => {
Expand Down
1 change: 1 addition & 0 deletions apps/3001-shop/pages/shop/exposed-pages.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useState, useEffect } from 'react';

// eslint-disable-next-line @nrwl/nx/enforce-module-boundaries
import { injectScript } from '@module-federation/nextjs-mf/utils';

export default function ExposedPages() {
Expand Down
Loading