Version Packages - #1353
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
🏋️ Size limit report
Compared against main at 7f78659 — run 32833978458, 2026-08-25T09:49:11Z.To see which modules changed, download the size-limit-statoscope-report artifact from this run and open report.html. |
Contributor
🧪 Storybook is successfully deployed!
|
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.168.0
Minor Changes
#1344
7f786591Thanks @tenphi! - Collapse the kit's stylesheet writes into one style invalidation per commit.Every
insertRule()on a live stylesheet invalidates style for that sheet's scope. Kit components inject during React's render phase, so when anything else reads layout in the same pass — a tooltip positioning itself,TextAreaautosizing, a virtualized table measuring rows — the two interleave and the browser is forced to recalculate style between every injection.<Root>now enables tasty'sbatchInjectionand opens a batch window for its own commits. A commit that mounts a portal does not re-render<Root>, so windows are opened per portal boundary too:<Portal>(tooltips) and<Overlay>(popovers, modals and trays — theDialogandMenusurfaces). Those are the commits where injection and measurement interleave worst, because react-aria positions the overlay from a layout effect in the same commit that mounts it.Writes are queued and applied together, and the flush happens in
useInsertionEffect— before anyuseLayoutEffect— so nothing can measure an element whose rules have not landed yet. Any commit without a window in it writes straight through exactly as before.No API change: no new props, no new setup. SSR is unaffected — styles are collected as text there and the provider is inert without a
document.Note
Low Risk
Release-metadata-only diff (version, changelog, changeset cleanup); no application code changes in this PR.
Overview
Automated Changesets release that publishes
@cube-dev/ui-kit0.168.0 by bumpingpackage.json, appending the 0.168.0 section toCHANGELOG.md, and deleting the consumed.changeset/batched-style-injection.md.The release notes document the already-merged batched style injection work (#1344): one stylesheet invalidation per commit via tasty
batchInjectionon<Root>plus batch windows on<Portal>and<Overlay>, with a flush inuseInsertionEffectand no public API changes. This PR does not modify runtime source—only version and changelog metadata.Reviewed by Cursor Bugbot for commit c5c4307. Bugbot is set up for automated code reviews on this repo. Configure here.