@cosmicdrift/kumiko-server-runtime 0.367.0 → 0.368.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/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @cosmicdrift/kumiko-server-runtime
|
|
2
2
|
|
|
3
|
-
Production server boot for Kumiko apps: connections, schema drift gate, seeds, lifecycle and graceful shutdown. The prod counterpart to `runDevApp` in `@cosmicdrift/kumiko-dev-server`, without dev
|
|
3
|
+
Production server boot for Kumiko apps: connections, schema drift gate, seeds, lifecycle and graceful shutdown. The prod counterpart to `runDevApp` in `@cosmicdrift/kumiko-dev-server`, without dev or scaffold tooling.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -105,8 +105,14 @@ export async function bootWorkerProcess(options, envSource, profile) {
|
|
|
105
105
|
throw new Error(`[${processName}] BOOT ABORTED — KMS health check failed (latency ${kmsHealth.latencyMs}ms)`);
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
const { db, close: closeDb } = createDbConnection(
|
|
109
|
-
|
|
108
|
+
const { db, close: closeDb } = createDbConnection({
|
|
109
|
+
url: databaseUrl,
|
|
110
|
+
...dbConnectionOptionsFromEnv(envSource),
|
|
111
|
+
});
|
|
112
|
+
const { db: outsideTransactionDb, close: closeOutsideTransactionDb } = createDbConnection({
|
|
113
|
+
url: databaseUrl,
|
|
114
|
+
...outsideTransactionPoolOptionsFromEnv(envSource),
|
|
115
|
+
});
|
|
110
116
|
const redis = new Redis(redisUrl, { maxRetriesPerRequest: null });
|
|
111
117
|
const cacheSync = createRedisCacheSyncBus({
|
|
112
118
|
redisUrl,
|
|
@@ -66,7 +66,7 @@ function buildDeliveryNotifyFactory(opts) {
|
|
|
66
66
|
const systemUser = createSystemUser(tenantId);
|
|
67
67
|
return configAccessorFactory({
|
|
68
68
|
user: { id: systemUser.id, tenantId },
|
|
69
|
-
db: createTenantDb(opts.db, tenantId),
|
|
69
|
+
db: createTenantDb({ db: opts.db, tenantId }),
|
|
70
70
|
...(opts.secrets && { secrets: opts.secrets }),
|
|
71
71
|
});
|
|
72
72
|
},
|
package/dist/run-prod-app.js
CHANGED
|
@@ -370,8 +370,14 @@ export async function runProdApp(options) {
|
|
|
370
370
|
throw new Error(`[runProdApp] BOOT ABORTED — KMS health check failed (latency ${kmsHealth.latencyMs}ms)`);
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
const { db, close: closeDb } = createDbConnection(
|
|
374
|
-
|
|
373
|
+
const { db, close: closeDb } = createDbConnection({
|
|
374
|
+
url: databaseUrl,
|
|
375
|
+
...dbConnectionOptionsFromEnv(envSource),
|
|
376
|
+
});
|
|
377
|
+
const { db: outsideTransactionDb, close: closeOutsideTransactionDb } = createDbConnection({
|
|
378
|
+
url: databaseUrl,
|
|
379
|
+
...outsideTransactionPoolOptionsFromEnv(envSource),
|
|
380
|
+
});
|
|
375
381
|
const redis = new Redis(redisUrl, { maxRetriesPerRequest: null });
|
|
376
382
|
await waitForDatabase(db, { processName: "runProdApp" });
|
|
377
383
|
// Sprint-8a Tier-Composition auto-wire: scan features for a
|
package/dist/seed-dispatcher.js
CHANGED
|
@@ -6,7 +6,7 @@ export function makeSeedCreateFileRef(deps) {
|
|
|
6
6
|
const { db, registry, context } = deps;
|
|
7
7
|
const fileResolver = context._fileProviderResolver;
|
|
8
8
|
return (tenantId, input) => createFileRefFromBytes({
|
|
9
|
-
db: createTenantDb(db, tenantId),
|
|
9
|
+
db: createTenantDb({ db, tenantId }),
|
|
10
10
|
files: fileResolver
|
|
11
11
|
? createFileContext(() => fileResolver(tenantId), tenantId)
|
|
12
12
|
: context.files,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-server-runtime",
|
|
3
|
-
"version": "0.
|
|
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
|
|
3
|
+
"version": "0.368.0",
|
|
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 tooling.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
7
7
|
"repository": {
|
|
@@ -84,16 +84,19 @@
|
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@cosmicdrift/kumiko-bundled-features": "0.
|
|
88
|
-
"@cosmicdrift/kumiko-framework": "0.
|
|
89
|
-
"@cosmicdrift/kumiko-headless": "0.
|
|
90
|
-
"@cosmicdrift/kumiko-renderer-mail-html": "0.
|
|
91
|
-
"@cosmicdrift/kumiko-renderer-web": "0.
|
|
92
|
-
"@cosmicdrift/kumiko-types": "0.
|
|
87
|
+
"@cosmicdrift/kumiko-bundled-features": "0.368.0",
|
|
88
|
+
"@cosmicdrift/kumiko-framework": "0.368.0",
|
|
89
|
+
"@cosmicdrift/kumiko-headless": "0.368.0",
|
|
90
|
+
"@cosmicdrift/kumiko-renderer-mail-html": "0.368.0",
|
|
91
|
+
"@cosmicdrift/kumiko-renderer-web": "0.368.0",
|
|
92
|
+
"@cosmicdrift/kumiko-types": "0.368.0",
|
|
93
93
|
"bun-types": "^1.3.13",
|
|
94
94
|
"ioredis": "^5.10.1",
|
|
95
95
|
"temporal-polyfill": "^0.3.2"
|
|
96
96
|
},
|
|
97
|
+
"devDependencies": {
|
|
98
|
+
"@cosmicdrift/kumiko-testing": "0.368.0"
|
|
99
|
+
},
|
|
97
100
|
"publishConfig": {
|
|
98
101
|
"registry": "https://registry.npmjs.org",
|
|
99
102
|
"access": "public",
|