@shadcn/registry@0.2.0

shadcn-ui/ui@shadcn/registry@0.2.0Oct 16, 2026by github-actions[bot]

Upgrading?

AI Summary

Upgrades to Zod 4, requiring consumers to update their schema validation and type definitions.

Key Highlights

  • Upgrade to Zod 4
  • Use exported types instead of `z.infer`
  • Use schema methods instead of `z.array`
  • Validation message wording updated to Zod 4 standards

Full Release Notes

### Minor Changes

- [#12298](https://github.com/shadcn-ui/ui/pull/12298) [`954ce95`](https://github.com/shadcn-ui/ui/commit/954ce953412867a57b7e067c076fa7fd395ea115) Thanks [@shadcn](https://github.com/shadcn)! - Upgrade to Zod 4. `shadcn/schema` and `@shadcn/registry/schema` now export Zod 4 schemas, so passing them to Zod 3's `z` no longer typechecks. On Zod 3, use the exported types (`RegistryItem`, `RegistryItemFile`, `Config`) and the schema's own methods (`registryItemSchema.array()`) instead of `z.infer` and `z.array`. Zod errors expose `issues`, not `errors`. Validation messages now use Zod 4's wording.

Related Repositories