@cosmicdrift/kumiko-framework 0.111.0 → 0.112.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-framework",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.112.0",
|
|
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>",
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
"zod": "^4.4.3"
|
|
182
182
|
},
|
|
183
183
|
"devDependencies": {
|
|
184
|
-
"@cosmicdrift/kumiko-dispatcher-live": "0.
|
|
184
|
+
"@cosmicdrift/kumiko-dispatcher-live": "0.112.0",
|
|
185
185
|
"bun-types": "^1.3.13",
|
|
186
186
|
"pino-pretty": "^13.1.3"
|
|
187
187
|
},
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// Siehe docs/plans/datenschutz/user-data-rights.md.
|
|
15
15
|
|
|
16
16
|
import type { DbRunner } from "../../db/connection";
|
|
17
|
-
import type { TenantId } from "../types";
|
|
17
|
+
import type { Registry, TenantId } from "../types";
|
|
18
18
|
|
|
19
19
|
// SessionUser.id ist plattformweit `string` (kein Brand-Type). Wenn
|
|
20
20
|
// jemals ein UserId-Brand eingefuehrt wird, ersetzt man hier den
|
|
@@ -70,6 +70,17 @@ export interface UserDataStorageProvider {
|
|
|
70
70
|
|
|
71
71
|
export interface UserDataHookCtx {
|
|
72
72
|
readonly db: DbRunner;
|
|
73
|
+
/**
|
|
74
|
+
* The app registry. A forget hook that must erase CHILD read-model rows past
|
|
75
|
+
* the entity's own row — m:n join projections, per-parent detail projections —
|
|
76
|
+
* uses it to run those custom projections for the executor's
|
|
77
|
+
* `<entity>.forgotten` event: `runProjectionsForEvent(result.data.event,
|
|
78
|
+
* ctx.registry, ctx.db)`. `executor.forget` purges only its OWN projection,
|
|
79
|
+
* and the dispatcher's post-command projection pass does not fire in the forget
|
|
80
|
+
* pipeline (a job, not a dispatched command), so the hook must trigger the
|
|
81
|
+
* cascade itself. Live-erase + rebuild `<parent>.forgotten`-apply converge.
|
|
82
|
+
*/
|
|
83
|
+
readonly registry: Registry;
|
|
73
84
|
readonly tenantId: TenantId;
|
|
74
85
|
readonly userId: UserId;
|
|
75
86
|
/**
|