@cosmicdrift/kumiko-framework 0.216.0 → 0.217.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 +3 -3
- package/src/api/auth-routes.ts +5 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-framework",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.217.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>",
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
"./package.json": "./package.json"
|
|
195
195
|
},
|
|
196
196
|
"dependencies": {
|
|
197
|
-
"@cosmicdrift/kumiko-types": "0.
|
|
197
|
+
"@cosmicdrift/kumiko-types": "0.217.0",
|
|
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.
|
|
213
|
+
"@cosmicdrift/kumiko-dispatcher-live": "0.217.0",
|
|
214
214
|
"bun-types": "^1.3.13",
|
|
215
215
|
"pino-pretty": "^13.1.3"
|
|
216
216
|
},
|
package/src/api/auth-routes.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { createSystemUser } from "../engine/system-user";
|
|
|
9
9
|
import { type SessionUser, SYSTEM_TENANT_ID, type TenantId } from "../engine/types";
|
|
10
10
|
import { NotFoundError } from "../errors";
|
|
11
11
|
import type { Dispatcher } from "../pipeline/dispatcher";
|
|
12
|
-
import {
|
|
12
|
+
import { parseRoles } from "../utils/serialization";
|
|
13
13
|
import { Routes } from "./api-constants";
|
|
14
14
|
import {
|
|
15
15
|
AUTH_COOKIE_NAME,
|
|
@@ -1361,11 +1361,10 @@ export function createAuthRoutes(
|
|
|
1361
1361
|
config.userQuery,
|
|
1362
1362
|
{ id: user.id },
|
|
1363
1363
|
createSystemUser(user.tenantId),
|
|
1364
|
-
)) as { roles?:
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
}
|
|
1364
|
+
)) as { roles?: unknown } | null;
|
|
1365
|
+
// roles is jsonb string[] (multiSelect); parseRoles also accepts legacy
|
|
1366
|
+
// JSON-encoded text from pre-0.217.0 rows.
|
|
1367
|
+
globalRoles = parseRoles(userRow?.roles ?? null);
|
|
1369
1368
|
} catch (e) {
|
|
1370
1369
|
// Non-fatal: globale Rollen kann nicht aufgelöst werden → switch
|
|
1371
1370
|
// läuft weiter mit nur tenant-rollen. Server-error mit nur dem
|