@cosmicdrift/kumiko-server-runtime 0.159.1 → 1.0.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-server-runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Production server-boot runtime for Kumiko apps: connections, schema-drift-gate, seeds, lifecycle, graceful shutdown. Symmetric to kumiko-dev-server's runDevApp, without dev/scaffold/codegen tooling.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@cosmicdrift/kumiko-bundled-features": "0.
|
|
76
|
-
"@cosmicdrift/kumiko-framework": "0.
|
|
75
|
+
"@cosmicdrift/kumiko-bundled-features": "1.0.0",
|
|
76
|
+
"@cosmicdrift/kumiko-framework": "1.0.0",
|
|
77
77
|
"temporal-polyfill": "^0.3.2"
|
|
78
78
|
},
|
|
79
79
|
"publishConfig": {
|
|
@@ -263,26 +263,6 @@ describe("runProdApp", () => {
|
|
|
263
263
|
expect(res.status).toBe(200);
|
|
264
264
|
});
|
|
265
265
|
|
|
266
|
-
test("unrecognized KUMIKO_DRY_RUN_ENV value warns and falls through to a normal boot", async () => {
|
|
267
|
-
const originalWarn = console.warn;
|
|
268
|
-
const warnings: string[] = [];
|
|
269
|
-
console.warn = (...args: unknown[]) => {
|
|
270
|
-
warnings.push(args.map(String).join(" "));
|
|
271
|
-
};
|
|
272
|
-
const original = process.env["KUMIKO_DRY_RUN_ENV"];
|
|
273
|
-
process.env["KUMIKO_DRY_RUN_ENV"] = "not-a-real-mode";
|
|
274
|
-
try {
|
|
275
|
-
const handle = await boot();
|
|
276
|
-
const res = await handle.entrypoint.app.fetch(new Request("http://test/health"));
|
|
277
|
-
expect(res.status).toBe(200);
|
|
278
|
-
} finally {
|
|
279
|
-
console.warn = originalWarn;
|
|
280
|
-
if (original === undefined) delete process.env["KUMIKO_DRY_RUN_ENV"];
|
|
281
|
-
else process.env["KUMIKO_DRY_RUN_ENV"] = original;
|
|
282
|
-
}
|
|
283
|
-
expect(warnings.some((line) => line.includes("unrecognized"))).toBe(true);
|
|
284
|
-
});
|
|
285
|
-
|
|
286
266
|
test("second boot against the same DB is idempotent — no crash, no duplicate tables", async () => {
|
|
287
267
|
await boot();
|
|
288
268
|
// First boot left tables in place. Restart on the same DB —
|