Skip to content

fix(one): engines 统一 ≥22.15.0,清除 >=20 虚假承诺(#45 尾巴) - #92

Merged
chumingjun merged 1 commit into
mainfrom
fix/engines-22-15
Aug 29, 2026
Merged

fix(one): engines 统一 ≥22.15.0,清除 >=20 虚假承诺(#45 尾巴)#92
chumingjun merged 1 commit into
mainfrom
fix/engines-22-15

Conversation

@chumingjun

Copy link
Copy Markdown
Owner

背景

#45 只统一了文档口径(≥22.15),engines 字段没动:7 个插件 package.json 仍写 node >=20。

为什么是虚假承诺

套件所有包都依赖 orchestrator(用 node:sqlite,22.15 起稳定);dsh 本体依赖 node:zlib 的 zstd API(同样 22.15 起)。装在 Node 20 必然运行失败——>=20 只会误导用户。

另发现 verify-plugin-packages.mjs:36 的契约校验竟然断言了这个不一致(orchestrator 特例 >=22.15.0、其余 >=20),一并改为统一断言。

方案

  • 7 个 package.json:node >=20 → >=22.15.0
  • verify 脚本:去掉 orchestrator 特例,统一断言 >=22.15.0

验证

  • verify-plugin-packages.mjs ok
  • 全量单测绿(npm test)
  • build-web.sh 双构建 + assemble-one + publish-npm --dry-run 通过
  • 文档(README/dsh-plugins/docs)无残留 >=20 口径

7 个插件 package.json 仍写 node >=20,但套件所有包都依赖 orchestrator
(node:sqlite)且 dsh 本体需要 zlib zstd(22.15 起)——装在 Node 20 必然
不可用,>=20 是假门槛。verify-plugin-packages.mjs 此前甚至断言了这个
不一致(orchestrator 特例 >=22.15.0、其余 >=20),一并改为统一断言。

文档口径在 #45 已统一为 ≥22.15,本提交把 engines 字段落到同一口径。

验证:verify-plugin-packages ok;全量单测绿;双构建 + assemble +
publish-npm --dry-run 通过。
@chumingjun
chumingjun merged commit 1c2360e into main Aug 29, 2026
1 check passed
@chumingjun
chumingjun deleted the fix/engines-22-15 branch August 29, 2026 07:19
@chumingjun chumingjun mentioned this pull request Aug 29, 2026
3 tasks
chumingjun added a commit that referenced this pull request Aug 29, 2026
10 个 package.json 0.7.0 → 0.7.1(含 dsh-ccpg-one 依赖表 7 子包 pin 同步);
system-upgrade 测试两处版本引用同步(dist-tag mock + up 断言)。

内容:engines 统一 ≥22.15.0(#92#45 尾巴)。

验证:全量单测绿;build-web.sh 双构建通过;
assemble-one + publish-npm --dry-run 通过(dsh-harness-one@0.7.1)。
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