This codemod automatically migrates your Valibot codebase to version 0.31.0, handling all breaking changes introduced in this release.
What it migrates
- Schema renames: custom → check, Input → InferInput, Output → InferOutput
- Object merging: merge → object
- Objects/tuples with rest: Transforms objectWithRest and tupleWithRest to new syntax
- Loose/strict variants: Converts looseObject/strictObject and looseTuple/strictTuple to new API
- Pipeline API: Migrates array-based pipelines to pipe() function calls
- Method transformations: Updates coerce, flatten, brand, and transform method calls
- Nested pipes: Flattens deeply nested schema compositions into cleaner pipe() chains
Example
Before (v0.30):
typescript
After (v0.31):
typescript
License
MIT