Version Packages - #1373
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
🧪 Storybook is successfully deployed!
|
Contributor
🏋️ Size limit report
Compared against main at 7f1f722 — run 33080035879, 2026-08-27T14:02:25Z.To see which modules changed, download the size-limit-statoscope-report artifact from this run and open report.html. |
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@cube-dev/ui-kit@0.172.0
Minor Changes
#1372
7f1f7227Thanks @tenphi! - Breaking: reverted theschematerm back toscheme, and renamed the<html>attribute to match.schemawas the wrong word — the platform calls this a color scheme (prefers-color-scheme, thecolor-schemeproperty,<meta name="color-scheme">), and in Cube's own vocabulary "schema" means the data model, so auseSchema()that returns'light' | 'dark'sits next to Cloud'suseSchema()for SQL Runner as a pure homonym. This undoes the rename shipped in 0.170.0 (#1362) and fixes the older misspelling it was propagating.The API, back to
scheme:renderColorTokens()/renderPaletteTokens()/RenderPaletteOptions: theschemaoption isschemeagain —renderColorTokens({ scheme: 'dark' }).<CubeLogo>/<CubeFullLogo>: theschemaprop isschemeagain.useSchema(),resolveSchema(),subscribeSchema()andColorSchema— added in 0.170.0 — are nowuseScheme(),resolveScheme(),subscribeScheme()andColorScheme.useHighContrast()andresolveHighContrast()are unchanged.tokenOptions.schemaistokenOptions.schemeagain, and thepnpm probeCLI flag--schemais--scheme(--scheme hcstill means light + high contrast).The DOM opt-in, renamed for the first time:
<html data-schema="dark">is now<html data-scheme="dark">, and the tasty state is@root(scheme=…)— so@darkcompiles to:root[data-scheme="dark"].data-contrastis unchanged.No aliases, on either half. An alias for the attribute was measured and rejected: teaching the
@darkstate to accept both spellings takes a four-variant palette style map from 21 rules / 3.6 KB to 52 rules / 10.3 KB, because every arm has to be expanded against both attributes — a permanent 2.9× on the kit's most-used state to save a one-line edit. An app that wants a transition window can write both attributes itself; the kit reads onlydata-scheme.To migrate, rename the option, the prop, the four hooks and the attribute at your call sites. Apps that set the attribute from JS need the one write updated (
document.documentElement.setAttribute('data-scheme', …)), and any hand-written CSS selecting[data-schema]needs the same rename.Note
Low Risk
This merge only versions and documents the release; runtime risk is for apps upgrading to 0.172.0 and renaming
schema→schemeAPIs anddata-scheme.Overview
Release PR for
@cube-dev/ui-kit0.172.0: bumpspackage.jsonfrom0.171.0, folds the consumed changeset intoCHANGELOG.md, and removes.changeset/scheme-not-schema.md.The documented breaking change (from #1372, not in this diff) reverts the 0.170.0
schemanaming back toscheme: APIs likeuseScheme()/resolveScheme()/subscribeScheme()andColorScheme, token render options and logo props, probetokenOptions.schemeand--scheme, and the DOM opt-indata-scheme(with@root(scheme=…)/@darkcompiling to:root[data-scheme="dark"]). No backward-compat aliases — consumers must rename call sites,setAttribute('data-scheme', …), and any[data-schema]CSS.Reviewed by Cursor Bugbot for commit c28a410. Bugbot is set up for automated code reviews on this repo. Configure here.