Skip to content

v0.5.6

Choose a tag to compare

@github-actions github-actions released this 01 Sep 05:50
· 4 commits to main since this release

v0.5.6

修复插件市场一键安装在 pnpm 12 预发布环境下必然 404 的问题。市场目录给出的安装标识是 npm:包名 形态(如 npm:dsh-context),此前原样传给 dsh plugin add 裸转发给 pnpm;pnpm 12(next 线)新增的 package-manager add 特性把裸 npm: 前缀的 spec 走"记录包管理器"分支,将 npm:dsh-context 整体当包名查询 registry(registry.npmjs.org/npm%3Adsh-context),报 ERR_PNPM_PACKAGE_MANAGER_ADD_RESOLVE_LATEST 404。版本矩阵实测:pnpm 9.15–11.25 全部正常,12.2.1 复现。

Changes

  • 安装 specifier 投影层规范化:目录解析时剥掉 npm registry spec 开头的 npm: 前缀(npm:dsh-contextdsh-contextnpm:@scope/pkg@1.0@scope/pkg@1.0),与目录自身展示的 command 文本一致;pnpm 9–12 全版本等价
  • 非 npm 协议不受影响github:owner/repo#reffile: tarball 原样保留;只剥开头前缀,alias 形态(name@npm:other)不动
  • 新增投影规范化测试:无版本、带版本、scope 包、github:、裸名五种形态

验证

  • cargo test:61 项全部通过(含新增规范化测试)
  • cargo clippy --all-targets:无告警
  • vitest:25 项全部通过
  • pnpm run check:release -- --tag v0.5.6:版本三处一致、release notes 存在、bundle resources 路径有效

升级说明

  • 已装插件不受影响:profile 依赖里旧时代留下的 npm: 形态值按原样展示与工作;仅新安装路径使用规范化后的裸名
  • 遇到本问题的环境无需降级 pnpm:升级 Launcher 到本版即可;临时规避也可 npm i -g pnpm@latest 降到 11 稳定线