Skip to content

Version Packages - #1353

Merged
tenphi merged 1 commit into
mainfrom
changeset-release/main
Aug 25, 2026
Merged

Version Packages#1353
tenphi merged 1 commit into
mainfrom
changeset-release/main

Conversation

@tenphi

@tenphi tenphi commented Aug 25, 2026

Copy link
Copy Markdown
Member

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 7f786591 Thanks @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, TextArea autosizing, a virtualized table measuring rows — the two interleave and the browser is forced to recalculate style between every injection.

    <Root> now enables tasty's batchInjection and 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 — the Dialog and Menu surfaces). 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 any useLayoutEffect — 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-kit 0.168.0 by bumping package.json, appending the 0.168.0 section to CHANGELOG.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 batchInjection on <Root> plus batch windows on <Portal> and <Overlay>, with a flush in useInsertionEffect and 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.

@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cube-ui-kit Ready Ready Preview Aug 25, 2026 9:53am

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

🏋️ Size limit report

Name Size Passed?
All 498.91 KB (0% 🟰) Yes 🎉
Tree shaking (just a Button) 118.96 KB (0% 🟰) Yes 🎉

Compared against main at 7f78659run 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.

@github-actions

Copy link
Copy Markdown
Contributor

🧪 Storybook is successfully deployed!

@tenphi
tenphi merged commit c9a70c6 into main Aug 25, 2026
16 checks passed
@tenphi
tenphi deleted the changeset-release/main branch August 25, 2026 09:58
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.

1 participant