Files
Sebastian Poxhofer 15f4bd8eff chore: migrate from zod/v3 to zod/v4 (#43691)
* chore: migrate from zod/v3 to zod/v4

This commit contains the logic changes

* chore: migrate imports from zod/v3 to zod/v4

This contains import updates and adds explicit record keys as zod/v4 requires these now

* ci: enforce usage of zod/v4
2026-05-30 16:01:58 +00:00

22 lines
481 B
TypeScript

import { z } from 'zod/v4';
const Upm = z.object({
changelog: z.string().optional(),
});
const Repository = z.object({
url: z.string().optional(),
});
const UnityPackageRelease = z.object({
_upm: Upm.optional(),
documentationUrl: z.string().optional(),
repository: Repository.optional(),
version: z.string(),
});
export const UnityPackageReleasesJSON = z.object({
versions: z.record(z.string(), UnityPackageRelease),
time: z.record(z.string(), z.string()),
});