@cosmicdrift/kumiko-dev-server 0.326.1 → 0.327.0
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-dev-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.327.0",
|
|
4
4
|
"description": "Dev-tooling for Kumiko apps: local dev-server bootstrap (runDevApp), scaffolding, codegen. Its compose-stacks/env-schema subpaths are consumed at prod boot too — see @cosmicdrift/kumiko-server-runtime for the prod runner itself.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"kumiko-upgrade": "./bin/kumiko-upgrade.ts"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@cosmicdrift/kumiko-bundled-features": "0.
|
|
64
|
-
"@cosmicdrift/kumiko-framework": "0.
|
|
65
|
-
"@cosmicdrift/kumiko-headless": "0.
|
|
66
|
-
"@cosmicdrift/kumiko-server-runtime": "0.
|
|
63
|
+
"@cosmicdrift/kumiko-bundled-features": "0.327.0",
|
|
64
|
+
"@cosmicdrift/kumiko-framework": "0.327.0",
|
|
65
|
+
"@cosmicdrift/kumiko-headless": "0.327.0",
|
|
66
|
+
"@cosmicdrift/kumiko-server-runtime": "0.327.0",
|
|
67
67
|
"ts-morph": "^28.0.0"
|
|
68
68
|
},
|
|
69
69
|
"publishConfig": {
|
|
@@ -72,8 +72,8 @@ import {
|
|
|
72
72
|
// Bun.serve + real sockets.
|
|
73
73
|
const hasBun = typeof (globalThis as { Bun?: unknown }).Bun !== "undefined";
|
|
74
74
|
|
|
75
|
-
// Bun.serve returns a parametrised Server<WebSocketData>;
|
|
76
|
-
//
|
|
75
|
+
// Bun.serve returns a parametrised Server<WebSocketData>; nothing here reads
|
|
76
|
+
// the socket data, so the narrow `unknown` binding is plenty.
|
|
77
77
|
// `Bun` isn't declared in Node types, so we fall back to `unknown`
|
|
78
78
|
// and only resolve the type when Bun is actually around.
|
|
79
79
|
type BunServer = typeof Bun extends undefined ? unknown : ReturnType<typeof Bun.serve>;
|
|
@@ -1239,7 +1239,10 @@ export async function createKumikoServer(
|
|
|
1239
1239
|
// (idleTimeout: 0). Spec-Test in run-prod-app-spec.test.ts pinst das.
|
|
1240
1240
|
const server = hasBun
|
|
1241
1241
|
? (globalThis as { Bun: { serve: (opts: unknown) => BunServer } }).Bun.serve(
|
|
1242
|
-
buildBunServeOptions(port, handleFetch, resolveDerivedMaxRequestBodySize(stack.registry)
|
|
1242
|
+
buildBunServeOptions(port, handleFetch, resolveDerivedMaxRequestBodySize(stack.registry), {
|
|
1243
|
+
upgradeFetch: async (req, env) =>
|
|
1244
|
+
stripNoRouteMatchHeader(await stack.app.fetch(req, env)),
|
|
1245
|
+
}),
|
|
1243
1246
|
)
|
|
1244
1247
|
: undefined;
|
|
1245
1248
|
|