## 本次版本更新内容 ### fix: SFTP 编辑错误横幅统一使用边界校验后的 message(1d1022b) - `handleSFTPError` 的 edit 分支在无待决请求时此前调用 `showError(msg.message)`,绕过了上方已生成的边界校验变量;改用校验后的 `message`,与 `rejectEditRead` 保持一致 - 保留 hadPending 以 waiter 为准的判定并补充注释:超时回调置空 waiter 后 finally 在同一微任务级联中复位 `editReadActive`,迟到错误帧不可能于读取在途时被处理,横幅兜底不构成双重报错 - 经核实:Copilot 提出的"基于 editReadActive 判断"建议相应对生产不可达窗口,且不能改变其描述的现象,未采纳 ### release: 版本号与 CHANGELOG(d99fddd) - `package.json` / `frontend/package.json` → 1.14.4 - CHANGELOG 追加 v1.14.4 条目(Fixed 段,Keep a Changelog 规范) ## 提交列表 - `1d1022b` fix: SFTP 编辑错误横幅统一使用边界校验后的 message - `d99fddd` release: 发布 v1.14.4 编辑错误横幅边界校验修复版本 ## 验证结果 - ✅ `pnpm run typecheck`(worker + frontend + tests,含 e2e) - ✅ `pnpm test`:59 个测试文件 / 704 用例全部通过 - ✅ Playwright:sftp-dblclick + sftp-editor 相关 e2e 12/12 通过 - ✅ `pnpm run build:frontend` 可复现构建成功(html.ts 已随修复提交再生成) ## 关联 Issue 无(本次修复来自代码审查反馈,无需关闭 Issue)。 --------- Co-authored-by: TanXin <tanxin@example.com>
46 lines
1.5 KiB
JSON
46 lines
1.5 KiB
JSON
{
|
|
"name": "cloudssh",
|
|
"version": "1.14.4",
|
|
"packageManager": "pnpm@11.8.0",
|
|
"description": "纯 Cloudflare 架构 Web SSH 工具",
|
|
"main": "src/worker/index.ts",
|
|
"scripts": {
|
|
"dev": "node scripts/build-html.js && wrangler dev",
|
|
"deploy": "node scripts/build-html.js && wrangler deploy",
|
|
"deploy:test": "node scripts/build-html.js && wrangler deploy --env test",
|
|
"sync:theme-editor": "node scripts/sync-theme-editor.js",
|
|
"build:frontend": "node scripts/build-html.js",
|
|
"typecheck": "pnpm run typecheck:worker && pnpm run typecheck:frontend",
|
|
"typecheck:worker": "tsc --noEmit && tsc -p tests/tsconfig.worker.json --noEmit && tsc -p tests/tsconfig.frontend.json --noEmit",
|
|
"typecheck:frontend": "pnpm --dir frontend exec tsc --noEmit",
|
|
"test": "vitest run",
|
|
"test:coverage": "vitest run --coverage",
|
|
"test:watch": "vitest watch",
|
|
"test:e2e": "playwright test",
|
|
"verify": "pnpm run typecheck && pnpm test && pnpm run build:frontend && pnpm run test:e2e"
|
|
},
|
|
"knip": {
|
|
"ignoreDependencies": [
|
|
"cloudflare",
|
|
"cloudflare:sockets"
|
|
]
|
|
},
|
|
"keywords": [
|
|
"ssh",
|
|
"cloudflare",
|
|
"web-terminal"
|
|
],
|
|
"author": "",
|
|
"license": "Apache-2.0",
|
|
"devDependencies": {
|
|
"@axe-core/playwright": "4.12.1",
|
|
"@cloudflare/workers-types": "^4.20260630.1",
|
|
"@playwright/test": "1.62.0",
|
|
"@types/node": "^26.2.0",
|
|
"@vitest/coverage-v8": "4.1.10",
|
|
"typescript": "^5.7.0",
|
|
"vitest": "4.1.10",
|
|
"wrangler": "^4.125.0"
|
|
}
|
|
}
|