feat(bun): serveBun adapter — HTTP+SSE+WS on Bun via /bun subpath

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-07-09 21:44:46 -05:00
1 parent 8d3a4ca420
commit fd6446f514
3 files changed
+143 -1

No files matched your search

+11
View File
@@ -46,6 +46,16 @@
"types": "./dist/deno.d.ts",
"default": "./dist/deno.js"
}
},
"./bun": {
"import": {
"types": "./dist/bun.d.mts",
"default": "./dist/bun.mjs"
},
"require": {
"types": "./dist/bun.d.ts",
"default": "./dist/bun.js"
}
}
},
"files": [
@@ -60,6 +70,7 @@
"test": "vitest run",
"test:dev": "vitest",
"test:deno": "deno test --allow-net --allow-read --no-check test/deno/",
"test:bun": "bun test test/bun/",
"typecheck": "tsc --noEmit -p tsconfig.json",
"typecheck:bench": "tsc --noEmit -p bench/tsconfig.json",
"lint": "eslint src",