Repository navigation
Add maintenance-mode toolchain note for class-variance-authority - #388
Merged
Merged
Conversation
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
Contributor
BenchmarksComparing this PR's local benchmark run against the latest published npm versions. Aim for higher ops/s. Treat deltas within ±5% as noise.
|
| 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a package-scoped callout note for
class-variance-authorityto clarify that its published baseline predates thetsdownbuild 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:
class-variance-authorityThis addresses the maintenance-mode status of the stable
class-variance-authoritypackage, which will be dropped once atsdown-built release ships and re-baselines the comparison.What is the purpose of this pull request?
Test Plan
Added three new test cases covering:
class-variance-authoritywith both local and release implementationscva)All tests pass and validate the conditional rendering logic.
https://claude.ai/code/session_012hRdCGbMhkxTiWGmrvBhnV