Skip to content

fix(compiler): update TSRX and preserve scoped sibling selectors - #970

Merged
leonidaz merged 2 commits into
mainfrom
fix/update-tsrx-74
Sep 6, 2026
Merged

leonidaz merged 2 commits into
mainfrom
fix/update-tsrx-74

Conversation

@leonidaz

@leonidaz leonidaz commented Sep 6, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Update Octane's TSRX dependencies to the published versions in tsrx-org/tsrx#74, including the sibling-selector fix from #73. Scoped .a + .b and .a ~ .c rules now survive at a scope's root and in branch fragments; selectors with no matching sibling remain pruned.

Why

The dependency bump alone left four checks in the new upstream sibling-combinators fixture failing: Octane's pruning pass supplied no parent fragment for root siblings. Seed the private cloned pruning tree with the newly exported createScopeRoot, preserving the rule that a style scope never styles its containing element.

Changes

  • Update core to 0.1.67, React to 0.2.67, Solid to 0.1.67, Prettier/TypeScript plugins to 0.3.133, and the React/Solid Vite plugins to 0.0.100/0.0.97; refresh the lockfile and exact release-age exceptions. Ripple, runtime, and native-parser versions were not released in feat: add Apollo Client binding #74.
  • Keep importing all 16 shared scoped-style fixtures and all 30 style-syntax cases from @tsrx/core; add client/SSR evaluation of SiblingCombinators with its branch both open and closed.
  • Add a Global Keyframes section and sidebar link to the website's styling guide, explaining scoped names and the -global- prefix with a parent/child example.
  • Add an octane patch changeset. pnpm sync also refreshes 87 generated files whose only changes are lockfile hashes.

Validation

  • pnpm install --frozen-lockfile (including supply-chain policy verification)
  • Scoped pnpm format:files:check for the authored changes and lockfile
  • pnpm sync, pnpm changeset:check, git diff --check
  • Expanded style/compiler/browser and docs Vitest selection: 34 files, 810 passed, 14 existing native-parser expected failures. The new upstream scoped-style fixture passes without a known-failure exception.
  • Observed the new fixture fail before the compiler fix: four client/server × dev/prod failures for incorrectly pruned .a + .b and .a ~ .c.
  • Compiled the exact Global Keyframes documentation example in client/server × dev/prod modes and verified local renaming and the shared fadeIn name.
  • pnpm typecheck — full repository, including website, examples, and benchmark typechecks
  • pnpm --dir website build and a Chromium smoke check of the production styling page (HTTP 200, Global Keyframes visible, no browser errors); the subsequent sidebar-link addition also passed 24 docs tests
  • Full pnpm test — all four current-head CI shards passed; local validation uses the targeted suite above
  • Repository-wide formatting/lint — passed in CI; local validation used scoped formatting

Compiler-output check: all 30 pre-existing client/server fixture outputs remain byte-identical using consistent filenames (62,470 bytes before and after). A small same-machine compile sample (Node 24.18.0, 3 warmups, 10 iterations of those 30 cases) measured 124.18 ms baseline / 124.51 ms candidate (+0.26%), within observed variation. The extra fragment is compile-time-only and remains on the private pruning tree; no runtime allocation or throughput improvement is claimed.

CI: all jobs passed on a5a8e9ded74a296d0a02b9b0c7b3883c7527a42b, including tests, typechecks, lint, React parity, browser/website integration, examples, and package validation. Bugbot passed with no unresolved review threads.

Provenance

  • An agent produced this diff (agent-authored)

Note

Medium Risk
Touches compile-time CSS pruning and a broad TSRX dependency bump, which can change generated styles; scope is limited to sibling-selector preservation with new conformance tests.

Overview
Bumps the workspace to @tsrx/[email protected] (and related TSRX packages per the changeset), refreshes pnpm-lock.yaml, and propagates the new lockfileSha256 through react-parity audit files and eval task manifests.

The functional Octane change is in style-scopes.js: scoped-style pruning now seeds the private element tree with createScopeRoot from core so root-level siblings inside a fragment participate in pruning. That keeps + / ~ rules at a scope’s top or in @if branches when a matching sibling exists, while still pruning unmatched selectors and not styling the scope’s container.

Conformance coverage adds the upstream sibling-combinators fixture (open and closed branch renders).

Reviewed by Cursor Bugbot for commit a5a8e9d. Bugbot is set up for automated code reviews on this repo. Configure here.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent fix PR: bug fix labels Sep 6, 2026
@vercel

vercel Bot commented Sep 6, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
octane-website-mcp Skipped Skipped Sep 6, 2026 1:16am UTC

Request Review

@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp September 6, 2026 01:16 Inactive
@leonidaz
leonidaz marked this pull request as ready for review September 6, 2026 01:19
@leonidaz
leonidaz merged commit 3c5d2df into main Sep 6, 2026
50 checks passed
@leonidaz
leonidaz deleted the fix/update-tsrx-74 branch September 6, 2026 01:27

This branch was previously deployed

1 inactive deployment
Preview – octane-website-mcp — a5a8e9de Deployed Sep 6, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-authored Diff or issue body substantially produced by an AI agent fix PR: bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant