keryx 0.29.1 → 0.29.4

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.
@@ -2,6 +2,7 @@ import { Redis as RedisClient } from "ioredis";
2
2
  import { api, logger } from "../api";
3
3
  import { Initializer } from "../classes/Initializer";
4
4
  import { config } from "../config";
5
+
5
6
  import {
6
7
  formatConnectionStringForLogging,
7
8
  throwConnectionError,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keryx",
3
- "version": "0.29.1",
3
+ "version": "0.29.4",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/testing/index.ts CHANGED
@@ -16,16 +16,20 @@ export {
16
16
  } from "./websocket";
17
17
 
18
18
  /**
19
- * Generous lifecycle hook timeout (15s) for `beforeAll` / `afterAll`.
19
+ * Generous lifecycle hook timeout (60s) for `beforeAll` / `afterAll`.
20
20
  *
21
21
  * `api.start()` and `api.stop()` connect to Redis, Postgres, run migrations,
22
- * etc. slower than a unit test, especially in CI. Pass this as the second
23
- * argument to `beforeAll` / `afterAll` so hooks don't time out.
22
+ * load plugins, bring up workers, and start servers. That can comfortably
23
+ * exceed 15s on a fresh CI runner with Docker service containers, especially
24
+ * with plugins loaded. If it times out Bun aborts the hook and `api.stop()`
25
+ * runs against partially-initialized state, which cascades into confusing
26
+ * "api.mcp is undefined" style errors during cleanup — always prefer a higher
27
+ * hook timeout over adding null guards to every initializer's `stop()`.
24
28
  *
25
29
  * Note: `bun:test`'s `setDefaultTimeout` and `bunfig.toml [test].timeout` only
26
30
  * apply to `test()` blocks, not lifecycle hooks.
27
31
  */
28
- export const HOOK_TIMEOUT = 15_000;
32
+ export const HOOK_TIMEOUT = 60_000;
29
33
 
30
34
  /**
31
35
  * Return the actual URL the web server bound to (with resolved port).
package/tsconfig.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "target": "ESNext",
5
5
  "module": "ESNext",
6
6
  "moduleResolution": "bundler",
7
- "types": ["bun-types"],
7
+ "types": ["bun"],
8
8
  "strict": true,
9
9
  "skipLibCheck": true,
10
10
  "noEmit": true,