Skip to content

Commit 41e1a84

Browse files
Merge branch 'main' into consume-share-layers
# Conflicts: # .gitignore # packages/enhanced/src/schemas/container/ContainerPlugin.check.ts # packages/enhanced/src/schemas/container/ContainerPlugin.json # packages/enhanced/src/schemas/container/ContainerPlugin.ts # packages/enhanced/src/schemas/container/ModuleFederationPlugin.check.ts # packages/enhanced/src/schemas/container/ModuleFederationPlugin.json # packages/enhanced/src/schemas/container/ModuleFederationPlugin.ts # pnpm-lock.yaml
2 parents 6e6ef06 + 1f1a544 commit 41e1a84

File tree

167 files changed

+6666
-5973
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+6666
-5973
lines changed

.changeset/ai-eager-lion.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
"@module-federation/enhanced": minor
3+
---
4+
5+
Enhanced module federation plugin to remove the `federationRuntime` experiment and replace it with `asyncStartup`.
6+
7+
- Dropped support for `federationRuntime` experiment and introduced `asyncStartup` to enable asynchronous container startup.
8+
- Refactored EmbedFederationRuntimePlugin for improved runtime embedding and startup management.
9+
- Added options to enable runtime embedding for all chunks.
10+
- Integrated measures to ensure proper initialization and avoid duplicate hooks.
11+
- Simplified constructor and class dependencies by removing the `experiments` parameter.
12+
- Revised schema and validation definitions to accommodate new asynchronous startup configurations.
13+
- Updated test cases to reflect the change from `federationRuntime` to `asyncStartup`.

.changeset/ai-happy-bear.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@module-federation/nextjs-mf": patch
3+
---
4+
5+
- Changed experiment configuration from `federationRuntime: 'hoisted'` to `asyncStartup: true`.
6+
- Improved initialization logic in the runtime module to enable better caching and startup handling.

.changeset/ai-lazy-dog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@module-federation/sdk": minor
3+
---
4+
5+
- Removed `federationRuntime` option from `ContainerPluginOptions`'s `experiments`.
6+
- Removed `federationRuntime` option from `ModuleFederationPluginOptions`'s `experiments`.
7+
- Added `asyncStartup` option to `ModuleFederationPluginOptions`'s `experiments`.

.changeset/config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"@module-federation/data-prefetch",
2525
"@module-federation/rsbuild-plugin",
2626
"@module-federation/error-codes",
27-
"@module-federation/inject-external-runtime-core-plugin"
27+
"@module-federation/inject-external-runtime-core-plugin",
28+
"@module-federation/runtime-core"
2829
]
2930
],
3031
"ignorePatterns": ["^alpha|^beta"],

.changeset/dry-geese-drum.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/strong-ravens-push.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

.cursorignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ tools/
5252
.vscode/
5353
.verdaccio/
5454

55+
!apps/manifest-demo/*.ts
56+
5557
# Ignore specific files
5658
.cursorignore
5759
jest.preset.js

.cursorrules

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-
2+
consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
3+
## Core Principles
4+
1. EXPLORATION OVER CONCLUSION
5+
- Never rush to conclusions
6+
- Keep exploring until a solution emerges naturally from the evidence
7+
- If uncertain, continue reasoning indefinitely
8+
- Question every assumption and inference
9+
2. DEPTH OF REASONING
10+
- Engage in extensive contemplation (minimum 10,000 characters)
11+
- Express thoughts in natural, conversational internal monologue
12+
- Break down complex thoughts into simple, atomic steps
13+
- Embrace uncertainty and revision of previous thoughts
14+
3. THINKING PROCESS
15+
- Use short, simple sentences that mirror natural thought patterns
16+
- Express uncertainty and internal debate freely
17+
- Show work-in-progress thinking
18+
- Acknowledge and explore dead ends
19+
- Frequently backtrack and revise
20+
- Contemplate before each new action
21+
- Contemplate after each and every step
22+
4. PERSISTENCE
23+
- Value thorough exploration over quick resolution
24+
## Output Format
25+
Your responses
26+
must follow this exact structure given below.
27+
Make sure
28+
to
29+
always include the final answer.
30+
...
31+
<contemplator>
32+
Your extensive internal monologue goes here
33+
- Begin with small, foundational observations
34+
- read each file related to the subject in full, make functional observations
35+
- Question each step thoroughly
36+
- Show natural thought progression
37+
- Express doubts and uncertainties
38+
- Revise and backtrack if you need to
39+
- Continue until natural resolution </contemplator>
40+

.github/workflows/e2e-modern-ssr.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ jobs:
4747
run: |
4848
lsof -ti tcp:3050,3051,3052,3053,3054,3055,3056 | xargs -r kill &&
4949
pnpm run app:modern:dev &
50-
sleep 1 &&
51-
npx wait-on http://127.0.0.1:3050/ &&
52-
npx wait-on http://127.0.0.1:3051/ &&
53-
npx wait-on http://127.0.0.1:3052/ &&
54-
npx wait-on http://127.0.0.1:3053/ &&
55-
npx wait-on http://127.0.0.1:3054/ &&
56-
npx wait-on http://127.0.0.1:3055/ &&
57-
npx wait-on http://127.0.0.1:3056/ &&
50+
sleep 30 &&
51+
npx wait-on http://127.0.0.1:3050/mf-manifest.json &&
52+
npx wait-on http://127.0.0.1:3051/mf-manifest.json &&
53+
npx wait-on http://127.0.0.1:3052/mf-manifest.json &&
54+
npx wait-on http://127.0.0.1:3053/mf-manifest.json &&
55+
npx wait-on http://127.0.0.1:3054/mf-manifest.json &&
56+
npx wait-on http://127.0.0.1:3055/mf-manifest.json &&
57+
npx wait-on http://127.0.0.1:3056/mf-manifest.json &&
5858
npx nx run modernjs-ssr-host:e2e &&
5959
lsof -ti tcp:3050,3051,3052,3053,3054,3055,3056 | xargs kill

.github/workflows/e2e-next-dev.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
- name: E2E Test for Next.js Dev
4949
if: steps.check-ci.outcome == 'success'
5050
run: |
51+
npx kill-port 3000,3001,3002 &&
5152
pnpm run app:next:dev &
5253
sleep 1 &&
5354
npx wait-on tcp:3001 &&

0 commit comments

Comments
 (0)