chore(share): 升级 Module Federation 依赖至 2.8.2 - #427
Merged
Conversation
ckken
commented
Aug 11, 2026
ckken
left a comment
Contributor
Author
There was a problem hiding this comment.
独立只读复核结论
未发现阻断问题(P0/P1=0)。
已核验
packages/emp-share四个 Module Federation 依赖与pnpm-lock.yaml闭包统一到 2.8.2;@module-federation/dts-plugin的undici为 7.29.0,与官方 v2.8.2 release note 一致。- peer/API 形状与当前 Rspack 2.1.8、TypeScript 7.0.2 兼容;运行时/插件调用链未改。
@empjs/share测试、toolchain 12/12、workflow:check、ci:verify、empbuild通过;GitHub CI 5/5 全绿。- 生产 audit 仍有既存链,当前 16 high / 14 moderate / 2 low / 0 critical;本 PR 未命中 Module Federation advisory。
残余风险
- P2:
library-global.browser.ts的/container-static/emp-share/sdk.js资源加载和force-remote.browser.ts的 mf-host iframe 全局注入在本地 Chromium harness 失败;runtime-sdk.browser.ts通过,直接 static/container HTTP smoke 能返回sdk.js200。该失败未指向 2.8.2 断言,但浏览器层仍未形成全绿证据。 - CodeGraph detect:4 changed files、risk 0.30、0 affected flows、0 test gaps;
rsConfigflow 23 nodes/depth 4。静态tests_for对 share 源码未建立关联,已由实际包测试补足。
建议保持 PR 范围不扩展,后续单独修复浏览器 harness 路由/iframe 全局准备。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
核心依赖扫描发现
@module-federation/rspack、@module-federation/runtime、@module-federation/runtime-tools的稳定版本从 2.8.1 更新到 2.8.2;@module-federation/sdk同步保持同一 2.8.2 线。官方 v2.8.2 release notes 包含 ESM remote entry retry 修复、SSR stylesheet 去重以及undici7.28.0 → 7.29.0。改动
packages/emp-share四个 Module Federation 依赖更新为^2.8.2。pnpm-lock.yaml,闭包统一到 2.8.2,@module-federation/dts-plugin同步到 2.8.2,undici同步到 7.29.0;未引入其他独立版本变更。目录边界
apps/**、website/**、packages/cdn-*、packages/lib-*或受保护发布工作流。验证
corepack pnpm install --frozen-lockfile:通过。corepack pnpm --filter @empjs/share test:通过。corepack pnpm test:toolchain:12/12 通过。corepack pnpm workflow:check:通过。corepack pnpm ci:verify:通过(含规则 49/49、CLI、包测试与 release check)。corepack pnpm empbuild:通过。rsConfigflow 23 nodes/depth 4;静态tests_for对 share 源码未建立关联,但实际 share 测试已执行。runtime-sdk.browser.ts通过,但library-global.browser.ts的/container-static/emp-share/sdk.js加载和force-remote.browser.ts的 mf-host iframe 全局注入失败,复现为现有 harness/container 静态资源边界问题;直接 static/container HTTP smoke 可返回sdk.js200,未观察到依赖断言失败。风险与回滚
pnpm audit --prod --json当前为 16 high / 14 moderate / 2 low / 0 critical,目标 Module Federation 链未命中 advisory;剩余审计链不在本 PR 范围。关联 Issue:#412
Reviewer 可在该分支重跑上述命令。