Skip to content

Releases

v1.0.0-beta.12

v1.0.0-beta.12 Pre-release
Pre-release

Choose a tag to compare

@joe-bell joe-bell released this 17 Sep 12:58
1d93698

Warning

Breaking Changes

The deprecated cva/utils entry point has now been removed. Move getSchema and GetSchema imports to cva/tools.

Use the cva-migrate Agent Skill to upgrade from cva@1.0.0-beta.0 through beta.11.

What's changed

  • New: cva/tailwindcss 💨

    An optional stylesheet of custom variants for Tailwind CSS, usable with or without cva:

    @import "tailwindcss";
    @import "cva/tailwindcss";

    Prefix component defaults with base:, such as base:bg-blue-600, and ordinary utilities like bg-violet-600 override them through the CSS cascade. No runtime class merging required.

    Usage and limitations.

  • Deprecated cva/utils entry point removed

    cva/tools is now the only home for getSchema and GetSchema. Update value imports, type imports, and re-exports that still use cva/utils. Full details.

  • Docs improvements

    The docs now show measured bundle sizes and weekly npm downloads, include a fallback for StackBlitz embeds, and credits @joe-bell's previous cx library in the project history.

Full changelog: v1.0.0-beta.11 → v1.0.0-beta.12

v1.0.0-beta.11

v1.0.0-beta.11 Pre-release
Pre-release

Choose a tag to compare

@joe-bell joe-bell released this 15 Sep 14:18
c35f94b

Warning

Breaking Changes

The deprecated APIs listed below have now been removed.

Use the cva-migrate Agent Skill to upgrade from cva@1.0.0-beta.0 through beta.10.

What's changed

  • Deprecated beta APIs removed

    • compose(a, b) → cva({ composes: [a, b] })
    • defineConfig imported from "cva" → defineConfig imported from "cva/config"
    • getSchema imported from "cva" → getSchema imported from "cva/tools"
    • hooks → a custom cx wrapper

    Move the matching type imports too. Compose has no replacement, and cva/utils remains as a deprecated alias. Full details.

  • Smaller bundles
    The minified, Brotli-compressed cva entry dropped from 2,104 B to 1,624 B, a 23% reduction. cva/config dropped from 1,608 B to 1,412 B, a 12% reduction.

  • Migration help and changelog links
    The new cva-migrate Agent Skill covers upgrades from earlier betas, and every docs page now links to the release history.

  • GitHub Sponsors ❤️
    You can now finally sponsor cva via GitHub Sponsors.

Full changelog: v1.0.0-beta.10 → v1.0.0-beta.11

v1.0.0-beta-10

v1.0.0-beta-10 Pre-release
Pre-release

Choose a tag to compare

@joe-bell joe-bell released this 14 Sep 06:56
1104094

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

v1.0.0-beta.9

v1.0.0-beta.9 Pre-release
Pre-release

Choose a tag to compare

@joe-bell joe-bell released this 06 Sep 13:00
0481ada

What's changed

Bring your own concatenator 🫛

The new cva/config entry point supports cn, tailwind-merge, clsx/lite, or your own concatenator, opening up more control over how classes are combined.

Warning

Custom concatenator support is very experimental. The API and behavior may change without warning as the feature evolves.

See merging classes for setup examples, or advanced concatenators for clsx/lite.

Upgrading

  • TypeScript 6 or later is now required.
  • defineConfig moves to cva/config; getSchema moves to cva/utils. The old imports still work but are deprecated.
  • Configuration hooks are deprecated in favor of the new cx option.

See the migration notes.

By @joe-bell in #387.

Full changelog: v1.0.0-beta.8 → v1.0.0-beta.9

v1.0.0-beta.8

v1.0.0-beta.8 Pre-release
Pre-release

Choose a tag to compare

@joe-bell joe-bell released this 15 Jul 18:01
d87bb8b

What's Changed

Full Changelog: v1.0.0-beta.7...v1.0.0-beta.8

v1.0.0-beta.7

v1.0.0-beta.7 Pre-release
Pre-release

Choose a tag to compare

@joe-bell joe-bell released this 13 Jul 09:47
2cf9f6e

What's Changed

  • build: migrate packages to tsdown, document build & release by @joe-bell in #385
  • feat(ci): add performance benchmark CI with fork-safe sticky PR comments by @joe-bell in #378
  • docs(bench): adopt clearer sticky comment benchmark layout by @joe-bell in #386
  • Add maintenance-mode toolchain note for class-variance-authority by @joe-bell in #388

Full Changelog: v1.0.0-beta.6...v1.0.0-beta.7

v1.0.0-beta.6

v1.0.0-beta.6 Pre-release
Pre-release

Choose a tag to compare

@joe-bell joe-bell released this 10 Jul 14:16
cefe866

What's Changed

  • fix(cva): export types reachable from public signatures by @joe-bell in #381

Full Changelog: v1.0.0-beta.5...v1.0.0-beta.6

v1.0.0-beta.5

v1.0.0-beta.5 Pre-release
Pre-release

Choose a tag to compare

@joe-bell joe-bell released this 10 Jul 09:53
105d696

What's Changed

Features

Clean-up

  • Migrate bundlesize to size-limit by @mateothegreat in #346
  • Spring Cleaning 2026 by @joe-bell in #358
  • docs: add Deno to installation instructions by @bartlomieju in #360
  • docs: expand AGENTS.md with architecture and workflow guidance by @joe-bell in #362
  • docs: unify docs into a single versioned Starlight site by @joe-bell in #363
  • refactor(docs): migrate docs/beta package to docs by @joe-bell in #364
  • refactor(docs): replace inline styles with Tailwind v4 utilities by @joe-bell in #366
  • feat(docs): migrate hosting from Vercel to Cloudflare Workers by @joe-bell in #365
  • chore: syncpack clean-up by @joe-bell in #367
  • fix(docs): replace deprecated Zod 4 APIs in tutorials schema by @joe-bell in #368
  • Upgrade Node.js to 24 and migrate syncpack config by @joe-bell in #369
  • docs: document Cloudflare Workers Builds deployment setup by @joe-bell in #370
  • Reorder redirects to optimize Cloudflare performance warnings by @joe-bell in #371
  • fix(docs): redirect cross-version page gaps to version home by @joe-bell in #372
  • docs(agents): make the guide self-improving by @joe-bell in #373
  • Add agent skills and MCP server configuration by @joe-bell in #374
  • Add deslop skill for cleaning up AI-generated code by @joe-bell in #375
  • Annotate lint-staged config with Configuration type by @joe-bell in #376
  • Clarify pre-commit hook policy and setup for agents by @joe-bell in #377

New Contributors

Full Changelog: v1.0.0-beta.4...v1.0.0-beta.5

v1.0.0-beta.4

v1.0.0-beta.4 Pre-release
Pre-release

Choose a tag to compare

@joe-bell joe-bell released this 20 May 06:16
f84596b

What's Changed

New Contributors

Full Changelog: v1.0.0-beta.3...v1.0.0-beta.4

v1.0.0-beta.3

v1.0.0-beta.3 Pre-release
Pre-release

Choose a tag to compare

@joe-bell joe-bell released this 18 Jan 14:11
2386c48

What's Changed

New Contributors

Full Changelog: v1.0.0-beta.2...v1.0.0-beta.3