shadcn@4.22.0 @shadcn/registry@0.2.0
high risk
shadcn-ui/uiOct 16, 2026 → Oct 16, 20260 days between releases
What's New
Upgraded to Zod 4, requiring type and API changes for validation logic.
Breaking Changes
- Usage of `z.infer` is no longer type-safe; use exported types like `RegistryItem` instead.
- Schema methods like `registryItemSchema.array()` must replace `z.array` usage.
- Error objects now expose `issues` instead of the deprecated `errors` property.
New Features
- Validation messages now use Zod 4's wording.
Improvements
- Updated `@shadcn/registry` to version 0.2.0.
Upgrade Notes
Migrate from `z.infer` to exported types like `RegistryItem` and `Config`. Replace `z.array` with schema methods like `registryItemSchema.array()`. Update error handling to access the `issues` property instead of `errors`.
The Two Releases
shadcn@4.22.0
shadcn@4.22.0
Oct 16, 2026· 6 days ago
Upgrades to Zod 4, requiring updates to type inference and error handling logic in consuming code.
Full release notes@shadcn/registry@0.2.0
@shadcn/registry@0.2.0
Oct 16, 2026· 6 days ago
Upgrades to Zod 4, requiring consumers to update their schema validation and type definitions.
Full release notes