fix: resolve Zod compatibility issue
- Change z.url() to z.string().url() in AppProvider.tsx for Zod compatibility - Update Zod version from ^3.25.71 to ^3.23.8 (valid published version) Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
This commit is contained in:
parent
e5f26f4b1f
commit
947bb2784b
2 changed files with 3 additions and 3 deletions
|
|
@ -85,7 +85,7 @@
|
|||
"tailwind-merge": "^2.5.2",
|
||||
"tailwindcss-animate": "^1.0.7",
|
||||
"vaul": "^0.9.3",
|
||||
"zod": "^3.25.71"
|
||||
"zod": "^3.23.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.9.0",
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ interface AppProviderProps {
|
|||
// Zod schema for RelayMetadata validation
|
||||
const RelayMetadataSchema = z.object({
|
||||
relays: z.array(z.object({
|
||||
url: z.url(),
|
||||
url: z.string().url(),
|
||||
read: z.boolean(),
|
||||
write: z.boolean(),
|
||||
})),
|
||||
|
|
@ -23,7 +23,7 @@ const RelayMetadataSchema = z.object({
|
|||
|
||||
// Zod schema for BlossomServerMetadata validation
|
||||
const BlossomServerMetadataSchema = z.object({
|
||||
servers: z.array(z.url()),
|
||||
servers: z.array(z.string().url()),
|
||||
updatedAt: z.number(),
|
||||
}) satisfies z.ZodType<BlossomServerMetadata>;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue