Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
d52545d
feat(managers): resolve runtime families atomically
ScriptedAlchemy Sep 18, 2026
b7945d5
fix(managers): let a participant disable a capability it configures
ScriptedAlchemy Sep 24, 2026
0bc1ae1
fix(managers): match legacy family members by version, not realpath
ScriptedAlchemy Sep 24, 2026
04343ee
fix(managers): ignore unknown optimization targets
ScriptedAlchemy Sep 24, 2026
5949746
fix(managers): report malformed topologies and name split families
ScriptedAlchemy Sep 24, 2026
84ed020
refactor(managers): delete unused runtime-selection helpers
ScriptedAlchemy Sep 24, 2026
f1a5971
docs(managers): describe the runtime-selection changeset plainly
ScriptedAlchemy Sep 24, 2026
271f2b1
fix(managers): reject a federation plugin on a child compiler
ScriptedAlchemy Sep 24, 2026
48e3d59
Merge remote-tracking branch 'origin/main' into rfc5036/01-runtime-fa…
ScriptedAlchemy Sep 24, 2026
3754363
fix(runtime-core): import ResourceLoadContext in the remote handler
ScriptedAlchemy Sep 24, 2026
b85724b
test(enhanced): cover pruned imports hoisted into the runtime chunk
ScriptedAlchemy Sep 25, 2026
c63a328
fix(enhanced): skip inactive connections when hoisting runtime modules
ScriptedAlchemy Sep 25, 2026
d92e78e
test(build): cover tsdown format names and parse built declarations
ScriptedAlchemy Sep 25, 2026
00b53e3
fix(build): emit cjs declarations as .d.cts to stop concurrent writes
ScriptedAlchemy Sep 25, 2026
9f9a4b7
fix(managers): validate shared runtime selection slots
ScriptedAlchemy Oct 3, 2026
d4cd788
Merge current main into RFC5036 resolver base
ScriptedAlchemy Oct 3, 2026
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
12 changes: 12 additions & 0 deletions .changeset/calm-dts-extensions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'@module-federation/runtime': patch
'@module-federation/runtime-core': patch
'@module-federation/runtime-tools': patch
'@module-federation/webpack-bundler-runtime': patch
'@module-federation/sdk': patch
'@module-federation/error-codes': patch
---

Emit CommonJS declarations as `.d.cts` and point the `require` types
condition at them. The CJS and ESM builds previously wrote the same `.d.ts`
path at the same time, which could leave a torn declaration file.
5 changes: 5 additions & 0 deletions .changeset/rfc5036-selection-slot-validation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@module-federation/managers': patch
---

Reject malformed or unsupported compiler runtime selection slots before sharing state across plugin copies.
7 changes: 7 additions & 0 deletions .changeset/runtime-core-resource-load-context-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@module-federation/runtime-core': patch
---

Import `ResourceLoadContext` in the remote handler so the published
`remote/index.d.ts` declares it. Consumers that type-check dependencies with
`skipLibCheck: false` no longer get TS2304.
12 changes: 12 additions & 0 deletions .changeset/runtime-family-selection.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'@module-federation/managers': minor
---

Add `@module-federation/managers/runtime-selection`. It reads the optional
`federationRuntime` contract from a runtime-tools package, walks each family
dependency from the package that requires it, and returns one root per member
role. A missing or mismatched member is an error. The resolver does not fill
the gap from another installed copy. Packages without the contract keep the
current `FEDERATION_*` define behavior. Within one plugin an explicit
`disableRemote` or `disableShared` flag wins over configured `remotes` or
`shared`, as on main today.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
run: node tools/scripts/check-format-changed.mjs

- name: Test CI and release tooling
run: node --test tools/scripts/ci-is-affected.test.mjs tools/scripts/create-release-draft.test.mjs tools/scripts/prepare-browser-release.test.mjs
run: node --test tools/scripts/ci-is-affected.test.mjs tools/scripts/create-release-draft.test.mjs tools/scripts/prepare-browser-release.test.mjs tools/scripts/tsdown/config-helpers.test.mjs

- name: Verify Rslib Template Publint Wiring
run: node packages/create-module-federation/scripts/verify-rslib-templates.mjs
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"build": "pnpm run build:packages",
"build:all": "pnpm exec turbo run build --concurrency=20",
"build:apps": "pnpm exec turbo run build --filter=./apps/** --concurrency=20",
"build:packages": "pnpm exec turbo run build --filter=./packages/** --concurrency=20",
"build:packages": "pnpm exec turbo run build --filter=./packages/** --concurrency=20 && node tools/scripts/check-dts.mjs",
"test:packages": "pnpm exec turbo run test --filter=./packages/** --concurrency=20",
"lint:packages": "pnpm exec turbo run lint --filter=./packages/**",
"lint-fix": "node tools/scripts/lint-fix.mjs",
Expand Down
4 changes: 2 additions & 2 deletions packages/assemble-release-plan/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"description": "Reads changesets and adds information on dependents that need bumping",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"types": "./dist/index.d.cts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/index.d.cts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"default": "./dist/index.cjs"
Expand Down
14 changes: 7 additions & 7 deletions packages/error-codes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"types": "./dist/index.d.cts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
Expand All @@ -45,7 +45,7 @@
"default": "./dist/browser.mjs"
},
"require": {
"types": "./dist/browser.d.ts",
"types": "./dist/browser.d.cts",
"default": "./dist/browser.cjs"
}
},
Expand All @@ -55,21 +55,21 @@
"default": "./dist/node.mjs"
},
"require": {
"types": "./dist/node.d.ts",
"types": "./dist/node.d.cts",
"default": "./dist/node.cjs"
}
}
},
"typesVersions": {
"*": {
".": [
"./dist/index.d.ts"
"./dist/index.d.cts"
],
"browser": [
"./dist/browser.d.ts"
"./dist/browser.d.cts"
],
"node": [
"./dist/node.d.ts"
"./dist/node.d.cts"
]
}
},
Expand Down
Loading
Loading