Skip to content

⚡️ Replace Zod with Valibot for form validation#853

Merged
usagizmo merged 2 commits intomainfrom
feat/use-valibot
Nov 28, 2025
Merged

⚡️ Replace Zod with Valibot for form validation#853
usagizmo merged 2 commits intomainfrom
feat/use-valibot

Conversation

@usagizmo
Copy link
Copy Markdown
Owner

@usagizmo usagizmo commented Nov 28, 2025

Summary

Migrated form validation from Zod to Valibot for lighter bundle size and modern pipe-based API.

Changes

  • Converted validation schemas to Valibot's pipe-based API
  • Updated sveltekit-superforms adapter from zod4 to valibot
  • Removed zod dependency, added valibot 1.2.0
  • Updated documentation and external links

Benefits

Lighter bundle size and improved code readability with pipe-based function composition while maintaining type safety.

- Migrate validation library from zod to valibot
- Convert schema files to valibot's pipe-based API (auth.ts, profile.ts)
- Update sveltekit-superforms adapter from zod4 to valibot
- Remove zod dependency and add valibot 1.2.0
@vercel
Copy link
Copy Markdown

vercel Bot commented Nov 28, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
webapp-template-pages Ready Ready Preview Comment Nov 28, 2025 6:34am
webapp-template-web Ready Ready Preview Comment Nov 28, 2025 6:34am

- Update tech stack references in root README.md
- Update validation library mentions in apps/web/README.md
- Update external link from zod.dev to valibot.dev in pages app
- Update external links tracking list
@usagizmo usagizmo changed the title ⚡️ Replace zod with valibot for form validation ⚡️ Replace Zod with Valibot for form validation Nov 28, 2025
@usagizmo usagizmo enabled auto-merge (squash) November 28, 2025 06:34
@usagizmo usagizmo merged commit 6de8d76 into main Nov 28, 2025
4 checks passed
@usagizmo usagizmo deleted the feat/use-valibot branch November 28, 2025 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant