Skip to content

chore(deps): upgrade phase 2 — tooling majors, small runtime majors - #17

Merged
Jerry-CodeHub merged 2 commits into
masterfrom
chore/deps-phase2
Sep 23, 2026
Merged

Jerry-CodeHub merged 2 commits into
masterfrom
chore/deps-phase2

Conversation

@Jerry-CodeHub

Copy link
Copy Markdown
Owner

叠加 PR:依赖 #16(请先合并它;合并后本 PR 的 base 会自动改指 master)

背景

依赖升级 阶段 2:开发工具主版本 + 小型运行时主版本。以阶段 1(chore/deps-phase1)为 base,diff 只含本阶段的改动。

改动

开发工具

  • husky 8 → 9:prepare 改为 husky;hook 文件去掉 v8 的两行引导(v9 会警告,v10 会直接失败);core.hooksPath 改为 .husky/_
  • lint-staged 13 → 17:要求 Node ≥22.22.1、git ≥2.32。配置文件改名为 .lintstagedrc.json,因为 17 起无扩展名的 rc 文件会按 YAML 解析,且 yaml 变成了可选依赖
  • cross-env 7 → 10:只提供 ESM;start 脚本本来就没带环境变量,直接改为 max dev
  • prettier-plugin-organize-imports 4 / prettier-plugin-packagejson 3:格式化结果没有变化,已确认两个插件都在生效

运行时

  • @dnd-kit/sortable 7 → 10:主版本号只是跟随 core ^6.3 的连带升级
  • signature_pad 4 → 5、ol 9 → 10:两者的破坏性变更都不涉及本项目用到的 API
  • 删除 @dnd-kit/modifiers:声明了但从未被引用

验证

  • pnpm check、pnpm build 与体积门禁通过(体积与阶段 1 相同)
  • 用 lint-staged 17 + husky 9 实际完成了本分支的提交,hook 链路正常
  • 无头浏览器验证:
    • 签名:空白时保存会提示,画一笔后保存触发 PNG 下载,撤销后再保存又会提示
    • 拖拽:顺序 1,2,3 → 2,3,1
    • OpenLayers:点击地图弹出经纬度
    • 24 个路由没有新增控制台报错(中途出现过一次 api.cesium.com 的网络抖动,重跑后消失)

需要注意

lint-staged 17 在 Node <22.22.1 下无法运行,本地默认 Node 需要是 24(阶段 1 已钉到 24.21.0)。

- husky 9: prepare runs `husky`; hooks drop the v8 bootstrap lines
  (v9 warns on them, v10 fails); core.hooksPath moves to .husky/_
- lint-staged 17 (Node >=22.22.1, git >=2.32): .lintstagedrc renamed to
  .lintstagedrc.json - 17 parses an extensionless rc as YAML and made
  the yaml package optional
- cross-env 10 (ESM-only); `start` had no env vars, so it is plain
  `max dev` now
- prettier-plugin-organize-imports 4 / prettier-plugin-packagejson 3:
  no formatting drift, both plugins verified active
- @dnd-kit/sortable 10 (its majors only track core ^6.3), signature_pad
  5, ol 10; @dnd-kit/modifiers removed - declared but never imported

verified headless: signature empty-save warns, a stroke downloads a
PNG, undo empties it again; dnd reorders 1,2,3 -> 2,3,1; OpenLayers
click reports lon/lat; 24 routes show no new console errors
@coderabbitai

coderabbitai Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 44 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 5e57d3de-b76c-4636-afbe-e3b155b3c4e0

📥 Commits

Reviewing files that changed from the base of the PR and between 93d6c01 and 9c0fc95.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (5)
  • .husky/commit-msg
  • .husky/pre-commit
  • .lintstagedrc.json
  • CHANGELOG.md
  • package.json

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying umi-react-admin with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9c0fc95
Status: ✅  Deploy successful!
Preview URL: https://d60984b0.umi-react-admin.pages.dev
Branch Preview URL: https://chore-deps-phase2.umi-react-admin.pages.dev

View logs

Base automatically changed from chore/deps-phase1 to master September 23, 2026 07:24
@Jerry-CodeHub
Jerry-CodeHub merged commit 1d4b761 into master Sep 23, 2026
5 checks passed
@Jerry-CodeHub
Jerry-CodeHub deleted the chore/deps-phase2 branch September 23, 2026 07:25
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