Skip to content

dsh: 适配 0.2.2-alpha.3(cordis Events symbol 索引),声明 manifestVersion / engines.dsh - #5

Merged
KyoMio merged 1 commit into
mainfrom
chore/dsh-0.2.2-alpha.3
Nov 3, 2026
Merged

KyoMio merged 1 commit into
mainfrom
chore/dsh-0.2.2-alpha.3

Conversation

@kyomarshal

Copy link
Copy Markdown
Collaborator

背景

DSH 0.2.2-alpha.3 依赖 cordis 4.0.6-alpha.2,其 Events 新增 [key: symbol]: (...args) => any 索引签名,keyof Events 含 symbol 后 Context 不再可赋值给 ReloadCtxFace,dsh-plugin tsc 报 TS2345(src/index.ts:79)。

改动

  • dsh-plugin/src/reload.ts:ReloadCtxFace.on(event: string | symbol, …);lib 重建(仅 reload.d.ts 与 map 变化)
  • 根 package.json:dsh.manifestVersion: 1,engines.dsh: ">=0.2.1-alpha.2 <0.3.0-0"(含 latest 0.2.1-rc.5 与 0.2.2-alpha.3)。dsh-plugin/package.json 不动(守卫测试禁止该处有 dsh 字段)

验证(隔离沙箱,无网络,Node 24.21.0)

  • 0.2.1-rc.5:dsh-plugin verify/build ✓,112/112;根 test:ci 817(815 pass / 0 fail / 2 skipped),sync-doc ✓
  • 0.2.2-alpha.3:修复前 TS2345;修复后 verify/build ✓,112/112,根 815 / 0 / 2
  • evaluatePluginCompatibility 在 rc.5 / alpha.2 / alpha.3 下均 ok

…nes.dsh

- ReloadCtxFace.on 事件参数改 string | symbol:cordis Events 新增 symbol 索引签名,
  原 string 签名在 alpha.3 下 tsc 报 TS2345(src/index.ts:79)
- package.json: dsh.manifestVersion=1,engines.dsh='>=0.2.1-alpha.2 <0.3.0-0';lib 重建

@KyoMio KyoMio left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

核对过:cordis 4.0.6-alpha.2 的 Events 确有 [key: symbol] 索引(实抽 typings 验证);semver 区间含 rc.5 / alpha.3、排 0.3.x 正确;本地 Node 22 全量 test:ci 817/0 过,CI 上 Node 22 挂的 D13(executor.recreated)本地复跑通过,判定为 flaky,与本 PR 改动无关。

@KyoMio
KyoMio merged commit 9e95d78 into main Nov 3, 2026
1 of 2 checks passed
@KyoMio
KyoMio deleted the chore/dsh-0.2.2-alpha.3 branch November 3, 2026 10: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.

2 participants