diff --git a/app/game-api/package.json b/app/game-api/package.json index 56d92c5..1799435 100644 --- a/app/game-api/package.json +++ b/app/game-api/package.json @@ -36,6 +36,6 @@ "es-toolkit": "^1.43.0", "fastify": "^5.6.2", "redis": "^5.10.0", - "zod": "^4.3.4" + "zod": "^4.3.5" } } diff --git a/app/game-engine/package.json b/app/game-engine/package.json index 69dd9f9..935f222 100644 --- a/app/game-engine/package.json +++ b/app/game-engine/package.json @@ -20,7 +20,7 @@ "@sammo-ts/infra": "workspace:*", "@sammo-ts/logic": "workspace:*", "es-toolkit": "^1.43.0", - "zod": "^4.3.4" + "zod": "^4.3.5" }, "devDependencies": { "tsdown": "^0.18.4", diff --git a/app/gateway-api/package.json b/app/gateway-api/package.json index ee196a3..4665b9d 100644 --- a/app/gateway-api/package.json +++ b/app/gateway-api/package.json @@ -38,6 +38,6 @@ "fastify": "^5.6.2", "pm2": "^5.4.3", "redis": "^5.10.0", - "zod": "^4.3.4" + "zod": "^4.3.5" } } diff --git a/app/gateway-frontend/package.json b/app/gateway-frontend/package.json index 4c81cdf..7359e46 100644 --- a/app/gateway-frontend/package.json +++ b/app/gateway-frontend/package.json @@ -25,7 +25,7 @@ "pinia": "^3.0.4", "vue": "^3.5.26", "vue-router": "^4.6.4", - "zod": "^4.3.4" + "zod": "^4.3.5" }, "devDependencies": { "@tailwindcss/vite": "^4.1.18", diff --git a/packages/logic/package.json b/packages/logic/package.json index cca49ab..daf6799 100644 --- a/packages/logic/package.json +++ b/packages/logic/package.json @@ -23,7 +23,7 @@ "@sammo-ts/common": "workspace:*", "es-toolkit": "^1.43.0", "immer": "^11.1.3", - "zod": "^4.3.4" + "zod": "^4.3.5" }, "devDependencies": { "tsdown": "^0.18.4", diff --git a/packages/tools-scripts/src/generate-resource-schemas.ts b/packages/tools-scripts/src/generate-resource-schemas.ts index efc52ea..dbd62a3 100644 --- a/packages/tools-scripts/src/generate-resource-schemas.ts +++ b/packages/tools-scripts/src/generate-resource-schemas.ts @@ -3,6 +3,7 @@ import path from 'node:path'; import { fileURLToPath } from 'node:url'; import { z } from 'zod'; +import type { ZodTypeAny } from 'zod'; import { MapResourceSchema, ScenarioResourceSchema, @@ -15,7 +16,7 @@ const __dirname = path.dirname(__filename); const REPO_ROOT = path.resolve(__dirname, '..', '..', '..'); const RESOURCE_ROOT = path.join(REPO_ROOT, 'resources'); -const writeSchema = async (relativePath: string, schema: unknown): Promise => { +const writeSchema = async (relativePath: string, schema: ZodTypeAny): Promise => { const outputPath = path.join(RESOURCE_ROOT, relativePath); const jsonSchema = z.toJSONSchema(schema, { target: 'draft-07' }); const serialized = `${JSON.stringify(jsonSchema, null, 4)}\n`; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9f5617d..6e7e77f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -84,8 +84,8 @@ importers: specifier: ^5.10.0 version: 5.10.0 zod: - specifier: ^4.3.4 - version: 4.3.4 + specifier: ^4.3.5 + version: 4.3.5 devDependencies: tsdown: specifier: ^0.18.4 @@ -115,8 +115,8 @@ importers: specifier: ^1.43.0 version: 1.43.0 zod: - specifier: ^4.3.4 - version: 4.3.4 + specifier: ^4.3.5 + version: 4.3.5 devDependencies: tsdown: specifier: ^0.18.4 @@ -237,8 +237,8 @@ importers: specifier: ^5.10.0 version: 5.10.0 zod: - specifier: ^4.3.4 - version: 4.3.4 + specifier: ^4.3.5 + version: 4.3.5 devDependencies: tsdown: specifier: ^0.18.4 @@ -292,8 +292,8 @@ importers: specifier: ^4.6.4 version: 4.6.4(vue@3.5.26(typescript@5.9.3)) zod: - specifier: ^4.3.4 - version: 4.3.4 + specifier: ^4.3.5 + version: 4.3.5 devDependencies: '@tailwindcss/vite': specifier: ^4.1.18 @@ -382,8 +382,8 @@ importers: specifier: ^11.1.3 version: 11.1.3 zod: - specifier: ^4.3.4 - version: 4.3.4 + specifier: ^4.3.5 + version: 4.3.5 devDependencies: tsdown: specifier: ^0.18.4 @@ -3446,9 +3446,6 @@ packages: zeptomatch@2.0.2: resolution: {integrity: sha512-H33jtSKf8Ijtb5BW6wua3G5DhnFjbFML36eFu+VdOoVY4HD9e7ggjqdM6639B+L87rjnR6Y+XeRzBXZdy52B/g==} - zod@4.3.4: - resolution: {integrity: sha512-Zw/uYiiyF6pUT1qmKbZziChgNPRu+ZRneAsMUDU6IwmXdWt5JwcUfy2bvLOCUtz5UniaN/Zx5aFttZYbYc7O/A==} - zod@4.3.5: resolution: {integrity: sha512-k7Nwx6vuWx1IJ9Bjuf4Zt1PEllcwe7cls3VNzm4CQ1/hgtFUK2bRNG3rvnpPUhFjmqJKAKtjV576KnUkHocg/g==} @@ -6296,6 +6293,4 @@ snapshots: dependencies: grammex: 3.1.12 - zod@4.3.4: {} - zod@4.3.5: {}