# shadcn-ui/release
shadcn/ui shadcn@4.22.0
importance: highbreakingmigrationfeature
This release upgrades the project to Zod 4, requiring adjustments in schema usage and validation. Dependencies have also been updated to support this change.
affected
Users relying on Zod 3 schemas or validation methods will need to update their code to be compatible with Zod 4.
action
Update your code to use Zod 4 schemas and methods if you are upgrading to this version.
release_signals
-Schemas exported from `shadcn/schema` and `@shadcn/registry/schema` are now Zod 4 schemas, which are incompatible with Zod 3's `z`.
-Validation messages now use Zod 4's wording.
-Zod errors expose `issues` instead of `errors`.
+Upgrade to Zod 4 for schema validation
migration_steps1 steps
- 01On Zod 3, use the exported types (`RegistryItem`, `RegistryItemFile`, `Config`) and the schema's own methods (`registryItemSchema.array()`) instead of `z.infer` and `z.array`.
# community_signal
How useful is this release to your stack?
—
net score
Sign in with GitHub to cast your vote.
Sign in with GitHub to vote
You’ll return to this release, then choose your vote.