From de18fe2c31de3fac316932bd6b2cfa3e10253df7 Mon Sep 17 00:00:00 2001 From: Sergey Kozyrenko Date: Sun, 17 May 2026 10:34:25 +0700 Subject: [PATCH] chore(frontend): upgrade zod to v4 with hookform/resolvers v5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps zod 3.25.76 → 4.4.3 and @hookform/resolvers 3.10.0 → 5.2.2 (the resolvers v5 requires zod v4). zod is used in 25 source files (schemas, form validators, table state parsers). Build passes without changes — the project relies on the shared subset of the v3/v4 API (z.object/z.string/z.number/z.enum, z.infer, .min/.max/.optional, refinements). Runtime form validation keeps disabling submit until required fields are filled. Co-Authored-By: Claude Opus 4.7 (1M context) --- frontend/package.json | 4 ++-- frontend/pnpm-lock.yaml | 31 ++++++++++++++++--------------- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 10284492..ce22e319 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -19,7 +19,7 @@ }, "dependencies": { "@apollo/client": "^3.13.8", - "@hookform/resolvers": "^3.9.1", + "@hookform/resolvers": "^5.2.2", "@monaco-editor/react": "^4.7.0", "@radix-ui/react-accordion": "^1.2.11", "@radix-ui/react-avatar": "^1.1.1", @@ -90,7 +90,7 @@ "tiptap-markdown": "^0.9.0", "tw-animate-css": "^1.4.0", "vaul": "^1.1.2", - "zod": "^3.25.32" + "zod": "^4.4.3" }, "devDependencies": { "@commitlint/cli": "^20.0.0", diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml index 0a17ed07..5e524023 100644 --- a/frontend/pnpm-lock.yaml +++ b/frontend/pnpm-lock.yaml @@ -12,8 +12,8 @@ importers: specifier: ^3.13.8 version: 3.14.1(@types/react@19.2.14)(graphql-ws@6.0.8(graphql@16.14.0)(ws@8.20.1))(graphql@16.14.0)(react-dom@19.2.6(react@19.2.6))(react@19.2.6) '@hookform/resolvers': - specifier: ^3.9.1 - version: 3.10.0(react-hook-form@7.76.0(react@19.2.6)) + specifier: ^5.2.2 + version: 5.2.2(react-hook-form@7.76.0(react@19.2.6)) '@monaco-editor/react': specifier: ^4.7.0 version: 4.7.0(monaco-editor@0.55.1)(react-dom@19.2.6(react@19.2.6))(react@19.2.6) @@ -225,8 +225,8 @@ importers: specifier: ^1.1.2 version: 1.1.2(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.6(react@19.2.6))(react@19.2.6) zod: - specifier: ^3.25.32 - version: 3.25.76 + specifier: ^4.4.3 + version: 4.4.3 devDependencies: '@commitlint/cli': specifier: ^20.0.0 @@ -1309,10 +1309,10 @@ packages: peerDependencies: graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 - '@hookform/resolvers@3.10.0': - resolution: {integrity: sha512-79Dv+3mDF7i+2ajj7SkypSKHhl1cbln1OGavqrsF7p6mbUv11xpqpacPsGDCTRvCSjEEIez2ef1NveSVL3b0Ag==} + '@hookform/resolvers@5.2.2': + resolution: {integrity: sha512-A/IxlMLShx3KjV/HeTcTfaMxdwy690+L/ZADoeaTltLx+CVuzkeVIPuybK3jrRfw7YZnmdKsVVHAlEPIAEUNlA==} peerDependencies: - react-hook-form: ^7.0.0 + react-hook-form: ^7.55.0 '@humanfs/core@0.19.2': resolution: {integrity: sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==} @@ -6179,8 +6179,8 @@ packages: peerDependencies: zod: ^3.25.0 || ^4.0.0 - zod@3.25.76: - resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==} + zod@4.4.3: + resolution: {integrity: sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==} zwitch@2.0.4: resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} @@ -7255,8 +7255,9 @@ snapshots: dependencies: graphql: 16.14.0 - '@hookform/resolvers@3.10.0(react-hook-form@7.76.0(react@19.2.6))': + '@hookform/resolvers@5.2.2(react-hook-form@7.76.0(react@19.2.6))': dependencies: + '@standard-schema/utils': 0.3.0 react-hook-form: 7.76.0(react@19.2.6) '@humanfs/core@0.19.2': @@ -9787,8 +9788,8 @@ snapshots: '@babel/parser': 7.29.3 eslint: 9.39.4(jiti@2.7.0) hermes-parser: 0.25.1 - zod: 3.25.76 - zod-validation-error: 4.0.2(zod@3.25.76) + zod: 4.4.3 + zod-validation-error: 4.0.2(zod@4.4.3) transitivePeerDependencies: - supports-color @@ -12624,10 +12625,10 @@ snapshots: zen-observable@0.8.15: {} - zod-validation-error@4.0.2(zod@3.25.76): + zod-validation-error@4.0.2(zod@4.4.3): dependencies: - zod: 3.25.76 + zod: 4.4.3 - zod@3.25.76: {} + zod@4.4.3: {} zwitch@2.0.4: {}