typespeed 2.6.4 → 2.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +1 -0
  2. package/package.json +2 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,7 @@ typespeed 版本演进记录。本文件 2026-09-06 从 git 历史反推建立
4
4
 
5
5
  ## 2.6.x
6
6
 
7
+ - **2.6.5**:测试——新增健康检查冒烟测试(`/health`、`/ready` 断言)+ 优雅停机冒烟脚本(`npm run test:shutdown`,SIGTERM → 退出码 0);`npm test` 63 passing(2026-09-07)
7
8
  - **2.6.4**:官方部署清单——多阶段 `Dockerfile`(build/run 分离 + 非 root + HEALTHCHECK);`docker-compose.yml`(app + MySQL/Redis/RabbitMQ,depends_on + healthcheck);k8s 清单(Deployment 带 readinessProbe→`/ready`、livenessProbe→`/health` + Service + Ingress);Helm chart(Chart/values/templates)(2026-09-07)
8
9
  - **2.6.3**:框架内建优雅停机——`ExpressServer` 存储 `httpServer` + 新增 `stop()`(Promise 化 graceful close);SIGTERM/SIGINT 优雅停机(close 后 exit 0,30s 兜底强制退出),停机时关闭 Redis;socket 模式一并处理(2026-09-07)
9
10
  - **2.6.2**:框架内建健康检查——新增 `HealthFactory`(abstract `ready()`)+ `HealthDefault`(默认恒就绪);`ExpressServer` 内建 `GET /health`(liveness)与 `GET /ready`(readiness,读 HealthFactory,200/503),路径可经 config 覆盖(2026-09-07)
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "typespeed",
3
- "version": "2.6.4",
3
+ "version": "2.6.5",
4
4
  "description": "A new Framework for TypeScript.",
5
5
  "author": "speedphp",
6
6
  "license": "MIT License",
7
7
  "scripts": {
8
8
  "test": "NODE_OPTIONS=--no-experimental-strip-types mocha --require ts-node/register test/**/*.ts --exit",
9
+ "test:shutdown": "bash test-env/graceful-shutdown-check.sh",
9
10
  "test-with-coverage": "nyc --reporter=lcov npm test",
10
11
  "start": "ts-node --transpile-only app/src/main.ts",
11
12
  "build": "tsc -p .",