# shadcn-ui/release
shadcn/ui @shadcn/registry@0.2.0
importance: criticalbreakingmigration
This release upgrades the registry to Zod 4, introducing breaking changes for users relying on Zod 3. Validation messages and schema exports have been updated to align with Zod 4's API.
affected
Users relying on Zod 3 with `@shadcn/registry` are affected and must migrate to Zod 4 or adapt their code.
action
Upgrade to Zod 4 or update your code to use the new schema methods and types.
release_signals
-Upgrade to Zod 4: `shadcn/schema` and `@shadcn/registry/schema` now export Zod 4 schemas, making them incompatible with Zod 3's `z`.
-Zod errors now expose `issues` instead of `errors`.
-Validation messages use Zod 4's wording.
migration_steps1 steps
- 01On Zod 3, use exported types (`RegistryItem`, `RegistryItemFile`, `Config`) and schema 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.