Skip to content

deps: bump jsdom from 28.1.0 to 29.1.1 in /frontend - #51

Merged
magicapple123 merged 1 commit into
mainfrom
deps/jsdom-29
Oct 2, 2026
Merged

magicapple123 merged 1 commit into
mainfrom
deps/jsdom-29

Conversation

@magicapple123

Copy link
Copy Markdown
Owner

Supersedes #45 ( Dependabot 的 jsdom 30.1.1 升级因 CI 不兼容被搁置,本 PR 改为升级到 29.x 系列)。

变更

  • jsdom: 28.1.0 → 29.1.1(package.json + package-lock.json,仅此一项直接依赖)

为什么不是 30.1.1

  • npm view jsdom@30.1.1 engines → ^22.22.2 || ^24.15.0 || >=26.0.0:明确不支持 Node 20
  • 本仓库 CI 的 Frontend 作业钉死 node-version: "20"(.github/workflows/ci.yml),且本次无 workflow scope 改动权限
  • deps: bump jsdom from 28.1.0 to 30.1.1 in /frontend #45 在 CI 上的失败形态也印证了这一点:vitest forks worker 全部启动失败(123 个 unhandled errors),TypeError: webidl.util.markAsUncloneable is not a function —— jsdom 30 内部依赖了较新 Node 才有的 node:util API

为什么 29.x 可用

  • npm view jsdom@29.1.1 engines → ^20.19.0 || ^22.13.0 || >=24.0.0:兼容 CI 的 Node 20(实际拉取为最新 20.19.x)

本地验证(Node 22.22.2,全新 npm install)

  • npm run test:123 files / 801 tests 全绿
  • npm run lint:0 errors(11 条 warning 为存量,与本次无关)
  • npm run typecheck:通过
  • npm run build(--outDir 仓库外):通过

后续如需上 jsdom 30+,需先把 CI Frontend 作业升到 Node 22(需要 workflow 改动授权)。

@magicapple123
magicapple123 merged commit 939ce50 into main Oct 2, 2026
10 checks passed
@magicapple123
magicapple123 deleted the deps/jsdom-29 branch October 2, 2026 06:03
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