@cosmicdrift/kumiko-server-runtime 0.307.0 → 0.309.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.307.0",
3
+ "version": "0.309.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>",
@@ -80,9 +80,9 @@
80
80
  }
81
81
  },
82
82
  "dependencies": {
83
- "@cosmicdrift/kumiko-bundled-features": "0.307.0",
84
- "@cosmicdrift/kumiko-framework": "0.307.0",
85
- "@cosmicdrift/kumiko-headless": "0.307.0",
83
+ "@cosmicdrift/kumiko-bundled-features": "0.309.0",
84
+ "@cosmicdrift/kumiko-framework": "0.309.0",
85
+ "@cosmicdrift/kumiko-headless": "0.309.0",
86
86
  "temporal-polyfill": "^0.3.2"
87
87
  },
88
88
  "publishConfig": {
@@ -13,7 +13,7 @@ import {
13
13
  type FeatureDefinition,
14
14
  type FeatureRegistrar,
15
15
  } from "@cosmicdrift/kumiko-framework/engine";
16
- import { z } from "zod";
16
+ import * as z from "zod";
17
17
 
18
18
  export function makeProbeFeature(opts: {
19
19
  readonly name: string;
@@ -1,7 +1,7 @@
1
1
  import { describe, expect, test } from "bun:test";
2
2
  import { InMemoryKmsAdapter } from "@cosmicdrift/kumiko-framework/crypto";
3
3
  import { createEntity, createTextField, defineFeature } from "@cosmicdrift/kumiko-framework/engine";
4
- import { z } from "zod";
4
+ import * as z from "zod";
5
5
  import { assertPiiBootInvariants } from "../pii-boot-gate";
6
6
 
7
7
  const piiFeature = defineFeature("gate-pii", (r) => {
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { describe, expect, test } from "bun:test";
4
4
  import { composeEnvSchema, KumikoBootError } from "@cosmicdrift/kumiko-framework/env";
5
- import { z } from "zod";
5
+ import * as z from "zod";
6
6
  import { runProdApp } from "../run-prod-app";
7
7
  import { makeProbeFeature, withClearedBootEnv } from "./boot-probe-fixture";
8
8
 
@@ -6,7 +6,7 @@
6
6
  import { afterEach, describe, expect, test } from "bun:test";
7
7
  import { createEntity, createTextField, defineFeature } from "@cosmicdrift/kumiko-framework/engine";
8
8
  import type { ComposedEnvSchema } from "@cosmicdrift/kumiko-framework/env";
9
- import { z } from "zod";
9
+ import * as z from "zod";
10
10
  import { runProdApp } from "../run-prod-app";
11
11
  import { withClearedBootEnv } from "./boot-probe-fixture";
12
12
 
@@ -54,7 +54,7 @@ import { waitFor } from "@cosmicdrift/kumiko-framework/testing";
54
54
  import { generateId } from "@cosmicdrift/kumiko-framework/utils";
55
55
  import { Queue } from "bullmq";
56
56
  import postgres from "postgres";
57
- import { z } from "zod";
57
+ import * as z from "zod";
58
58
  import { type ProdAppHandle, runProdApp } from "../run-prod-app";
59
59
 
60
60
  // tmp-Verzeichnisse pro Test, in afterEach geräumt. Tests die staticDir
@@ -24,7 +24,7 @@ import {
24
24
  } from "@cosmicdrift/kumiko-framework/pipeline";
25
25
  import { unsafeEnsureEntityTable } from "@cosmicdrift/kumiko-framework/stack";
26
26
  import postgres from "postgres";
27
- import { z } from "zod";
27
+ import * as z from "zod";
28
28
  import { makeDispatchSystemWrite } from "../extra-routes-deps";
29
29
  import { runWorkerApp, type WorkerAppHandle } from "../run-worker-app";
30
30
 
@@ -34,7 +34,7 @@ import {
34
34
  unsafePushTables,
35
35
  } from "@cosmicdrift/kumiko-framework/stack";
36
36
  import { waitFor } from "@cosmicdrift/kumiko-framework/testing";
37
- import { z } from "zod";
37
+ import * as z from "zod";
38
38
  import { startDevJobRunners } from "../job-run-logger";
39
39
 
40
40
  let testDb: TestDb;
@@ -53,7 +53,7 @@ import {
53
53
  } from "@cosmicdrift/kumiko-bundled-features/auth-email-password";
54
54
  import {
55
55
  type SeedAdminOptions,
56
- seedAdmin,
56
+ seedAdminGuarded,
57
57
  } from "@cosmicdrift/kumiko-bundled-features/auth-email-password/seeding";
58
58
  import {
59
59
  EXT_SESSION_STORE,
@@ -1254,7 +1254,7 @@ export async function runProdApp(options: RunProdAppOptions): Promise<ProdAppHan
1254
1254
  // preconditions. Config-seeds rely on a deterministic
1255
1255
  // aggregate-id so re-boot becomes a version_conflict skip.
1256
1256
  if (effectiveAuth) {
1257
- await seedAdmin(db, effectiveAuth.admin);
1257
+ await seedAdminGuarded(db, effectiveAuth.admin);
1258
1258
  }
1259
1259
  await applyBootSeeds({
1260
1260
  registry,