Updated Libs - Zod v3 to v4

This commit is contained in:
2026-01-13 20:15:35 +01:00
parent 53ddf1e73c
commit 25364deb8e
4 changed files with 12 additions and 12 deletions
+8 -8
View File
@@ -19,11 +19,11 @@
"react": "^18.2.0",
"react-day-picker": "^9.13.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.70.0",
"react-hook-form": "^7.71.0",
"react-router": "^7.12.0",
"swr": "^2.3.8",
"tailwind-merge": "^3.4.0",
"zod": "^3.25.76",
"zod": "^4.3.5",
"zustand": "^5.0.9"
},
"devDependencies": {
@@ -5704,9 +5704,9 @@
}
},
"node_modules/react-hook-form": {
"version": "7.70.0",
"resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.70.0.tgz",
"integrity": "sha512-COOMajS4FI3Wuwrs3GPpi/Jeef/5W1DRR84Yl5/ShlT3dKVFUfoGiEZ/QE6Uw8P4T2/CLJdcTVYKvWBMQTEpvw==",
"version": "7.71.0",
"resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.71.0.tgz",
"integrity": "sha512-oFDt/iIFMV9ZfV52waONXzg4xuSlbwKUPvXVH2jumL1me5qFhBMc4knZxuXiZ2+j6h546sYe3ZKJcg/900/iHw==",
"license": "MIT",
"engines": {
"node": ">=18.0.0"
@@ -6287,9 +6287,9 @@
}
},
"node_modules/zod": {
"version": "3.25.76",
"resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
"integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
"version": "4.3.5",
"resolved": "https://registry.npmjs.org/zod/-/zod-4.3.5.tgz",
"integrity": "sha512-k7Nwx6vuWx1IJ9Bjuf4Zt1PEllcwe7cls3VNzm4CQ1/hgtFUK2bRNG3rvnpPUhFjmqJKAKtjV576KnUkHocg/g==",
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/colinhacks"
+2 -2
View File
@@ -22,11 +22,11 @@
"react": "^18.2.0",
"react-day-picker": "^9.13.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.70.0",
"react-hook-form": "^7.71.0",
"react-router": "^7.12.0",
"swr": "^2.3.8",
"tailwind-merge": "^3.4.0",
"zod": "^3.25.76",
"zod": "^4.3.5",
"zustand": "^5.0.9"
},
"devDependencies": {
+1 -1
View File
@@ -1,6 +1,6 @@
"use client";
import { z } from "zod/v4";
import { z } from "zod";
export const BookingFormSchema = z.object({
name: z.string().min(2).max(50),
+1 -1
View File
@@ -17,7 +17,7 @@ import { useAppStore } from "@/store";
import { useEffect, useState } from "react";
import { useForm } from "react-hook-form";
import { useNavigate } from "react-router";
import { z } from "zod/v4";
import { z } from "zod";
import { zodResolver } from "@hookform/resolvers/zod";
import { eBookingState } from "@/utils/AppStateManager";
import { useBookingStateDispacher } from "@/utils/hooks";