@cosmicdrift/kumiko-framework 0.215.4 → 0.215.5
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 +3 -3
- package/src/__tests__/store-table.integration.test.ts +1 -1
- package/src/bun-db/__tests__/coerce-row-plain-date.test.ts +0 -2
- package/src/bun-db/__tests__/coerce-row-temporal.test.ts +1 -2
- package/src/db/__tests__/multi-row-insert.integration.test.ts +3 -1
- package/src/db/__tests__/schema-migration.integration.test.ts +0 -1
- package/src/db/__tests__/source-shadow-create.integration.test.ts +3 -1
- package/src/files/__tests__/storage-tracking.integration.test.ts +0 -2
- package/src/lifecycle/signal-handlers.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-framework",
|
|
3
|
-
"version": "0.215.
|
|
3
|
+
"version": "0.215.5",
|
|
4
4
|
"description": "Framework core — engine, pipeline, API, DB, and every other bit that makes Kumiko go.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
"./package.json": "./package.json"
|
|
195
195
|
},
|
|
196
196
|
"dependencies": {
|
|
197
|
-
"@cosmicdrift/kumiko-types": "0.215.
|
|
197
|
+
"@cosmicdrift/kumiko-types": "0.215.5",
|
|
198
198
|
"bullmq": "^5.76.7",
|
|
199
199
|
"bun-types": "^1.3.13",
|
|
200
200
|
"hono": "^4.13.1",
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
"zod": "^4.4.3"
|
|
211
211
|
},
|
|
212
212
|
"devDependencies": {
|
|
213
|
-
"@cosmicdrift/kumiko-dispatcher-live": "0.215.
|
|
213
|
+
"@cosmicdrift/kumiko-dispatcher-live": "0.215.5",
|
|
214
214
|
"bun-types": "^1.3.13",
|
|
215
215
|
"pino-pretty": "^13.1.3"
|
|
216
216
|
},
|
|
@@ -49,7 +49,7 @@ describe("r.storeTable — DB roundtrip via setupTestStack", () => {
|
|
|
49
49
|
|
|
50
50
|
expect(rows).toHaveLength(1);
|
|
51
51
|
expect(rows[0]?.payload).toBe(payload);
|
|
52
|
-
expect(rows[0]?.receivedAt).
|
|
52
|
+
expect(String(rows[0]?.receivedAt)).toMatch(/^\d{4}-\d{2}-\d{2}T/);
|
|
53
53
|
});
|
|
54
54
|
|
|
55
55
|
test("registry exposes the store table with its reason and featureName", () => {
|
|
@@ -28,7 +28,6 @@ describe("coerceRow — date → Temporal.PlainDate", () => {
|
|
|
28
28
|
// (2026-03-15T00:00:00.000Z) regardless of process TZ.
|
|
29
29
|
const row = { published_at: new Date(Date.UTC(2026, 2, 15)) };
|
|
30
30
|
const result = coerceRow(row, dateTableInfo());
|
|
31
|
-
expect(result.published_at).toBeInstanceOf(Temporal.PlainDate);
|
|
32
31
|
expect((result.published_at as unknown as Temporal.PlainDate).toString()).toBe("2026-03-15");
|
|
33
32
|
});
|
|
34
33
|
|
|
@@ -51,7 +50,6 @@ describe("coerceRow — date → Temporal.PlainDate", () => {
|
|
|
51
50
|
test("coerces a plain 'yyyy-mm-dd' driver string", () => {
|
|
52
51
|
const row = { published_at: "2026-12-01" };
|
|
53
52
|
const result = coerceRow(row, dateTableInfo());
|
|
54
|
-
expect(result.published_at).toBeInstanceOf(Temporal.PlainDate);
|
|
55
53
|
expect((result.published_at as unknown as Temporal.PlainDate).toString()).toBe("2026-12-01");
|
|
56
54
|
});
|
|
57
55
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
// coerceRow — proving the coercion no longer depends on the global at all.
|
|
9
9
|
|
|
10
10
|
import { describe, expect, test } from "bun:test";
|
|
11
|
-
import { Temporal } from "temporal-polyfill";
|
|
11
|
+
import type { Temporal } from "temporal-polyfill";
|
|
12
12
|
import { coerceRow, type TableInfo } from "../query";
|
|
13
13
|
|
|
14
14
|
function timestamptzTableInfo(): TableInfo {
|
|
@@ -29,7 +29,6 @@ describe("coerceRow — timestamptz → Temporal.Instant", () => {
|
|
|
29
29
|
try {
|
|
30
30
|
const row = { updated_at: new Date("2026-04-18T10:00:00Z") };
|
|
31
31
|
const result = coerceRow(row, timestamptzTableInfo());
|
|
32
|
-
expect(result.updated_at).toBeInstanceOf(Temporal.Instant);
|
|
33
32
|
expect((result.updated_at as unknown as Temporal.Instant).toString()).toBe(
|
|
34
33
|
"2026-04-18T10:00:00Z",
|
|
35
34
|
);
|
|
@@ -59,7 +59,9 @@ describe("instant() customType is forgiving with ISO strings", () => {
|
|
|
59
59
|
});
|
|
60
60
|
const rows = await selectMany(stack.db, tsTable);
|
|
61
61
|
expect(rows).toHaveLength(1);
|
|
62
|
-
|
|
62
|
+
const insertedAt = rows[0]?.["insertedAt"];
|
|
63
|
+
expect(insertedAt).toBeDefined();
|
|
64
|
+
expect((insertedAt as Temporal.Instant).toString()).toBe(isoString);
|
|
63
65
|
});
|
|
64
66
|
});
|
|
65
67
|
|
|
@@ -314,7 +314,6 @@ describe("date field — real DATE column, no TZ dependence (kumiko-framework#19
|
|
|
314
314
|
const rows = await selectMany(testDb.db, table);
|
|
315
315
|
expect(rows).toHaveLength(1);
|
|
316
316
|
const periodFrom = (rows[0] as { periodFrom: unknown }).periodFrom;
|
|
317
|
-
expect(periodFrom).toBeInstanceOf(Temporal.PlainDate);
|
|
318
317
|
expect((periodFrom as Temporal.PlainDate).toString()).toBe("2026-03-15");
|
|
319
318
|
});
|
|
320
319
|
|
|
@@ -50,6 +50,8 @@ describe("entity with a `source` field — create-path is shadow-proof", () => {
|
|
|
50
50
|
const rows = await selectMany(stack.db, sourceTable);
|
|
51
51
|
expect(rows).toHaveLength(1);
|
|
52
52
|
expect(rows[0]?.["source"]).toBe("import");
|
|
53
|
-
|
|
53
|
+
const insertedAt = rows[0]?.["insertedAt"];
|
|
54
|
+
expect(insertedAt).toBeDefined();
|
|
55
|
+
expect((insertedAt as Temporal.Instant).toString()).toBe("2026-01-15T12:00:00Z");
|
|
54
56
|
});
|
|
55
57
|
});
|
|
@@ -180,7 +180,6 @@ describe("tenant-storage-usage MSP", () => {
|
|
|
180
180
|
const [first] = await selectMany(stack.db, tenantStorageUsageTable, {
|
|
181
181
|
tenantId: admin.tenantId,
|
|
182
182
|
});
|
|
183
|
-
expect(first?.["lastUpdatedAt"]).toBeInstanceOf(Temporal.Instant);
|
|
184
183
|
|
|
185
184
|
// Postgres NOW() resolution is microseconds; a second upload a beat
|
|
186
185
|
// later must produce a strictly later timestamp (or at least not an
|
|
@@ -193,7 +192,6 @@ describe("tenant-storage-usage MSP", () => {
|
|
|
193
192
|
const [second] = await selectMany(stack.db, tenantStorageUsageTable, {
|
|
194
193
|
tenantId: admin.tenantId,
|
|
195
194
|
});
|
|
196
|
-
expect(second?.["lastUpdatedAt"]).toBeInstanceOf(Temporal.Instant);
|
|
197
195
|
if (!first?.["lastUpdatedAt"] || !second?.["lastUpdatedAt"]) throw new Error("missing rows");
|
|
198
196
|
expect(
|
|
199
197
|
Temporal.Instant.compare(second["lastUpdatedAt"], first["lastUpdatedAt"]),
|
|
@@ -47,14 +47,14 @@ export function attachSignalHandlers(
|
|
|
47
47
|
.then(() => exitFn(0))
|
|
48
48
|
.catch(() => exitFn(1));
|
|
49
49
|
};
|
|
50
|
-
process.on(sig, handler);
|
|
50
|
+
(process as NodeJS.EventEmitter).on(sig, handler);
|
|
51
51
|
listeners.set(sig, handler);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
return {
|
|
55
55
|
detach: () => {
|
|
56
56
|
for (const [sig, handler] of listeners) {
|
|
57
|
-
process.off(sig, handler);
|
|
57
|
+
(process as NodeJS.EventEmitter).off(sig, handler);
|
|
58
58
|
}
|
|
59
59
|
listeners.clear();
|
|
60
60
|
},
|