chore(cli): 升级 Rspack dev-server 至 2.2.0 - #421
Merged
Merged
Conversation
ckken
commented
Aug 6, 2026
ckken
left a comment
Contributor
Author
There was a problem hiding this comment.
独立验收意见
结论:未发现阻断问题,可接受该升级。
@rspack/dev-server@2.2.0与 2.1.0 的 Node engines、@rspack/corepeer 和@rspack/dev-middlewareruntime 约束一致,npm metadata/integrity 与 lockfile 一致。- 上游 v2.2.0 主要为 HPM 4.2.0 兼容和成功 proxy 请求日志从 info 降为 log;未发现
RspackDevServer构造/start/stop API 破坏。 - 本地
workflow:check、ci:verify(49/49)、empbuild、CLI 测试和真实 dev-server HTTP smoke 均通过。 - code-review-graph:detect-changes 3 个变更文件、0 affected flows、0 test gaps、risk 0.30;impact 19 direct nodes / 100 nodes within 2 hops。
P2 观察项
packages/cli/src/server/connect/dev.ts 的真实 CLI 测试覆盖启动/HTTP/停止,但未专门断言 proxy 成功请求的日志级别;若该日志级别属于产品契约,后续可补 proxy smoke。本 PR 不改变 EMP 的 proxy 配置或业务行为,当前按低风险观察项记录,不阻塞合并。
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.
背景
核心依赖扫描在
@rspack/dev-server发现稳定版2.2.0,当前为2.1.0,候选进入 EVALUATE(critical / dev-server)。上游 v2.2.0 发布说明仅涉及默认 HPM 日志降噪、测试稳定性和依赖更新;Node 与 peerDependencies 未变化。改动
packages/cli的@rspack/dev-server范围更新为^2.2.0。@rspack/dev-server@2.2.0及官方 registry integrity;@rspack/core@2.1.5、@rspack/dev-middleware@2.0.3保持不变。范围与风险
93dcdb240f8e53941e7ee6d20722ea2571813571,或将直接依赖恢复到^2.1.0后重新生成锁文件。验证
corepack pnpm install --frozen-lockfile --ignore-scripts:通过。corepack pnpm test:toolchain:12/12 通过。corepack pnpm --filter @empjs/chain build && corepack pnpm --filter @empjs/cli test:通过。/bundle.jsHTTP 200,内容断言通过。corepack pnpm workflow:check:通过。corepack pnpm ci:verify:49/49 通过。corepack pnpm empbuild:通过。@rspack/dev-server相关 finding,现存风险未被本 PR 掩盖。code-review-graph
setup(id 4):28 nodes,depth 4,criticality 0.6989;未发现本次变更影响的执行流。tests_for查询 dev-server 运行时代码未返回静态关联;仓库 CLI watch/serve real acceptance 与本轮真实 smoke 已覆盖启动、编译、HTTP 服务。保护范围
未触碰
apps/**、website、发布工作流、生成物、缓存或其他用户改动。