Skip to content

Add maintenance-mode toolchain note for class-variance-authority - #388

Merged
joe-bell merged 3 commits into
mainfrom
claude/cva-changes-since-0.7.1-8a9yfr
Jul 13, 2026
Merged

joe-bell merged 3 commits into
mainfrom
claude/cva-changes-since-0.7.1-8a9yfr

Conversation

@joe-bell

Copy link
Copy Markdown
Owner

Description

Adds a package-scoped callout note for class-variance-authority to clarify that its published baseline predates the tsdown build migration. This note appears under the package heading and above the benchmark table, helping readers understand that performance deltas may reflect the one-time build-toolchain change rather than source changes.

The note is conditionally rendered only when:

  • The package is class-variance-authority
  • There is an actual baseline column with tasks to compare against (no note if the release baseline is skipped)

This addresses the maintenance-mode status of the stable class-variance-authority package, which will be dropped once a tsdown-built release ships and re-baselines the comparison.

What is the purpose of this pull request?

  • Documentation update
  • Bug fix
  • New Feature
  • Other

Test Plan

Added three new test cases covering:

  1. Rendering the maintenance-mode note for class-variance-authority with both local and release implementations
  2. Omitting the note when the release baseline is skipped
  3. Not rendering the note for other packages (e.g., cva)

All tests pass and validate the conditional rendering logic.

https://claude.ai/code/session_012hRdCGbMhkxTiWGmrvBhnV

claude added 2 commits July 13, 2026 09:32
The benchmark table compares this PR's freshly `tsdown`-built `dist`
against the published `latest` npm baseline. For `class-variance-authority`
that baseline is still the pre-`tsdown` (SWC) build, so part of any delta
measures the one-time build-toolchain/target migration rather than the
source, which is unchanged since 0.7.1. Render a GitHub `> [!NOTE]` alert
under the package heading to flag this, gated on there actually being a
baseline column to caveat.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012hRdCGbMhkxTiWGmrvBhnV
Shorten the maintenance-mode callout to two sentences and drop the
jargon: it now states the baseline predates the tsdown build migration
and to treat the deltas as indicative, without spelling out the SWC
down-leveling detail.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012hRdCGbMhkxTiWGmrvBhnV
@github-actions

github-actions Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Benchmarks

Comparing this PR's local benchmark run against the latest published npm versions.

Aim for higher ops/s. Treat deltas within ±5% as noise.

class-variance-authority

Task This PR 0.7.1 Δ
cva (runtime)
component call with defaults
620,740 ops/s ±0.11% 615,481 ops/s ±0.23% +0.9%
cva (runtime)
component call with props
97,318 ops/s ±0.26% 96,955 ops/s ±0.26% +0.4%
cx (runtime)
class join
5,813,094 ops/s ±0.31% 5,783,645 ops/s ±0.09% +0.5%
cva (static)
component definition
15,122,420 ops/s ±0.09% 13,072,886 ops/s ±0.44% 🟢 +15.7%
compose (static + runtime)
define, join and call
511,793 ops/s ±0.27% 515,320 ops/s ±0.30% -0.7%

cva

Task This PR 1.0.0-beta.6 (beta) Δ
cva (runtime)
component call with defaults
613,869 ops/s ±0.24% 616,336 ops/s ±0.28% -0.4%
cva (runtime)
component call with props
94,377 ops/s ±0.33% 96,344 ops/s ±0.31% -2.0%
cx (runtime)
class join
4,858,818 ops/s ±0.19% 4,827,039 ops/s ±0.08% +0.7%
cva (static)
component definition
1,843,110 ops/s ±0.22% 1,932,763 ops/s ±0.29% -4.6%
composes property (static + runtime)
define, join and call
250,213 ops/s ±0.28% 248,583 ops/s ±2.91% +0.7%

Commit bb0a1d1 · Node v24.18.0 · linux x64 · 2026-07-13T09:43:03.994Z

These benchmarks ran in CI on this PR's code. The comment checks that the report looks valid before posting it, but it cannot guarantee the numbers are correct. If you see a large change, re-run the benchmarks locally before treating it as a real improvement or regression.

Collapse the concatenated string literal into a single line; Prettier
leaves long string literals unwrapped, so no printWidth churn.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012hRdCGbMhkxTiWGmrvBhnV
@joe-bell
joe-bell merged commit 1638e1d into main Jul 13, 2026
10 checks passed
@joe-bell
joe-bell deleted the claude/cva-changes-since-0.7.1-8a9yfr branch July 13, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants