feat: replace zod type with standard schema#5570
feat: replace zod type with standard schema#5570R5dan wants to merge 3 commits intobetter-auth:canaryfrom
Conversation
|
@R5dan is attempting to deploy a commit to the better-auth Team on Vercel. A member of the Team first needs to authorize it. |
|
@cubic-dev-ai Can you find any other places where there is a ZodType being used that should be replaced by StandardSchema. Ignore any situations where zod is being used as the validation library to provide the validation, but flag any situations where the user is being forced to use zod |
|
@himself65 @Bekacru @ping-maxwell Do any of you have any feedback on this? Can it be reviewed and merged |
|
hmm I think this is a fine change. |
@ping-maxwell yes, |
8df3065 to
dc17a6d
Compare
6e663b8 to
c6b6fb3
Compare
c6b6fb3 to
490e574
Compare
|
@himself65 can I ask what happened here? Did you rewrite to make the code cleaner? |
Adds standard schema to better auth
Summary by cubic
Introduce a vendor-agnostic Standard Schema v1 for field validation. This removes the Zod dependency in DB validators and standardizes validate calls across core and better-auth.
Refactors
Migration