[PR #5629] feat(core): replace ZodType with @standard-schema/spec #14372

Closed
opened 2026-04-13 09:26:35 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5629

State: closed
Merged: Yes


Closes: https://github.com/better-auth/better-auth/pull/5570


Summary by cubic

Replaced ZodType with the StandardSchemaV1 interface from @standard-schema/spec in core validator types to standardize validation and decouple from Zod. Added @standard-schema/spec and re-exported StandardSchemaV1 from core.

  • Migration
    • Use StandardSchemaV1 for DBFieldAttributeConfig.validator input/output.
    • If you use Zod, wrap your schemas with a Standard Schema–compatible adapter or wrapper.
**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5629 **State:** closed **Merged:** Yes --- Closes: https://github.com/better-auth/better-auth/pull/5570 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Replaced ZodType with the StandardSchemaV1 interface from @standard-schema/spec in core validator types to standardize validation and decouple from Zod. Added @standard-schema/spec and re-exported StandardSchemaV1 from core. - **Migration** - Use StandardSchemaV1 for DBFieldAttributeConfig.validator input/output. - If you use Zod, wrap your schemas with a Standard Schema–compatible adapter or wrapper. <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 09:26:35 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#14372