test(bun): expect 1009 for oversized WebSocket frames on Bun 1.4+ #135

Merged
chrnx merged 1 commits from fix/bun-ws-oversize-close into develop 2026-10-23 04:53:10 +00:00
Owner

CI picked up Bun 1.4.4 (oven-sh/setup-bun@v2, latest), which now sends a
real 1009 close frame when maxPayloadLength refuses a frame. Bun 1.3
dropped the connection instead, so the peer saw 1006 — the difference D1
documented and these two assertions pinned on purpose so a Bun upgrade would
be noticed. It was: runtimes (bun) fails on develop.

The assertion now follows Bun.version (1006 before 1.4, 1009 from 1.4), so a
further change in either direction still fails. JSDoc, README and the #107
CHANGELOG entry say which Bun versions do what.

Verified with Bun 1.3.14 and 1.4.4 (26/26 each); lint, format, typecheck,
npm test.

Unblocks runtimes (bun) on develop and on every FPRD-001c sprint branch. Independent of #134.

🤖 Generated with Claude Code

CI picked up Bun 1.4.4 (`oven-sh/setup-bun@v2`, latest), which now sends a real `1009` close frame when `maxPayloadLength` refuses a frame. Bun 1.3 dropped the connection instead, so the peer saw `1006` — the difference D1 documented and these two assertions pinned on purpose so a Bun upgrade would be noticed. It was: `runtimes (bun)` fails on develop. The assertion now follows `Bun.version` (1006 before 1.4, 1009 from 1.4), so a further change in either direction still fails. JSDoc, README and the #107 CHANGELOG entry say which Bun versions do what. Verified with Bun 1.3.14 and 1.4.4 (26/26 each); lint, format, typecheck, npm test. Unblocks `runtimes (bun)` on develop and on every FPRD-001c sprint branch. Independent of #134. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
chrnx added 1 commit 2026-10-23 04:50:36 +00:00
test(bun): expect 1009 for oversized WebSocket frames on Bun 1.4+
CI / dco (pull_request) Successful in 5s
CI / runtimes (bun) (pull_request) Successful in 15s
CI / runtimes (deno) (pull_request) Successful in 20s
CI / runtimes (edge) (pull_request) Successful in 14s
CI / build (pull_request) Successful in 27s
69bdc8adec
CI picked up Bun 1.4.4 (`oven-sh/setup-bun@v2`, latest), which now sends a
real `1009` close frame when `maxPayloadLength` refuses a frame. Bun 1.3
dropped the connection instead, so the peer saw `1006` — the difference D1
documented and these two assertions pinned on purpose so a Bun upgrade would
be noticed. It was: `runtimes (bun)` fails on develop.

The assertion now follows `Bun.version` (1006 before 1.4, 1009 from 1.4), so a
further change in either direction still fails. JSDoc, README and the #107
CHANGELOG entry say which Bun versions do what.

Verified with Bun 1.3.14 and 1.4.4 (26/26 each); lint, format, typecheck,
npm test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
chrnx merged commit f4d29d8ee8 into develop 2026-10-23 04:53:10 +00:00
chrnx deleted branch fix/bun-ws-oversize-close 2026-10-23 04:53:11 +00:00
Sign in to join this conversation.