Repository navigation
fix(compiler): update TSRX and preserve scoped sibling selectors - #970
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This branch was previously 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.
Summary
Update Octane's TSRX dependencies to the published versions in tsrx-org/tsrx#74, including the sibling-selector fix from #73. Scoped
.a + .band.a ~ .crules 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-combinatorsfixture failing: Octane's pruning pass supplied no parent fragment for root siblings. Seed the private cloned pruning tree with the newly exportedcreateScopeRoot, preserving the rule that a style scope never styles its containing element.Changes
0.1.67, React to0.2.67, Solid to0.1.67, Prettier/TypeScript plugins to0.3.133, and the React/Solid Vite plugins to0.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.@tsrx/core; add client/SSR evaluation ofSiblingCombinatorswith its branch both open and closed.-global-prefix with a parent/child example.octanepatch changeset.pnpm syncalso refreshes 87 generated files whose only changes are lockfile hashes.Validation
pnpm install --frozen-lockfile(including supply-chain policy verification)pnpm format:files:checkfor the authored changes and lockfilepnpm sync,pnpm changeset:check,git diff --check.a + .band.a ~ .c.fadeInname.pnpm typecheck— full repository, including website, examples, and benchmark typecheckspnpm --dir website buildand 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 testspnpm test— all four current-head CI shards passed; local validation uses the targeted suite aboveCompiler-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
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), refreshespnpm-lock.yaml, and propagates the newlockfileSha256through 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 withcreateScopeRootfrom core so root-level siblings inside a fragment participate in pruning. That keeps+/~rules at a scope’s top or in@ifbranches when a matching sibling exists, while still pruning unmatched selectors and not styling the scope’s container.Conformance coverage adds the upstream
sibling-combinatorsfixture (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.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.