github joe-bell/cva v1.0.0-beta.10
v1.0.0-beta-10

pre-release4 hours ago

What's changed

  • Faster component calls ⚡︎
    Up to 1200% faster in compound-variant benchmarks compared with class-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 cva with cn in one command
    run pnpm dlx shadcn@latest add joe-bell/cva/cn. See merging classes. Thanks @shadcn!
  • Updated import paths
    Use defineConfig from cva/config, and getSchema / GetSchema from cva/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

Don't miss a new cva release

NewReleases is sending notifications on new releases.