Class Variance Authority (cva) is a CSS utility focused on managing class names with variants. It is useful for defining and reusing variant-based class name patterns in projects, with documentation available at https://cva.style.
Project status
- The repo appears to be actively maintained, with an upstream push recorded on 2026-05-10, though the most recently summarized
updatesin thev1.0.0-beta.*series are from 2025-05-20. - The apparent beta
updatecadence was about every 1 to 2 months in late 2024 to early 2025 (beta.2 on 2024-11-26, beta.3 on 2025-01-18, beta.4 on 2025-05-20), followed by a longer gap in the provided summaries.
AI summary generated Today
Recent updates
v1.0.0-beta.4
5/20/2025v1.0.0-beta.4 is overwhelmingly documentation and developer-experience related, with no visible runtime code changes to the `cva` library API. The only package-level change in the diff is a reordering tweak to the `exports` map to ensure the `types` entry is resolved before `import` for tooling compatibility.
v1.0.0-beta.3
1/18/2025v1.0.0-beta.3 release notes primarily describe type-related improvements, including expanding `ClassValue` to include `bigint`, exporting additional `Class*` types, and widening TypeScript and project dependency ranges. The diff provided, however, is dominated by documentation site and examples updates rather than visible changes to the core library source.
Featuresv1.0.0-beta.2
11/26/2024Release v1.0.0-beta.2 is documented as a set of chores and documentation updates. However, the provided code diff shows only a package version field change in packages/cva/package.json, with no other code or dependency changes visible.
v0.7.1
11/26/2024Release v0.7.1 has very limited release note coverage, documenting only (1) license comment additions and (2) a dependency range change for clsx. The provided code diff, however, shows a large number of repository-wide changes, dominated by new beta documentation site content and updates to contributor and CI tooling.
v0.7.0
7/17/2023v0.7.0 upgrades the project dependency clsx from v1.2.1 to v2.0.0, with a corresponding code import adjustment to match clsx v2's module shape. The release notes only mention the dependency upgrade, but the diff also includes CI workflow changes, documentation site config changes, and Husky install behavior changes.
Breakingv0.6.1
6/26/2023v0.6.1 release notes are minimal, mentioning only a missing `license` key in `package.json` and an upgrade to TypeScript 5.1.3. The code diff, however, shows additional changes beyond those notes, including new package additions and changes to package export maps.
v0.6.0
4/27/2023v0.6.0 switches the internal implementation of `cx` to use the `clsx` library directly. Release notes claim this is functionally compatible for existing usage, while adding support for booleans and object-based class inputs.
Featuresv0.5.3
4/26/2023v0.5.3 includes two targeted fixes: TypeScript type adjustments to better support `exactOptionalPropertyTypes`, and packaging changes to include missing ESM source maps. The code diff also contains additional repository changes around documentation tooling that are not mentioned in the release notes.
v0.5.2
4/11/2023v0.5.2 primarily improves TypeScript compatibility for consumers using `moduleResolution: bundler` by adding type entrypoints to the package `exports`. The code diff also includes a notable TypeScript typing change around how `cva` generic parameters are handled.
v0.5.1
4/2/2023Release v0.5.1 release notes only mention adding support for TypeScript 5. In the provided code diff, the changes appear to be dominated by documentation and website infrastructure (new Nextra/Next docs site) and repository tooling updates (migration to pnpm, CI changes, Node version bump), with no visible changes to the cva public runtime API in the diff excerpt shown.