Skip to content

solid-v2: switch fullstack templates from zod to valibot - #276

Merged
birkskyum merged 1 commit into
solidjs:mainfrom
brenelz:solid-v2-valibot
Aug 18, 2026
Merged

solid-v2: switch fullstack templates from zod to valibot#276
birkskyum merged 1 commit into
solidjs:mainfrom
brenelz:solid-v2-valibot

Conversation

@brenelz

@brenelz brenelz commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Switches the solid-v2/fullstack and solid-v2/fullstack-tanstack templates from zod to valibot:

  • env.ts in both templates rewritten with valibot (v.pipe(v.string(), v.minLength(32)) for SESSION_SECRET, v.optional(v.pipe(v.string(), v.minLength(1)), 'Solid App') for VITE_APP_NAME); the comment now lists zod/arktype as the alternatives
  • package.json deps: zodvalibot@^1.4.2, lockfiles regenerated
  • fullstack/README.md updated to name valibot in the Standard Schema paragraph and the server-bundle deps list

The env plugin consumes the Standard Schema interface, so only the example library changes — no plugin or config changes.

Verification

  • Both templates build cleanly (client env values are validated at build time, exercising the valibot schemas)
  • Both vitest suites pass (10/10 each)
  • solid-env.d.ts regenerates with correct inferred types from valibot's Standard Schema output

Companion docs PR: solidjs/solid-docs#1634

🤖 Generated with Claude Code

@socket-security

socket-security Bot commented Aug 17, 2026

Copy link
Copy Markdown

Dependency limit exceeded — report not shown.

This pull request scan exceeded the 10,000-dependency limit applied to this scan, so the results are incomplete and may be inaccurate. To avoid reporting false positives, Socket has not posted a report.

Upgrade your plan to raise the dependency limit and get complete reports, or view the partial scan in the dashboard.

Socket is always free for open source. If this is a non-commercial open source project, contact us to request a free Team account.

Replace zod with valibot in the fullstack and fullstack-tanstack
env schemas (the plugin reads Standard Schema, so only the example
library changes). Both templates build and pass their test suites.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@birkskyum
birkskyum merged commit 993b7d1 into solidjs:main Aug 18, 2026
2 checks passed
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.

2 participants