@okay-e9g/hono-config 0.0.14 → 0.0.16

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.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Shared Hono config for Okay Engineering",
4
4
  "devDependencies": {
5
5
  "@hono/zod-openapi": "1.5.1",
6
- "hono": "4.12.30",
6
+ "hono": "4.12.31",
7
7
  "pino": "10.3.1",
8
8
  "pino-pretty": "13.1.3",
9
9
  "superjson": "2.2.6",
@@ -22,7 +22,7 @@
22
22
  "name": "@okay-e9g/hono-config",
23
23
  "peerDependencies": {
24
24
  "@hono/zod-openapi": "^1.5.1",
25
- "hono": "^4.12.30",
25
+ "hono": "^4.12.31",
26
26
  "pino": "^10.3.1",
27
27
  "pino-pretty": "^13.1.3",
28
28
  "superjson": "^2.2.6",
@@ -48,5 +48,5 @@
48
48
  "prepublishOnly": "bun run typecheck && bun test",
49
49
  "typecheck": "tsc --noEmit"
50
50
  },
51
- "version": "0.0.14"
51
+ "version": "0.0.16"
52
52
  }
@@ -135,8 +135,8 @@ const runCheck = async <T extends Env>(
135
135
  *
136
136
  * Checks run concurrently. A failure in a critical check produces an
137
137
  * `unhealthy` response with HTTP 503, while failures limited to non-critical
138
- * checks produce a `degraded` response with HTTP 200. With no checks, the
139
- * route produces a healthy liveness response.
138
+ * checks produce a `degraded` response with HTTP 207. Healthy responses use
139
+ * HTTP 200. With no checks, the route produces a healthy liveness response.
140
140
  *
141
141
  * Thrown check messages are included in the response. Protect detailed health
142
142
  * routes with appropriate authentication or network restrictions when those
@@ -222,7 +222,7 @@ export const createHealthRoute = <T extends Env = Env>({
222
222
  release: typeof release === 'function' ? release(c) : release,
223
223
  status,
224
224
  } satisfies HealthResponse,
225
- status === 'unhealthy' ? 503 : 200,
225
+ status === 'healthy' ? 200 : status === 'degraded' ? 207 : 503,
226
226
  );
227
227
  };
228
228
  };