Repository navigation
Document TSRX directive arm output semantics - #213
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
trueadm
marked this pull request as ready for review
July 21, 2026 00:15
mrdiyorbek-juraev
added a commit
to mrdiyorbek-juraev/octane
that referenced
this pull request
Jul 21, 2026
Brings in 5 upstream commits: the safe inline-script content contract (octanejs#215), the tanstack.com shell port (octanejs#214), the TSRX directive arm output docs (octanejs#213), the inline hook-memo tier (octanejs#208), and the website menu / scroll-spy work (octanejs#209). Upstream added three bindings (tanstack-router-ssr-query, tanstack-hotkeys, tanstack-pacer), taking the table to 39. Six conflicts, all resolved as unions so neither side lost content: - website/src/content/bindings.json — @octanejs/cmdk listed alongside upstream's three new bindings; the "UI and interaction" description keeps command menus and gains keyboard shortcuts and event pacing. - website/public/llms.txt — same union in prose form. - docs/bindings-status.md, docs/packages.md, docs/binding-parity-gaps.md and the evals user-apps-v1 manifest are generated, so they were taken from upstream and regenerated (39 bindings, 48 publishable packages, 0 parity pins, 19 eval tasks). packages/cmdk is byte-identical to its pre-merge state; upstream's compiler changes do not perturb it. Verified: 32/32 cmdk and cmdk-ssr tests including both differential parity checks against [email protected], tsrx-tsc and tsgo clean, prettier clean, and all five freshness gates current. Co-Authored-By: Claude Opus 4.8 <[email protected]>
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
Design
Directive arms are code blocks with a setup/output split. A statement such as
console.log(value);orvalue;remains setup even when it is the arm's only statement. Renderable output must be explicit JSX, for example<>{value}</>.This clarifies JS-02 from #211 as intentional TSRX semantics. It does not change the compiler or runtime.
Validation
control.test.tsin normal andoctane-prodmodes: 18 tests passedpnpm format:checkpassedNote
Low Risk
User-facing documentation and regression tests only; no compiler or runtime logic appears in this diff.
Overview
Documents and pins TSRX directive-arm semantics: a lone expression statement inside
@if,@for,@switch,@try, and related arms is setup only—it runs but does not render (e.g.console.log(value);orvalue;). To show a computed value, authors must use an explicit fragment such as<>{value}</>.README control-flow section and TSRX vs TSX gain examples and scope across all directive variants. The WhitespaceInIf fixture drops the extra braces around
' spaced ' as string;, and the control test now expects an empty<p>whenshowis true while still provingstripTsOnlyWrapperskeeps TypeScript assertions out of emitted JavaScript.Reviewed by Cursor Bugbot for commit 344ecd9. Bugbot is set up for automated code reviews on this repo. Configure here.