Commit Graph
3 Commits
Author SHA1 Message Date
tiennm99 83103b3b3b build(deps): migrate to @cloudflare/vitest-plugin 1.x
@cloudflare/vitest-pool-workers was renamed to @cloudflare/vitest-plugin
for its v1 release; the old name stopped at 0.22.0 with pinned vulnerable
wrangler and miniflare versions. Vitest stays on 4: the plugin's peer
range is still ^4.1.0.
2026-10-03 13:18:36 +07:00
tiennm99 b72e984b0c fix: suppress vitest-pool-workers debug noise and hanging process
- Pre-declare Node.js compatibility flags in miniflare config to
  prevent [vpw:debug] messages during test runs
- Use --no-file-parallelism to fix dangling handle causing
  "close timed out" warning on exit
2026-04-09 11:48:59 +07:00
tiennm99 8c993df72b fix: harden webhook reliability, fix bugs, add test suite
- Statuspage webhook always returns 200 to prevent subscriber removal
- Fix parseKvKey returning string chatId instead of number
- Queue consumer retries on Telegram 5xx instead of acking (prevents message loss)
- Fix observability top-level enabled flag (false → true)
- Add defensive null checks for webhook payload body
- Cache Bot instance per isolate to avoid middleware rebuild per request
- Add vitest + @cloudflare/vitest-pool-workers with 31 tests
- Document DLQ and KV sharding as declined features
2026-04-09 10:29:30 +07:00