What's changed
- Faster component calls ⚡︎
Up to 1200% faster in compound-variant benchmarks compared withclass-variance-authority. Configs are now read at creation: create a new component instead of mutating an existing config. Thanks @fveracoechea for inspiring this work! - Faster type checking ⚡︎
A 200-component test project checked 10% faster, with 26% fewer type instantiations compared with the previous beta. Full numbers. - Set up
cvawithcnin one command
runpnpm dlx shadcn@latest add joe-bell/cva/cn. See merging classes. Thanks @shadcn! - Updated import paths
UsedefineConfigfromcva/config, andgetSchema/GetSchemafromcva/tools. The old imports still work but are deprecated.
The next beta will likely remove the deprecated imports, so best to update your paths now!
Full changelog: v1.0.0-beta.9 → v1.0.0-beta.10