lockdocs upgrade zod 4.6.7Use z.email() in Zod v4
Example call site: src/validation/account.ts:7
- const email = z.string().email()
zod@3.23.8 lib/types.d.ts:200
+ const email = z.email()
zod@4.6.7 src/v4/classic/schemas.ts:710–712
Zod v4 still supports z.string().email(), but deprecates it in favor of the top-level z.email() validator.
Zod v4 migration · String formats