mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-26 07:20:39 +00:00
15f4bd8eff
* 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
22 lines
481 B
TypeScript
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()),
|
|
});
|