Skip to content

v0.7.1

Choose a tag to compare

@lbjxr lbjxr released this 20 Sep 16:38
· 277 commits to main since this release

v0.7.1 — 2026-09-21

补丁版本:修复 v0.7.0 的 CI 冒烟脚本缺陷(生产行为无变化)。

修复:smoke call() headers 透传(refs #24)

  • 根因:scripts/smoke-test.mjs 的 call() 只解构 { method, token, body },/api/recover 段传入的 headers: { 'X-Setup-Token': ... } 被静默丢弃,有效令牌用例实际未带令牌头而全部返回 401。CI 自 recover 功能提交起红线,与分支合并无关。
  • 修复:call() 增加 headers 透传(accept → 附加头 → content-type → authorization)。
  • 勘误:v0.7.0 变更记录「L1 smoke 83/83(恢复成功…)」表述不准确——该场景修复前实际 77/83;修复后 npm run smoke 83/83 全过,产品侧 /api/recover 功能不受影响(手工实测正常)。

验证:CI(type-check / test / build / smoke)main 与 develop 全绿;本地 npm run smoke 83/83、type-check 316/0。完整记录见仓库 CHANGELOG.md v0.7.1 段。