Skip to content

ci: ignore react/react-dom major updates until antd 6 migration - #30

Closed
magicapple123 wants to merge 1 commit into
mainfrom
chore/dependabot-housekeeping
Closed

magicapple123 wants to merge 1 commit into
mainfrom
chore/dependabot-housekeeping

Conversation

@magicapple123

Copy link
Copy Markdown
Owner

内容

dependabot.yml 的 npm 段新增 ignore:react 与 react-dom 的 semver-major 更新,附 TODO(antd-6-migration) 注释。

理由

antd 5 的 peer 依赖锁定 react ^16||^17||^18,dependabot 若开 react 19 主版本 PR 会直接 ERESOLVE 挂死 npm ci——与 #21(只升 vitest 不升 @vitest/coverage-v8)、#17(fpdf2 行为变化)是同一类「只动一半就撞 peer/行为墙」的坑。react-dom 必须与 react 同 major,因此两者一起 ignore。

fpdf2 说明

按任务讨论评估过给 fpdf2 加 ignore,但 #29 已把 fpdf2 升到 2.8.9 且 CI 全绿(行为变化已用最小修复消化),无需 ignore,未来小版本照常跟进。

生效方式

merge 后 dependabot 下次配置读取时生效(无需等周一计划任务,config change 会触发重新配置)。

antd 5 peer-locks react to ^16||^17||^18, so dependabot major bumps to
react 19 fail npm ci with ERESOLVE (same failure mode as PR #21 where
only half of a peer-locked pair was bumped). Ignore majors for react
and react-dom together - react-dom must always follow react's major.
Remove this block once the antd 6 migration lands.
@magicapple123

Copy link
Copy Markdown
Owner Author

Superseded by #28, which is already merged to main with the same ignore block (react + react-dom + @types/react + @types/react-dom >=19, with a TODO comment tied to the antd 6 migration). Good catch on react-dom needing to be ignored together with react — #28 covers it. Closing as duplicate; nothing to merge.

@magicapple123
magicapple123 deleted the chore/dependabot-housekeeping branch October 2, 2026 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant