Skip to content

fix: update the TSRX toolchain to @tsrx/core 0.5 and the new formatter - #1399

Merged
trueadm merged 55 commits into
mainfrom
chore/tsrx-0.5
Oct 7, 2026
Merged

trueadm merged 55 commits into
mainfrom
chore/tsrx-0.5

Conversation

@trueadm

@trueadm trueadm commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Why

@tsrx/core 0.5 gives template markup TSX's exact tree. The indentation between children is now its own JSXText, and each @case/@default arm is one BlockStatement. Without adapting, the upgrade alone changed compiled output for about 600 of the repository's .tsrx files:

  • templates fell back from _$template clones to createElement;
  • @switch arms fell back from componentSlotVoid to createElementFromConfig;
  • children gained positionalChildren(['', x, '']) wrappers;
  • two DOM-binding fixtures stopped compiling;
  • 15 @switch tests rendered the wrong arm.

Changes

Compiler (octane)

  • parser-template-shape.js adopts the 0.5 tree at the parse boundary, copy-on-write. It drops layout-whitespace JSXText (core's isLayoutWhitespace) and gives each template @case arm its statement list, its 0.4 shape, when each arm already had its own scope.
    • Both parser entries apply it, as do the modules that parse templates straight from core: universal, hydrate boundaries, and renderer boundaries.
    • The editor keeps the layout text beside comment children. Core's type-only printer relies on those line breaks to keep a template @ts-expect-error on the line before its child.
  • Enum member initializers were invisible to two passes. The client-only server check and the universal renderer's lexical analysis read TSEnumDeclaration.members, and the universal child walker stopped at TSEnumBody. The node parser always produced TSEnumBody, and core 0.5 now does too.
  • plain-hook-memo's printability check rejected TSEnumBody, which esrap prints through its parent. Any plain module with an enum lost its source map.

Language changes that reach fixtures and tests

  • A static <script> body cannot contain </ScRiPt in any case. The fixture writes <\/ScRiPt, which JSON reads the same, and a new test pins the compile error. docs/tsrx-basics.md notes the rule.
  • Diagnostic codes moved from tsrx-* to TSRX…/TS…. Tests now read them from @tsrx/core/diagnostics, and the style-syntax table compares codes, as core's harness now does.
  • A var in a nested @{ … } block that redeclares hook state is a redeclaration error in both parsers, as in TypeScript. The strong-mode test that relied on the native parser accepting it now pins the rejection.
  • For the same reason, a var row (@for (var item of …)) cannot shadow a component binding: it belongs to the component function and redeclares it. main's fix: respect template bindings in effect analysis #1671 template-binding tests used one; the shadowing case in auto-hook-deps.test.ts now pins the error in client and server modes, and the two Strong effect cases that relied on it are dropped. The const, let, bare and destructured row variants keep the shadowing coverage.

Binding fixes the new output surfaced

  • The formatter wraps multi-line JSX returns in parentheses. Core's type-only output then turns them into an IIFE whose diagnostics are mapped, where a bare return dropped them.
  • Three visx @ts-expect-error directives suppressed nothing on either toolchain. The old output hid that by joining each directive to its child's line, so they're removed.

CI follow-ups

  • Re-pin the integrity hashes that parity, closure, and adapted-evidence manifests record for fixtures the formatter rewrote. The pins only fix file content; the React parity lanes re-run the evidence against the new bytes. Historical benchmark result records are left unchanged.
  • Update the alien-signals mutation test's search text to the reformatted fixture.
  • Drop main's @tsrx/prettier-plugin 0.4.10 patch (fix(prettier): keep labeled statements and empty bodies when formatting .tsrx #1452): 0.5.2 prints labeled statements and empty bodies upstream. Its formatter test stays, with 0.5.2's output: do; while (a--); takes Prettier's own two-line layout, and an unknown node type still throws, now from Prettier's visitor keys.
  • Five Strong repair eval prompts (feat(evals): add the Strong mode repair task family #1493) quote their starter's compile error with its line:column. Formatting the starters moved those lines, so the prompts quote the new positions; every starter and workaround keeps the same Strong error, and verify-strong-repair-corpus.mjs --check passes.
  • One @tsrx/core patch remains, for build time (below). Earlier versions of this branch patched two fixes into core: a parenthesized const theme = (<style>…</style>);, the formatter's multi-line layout, resolving as a style apply target in the editor parse (octane-tsc and Volar reported TSRX3002 for valid themes), and printing source-phase imports (import source x from, import.source()), which compiled as evaluation-phase imports. @tsrx/core 0.5.5 ships both (fix(core): handle parenthesized <style> blocks and apply values in the editor like the build (#1044) tsrx-org/tsrx#1045, fix(core): keep the source phase of import source and import.source() in printed output (#1046) tsrx-org/tsrx#1048), so the patch is gone, along with main's 0.4.0 core and 0.4.10 prettier-plugin patches. volar.test.ts and module-import-phases.test.ts still guard both, and pass on unpatched 0.5.5.
  • Patch @tsrx/core 0.5.5 so that parsing a large module with few comments is no longer quadratic. Comment attachment ran includesBlankLine on the text from every node to the next comment. 0.5's version first copies that text through a line-break replace, while 0.4 tested a regex in place. The result is read only when that text is whitespace, so the patch tests onlyWhitespace first, which leaves the result unchanged. Nitro re-bundles each SSR chunk through Octane's Vite plugin, whose preflight parses it with @tsrx/core. After the latest merge of main, the website's production build spent over 7 minutes in that phase on the 5 MB docs chunk (8 m 9 s locally) and failed the integration suite's 420 s build limit. With the patch, the docs chunk parses in 0.7 s instead of minutes, and the 1.5 MB benchmarks chunk in 0.8 s instead of 185 s. A new compiler-vite-options.test.ts case transforms a 650 kB generated server chunk: 1.4 s with the patch, 12.6 s without it, against a 5 s bound.
  • The website pre-declares @octanejs/three > zustand/vanilla for the dev optimizer. The home page reaches it only through a deferred chunk, and with the new packages that late optimize pass rehashed chunks and forced a reload.

Reformat commit

  • Prettier merges consecutive {' '} children into one space, stock Prettier 3.9.9 included. The conformance fixture that tests three spaces keeps its form under prettier-ignore.
  • Scoped-style hashes derive from CSS text, so reindented <style> blocks get new hashes. One SSR snapshot changes by hash only.
  • The reformat invalidated some derived artifacts, which are refreshed: five source-ledger hashes of copied binding files, the Streamdown declarations, and the evals manifests.

TSRX 0.5 upgrade issues

Validation

  • @tsrx/core 0.5.4 and 0.5.5 updates and merges of main (through 483cd31):
    • Compile equivalence from 0.5.2 to 0.5.4: every tracked .tsrx (3,104 files) gives identical client, server and Volar output (9,312 outputs).
    • Compile equivalence from patched 0.5.4 to unpatched 0.5.5: every tracked .tsrx (3,183 files) gives identical client, server and Volar output (9,549 outputs).
    • The 43 .tsrx files main added or changed in the old layout are reformatted; their client and server output is identical once position-derived ids are masked.
    • pnpm format:check (repo-wide) and pnpm sync (clean).
    • The root octane-tsc chain (197 projects): 0 errors on a fresh --frozen-lockfile install.
    • packages:source:check, react-parity:validate, three:upstream:check, visx compile:check/types:check, streamdown types:check, shadcn:registry:check, ci:workflow:test, strong-repair:check, dropzone upstream:verify/test:u3-parity/test:u4-parity, and the base-ui source ledgers.
    • The octane Vitest project (22,239 tests): the 3 var row failures are fixed above; 21 timeouts under full-suite load pass in isolation (5 files, 313 tests).
  • Compile-equivalence sweep. Every tracked .tsrx (2,976 files) was compiled in client and server modes on main's toolchain and on this branch. On identical sources, output is unchanged except three @octanejs/base-ui files: they no longer pass '' children, matching React, and a new differential test pins it. Across the reformat, compiled ASTs match once position-derived ids, CSS indentation, and {' '} merges are masked. The one semantic change is reverted as noted above. Fixtures merged from main were checked the same way.
  • pnpm format:check
  • pnpm typecheck: all 132 leaf commands, run individually.
  • pnpm sync, plus the pnpm test prechecks (three:upstream:check, visx compile:check/types:check, streamdown types:check).
  • Vitest projects octane, octane-prod, pdf*, recharts*, visx*, streamdown*, i18next*, tanstack-query*, and livestore*: all pass. After the merge, four timing-sensitive tests timed out under concurrent machine load and passed in isolation.
  • pnpm packages:pack:check (125 tarballs), react-parity:validate, react-parity:test (1,040 passing), and the website integration project. The dev playground test passed when run alone.
  • After the oxc 0.18.0 upgrade: the octane project (652 files, 13,981 tests) and packages:pack:check (125 tarballs). After the latest merges of main: the octane project (670 files, 17,560 tests), ci:workflow:test (282), pnpm sync, and format checks on the changed files; fixtures merged from main compile identically before and after formatting, apart from position-derived ids.
  • Full pnpm test: left to CI.

New tests, each seen failing without its fix:

  • the enum-initializer client-only check for .tsrx;
  • the universal forbiddenGlobals enum scope (both halves);
  • the static script end tag;
  • the template @ts-expect-error in the editor output (Octane-authored and {/* */} forms);
  • Children.count over multi-line children (Octane counted 5, React 2).

Disabling @case flattening fails 15 existing @switch tests.

Performance: codegen is unchanged, so runtime and bundle size are too. adoptTemplateShape takes about 100 ms across the whole corpus, against about 1.8 s of native parsing and about 20 s of compiling. Whole-corpus compile time on a shared machine was within noise: 20.5, 24.9, and 19.8 s on this branch against 20.8, 18.9, and 20.3 s on main.

Risk / follow-ups

  • Upstream (tsrx): the comment-attachment fix above belongs in @tsrx/core, and the patch doesn't ship in Octane's tarball, so consumers on 0.5.x keep the quadratic parse until an upstream release has it. Octane's Vite plugin also preflight-parses every module, including Nitro's re-bundled SSR chunks.
  • Upstream (tsrx): core's type-only output maps diagnostics for a parenthesized JSX return (an IIFE) but drops them for a bare return (a block), and reports the former at a misplaced position.
  • @tsrx/oxc errors carry core's TS…/TSRX… codes, but their messages omit core's (line:column) suffix. Nothing here depends on the message text.
  • @tsrx/ripple and the Ripple benchmarks stay on their current pins.
  • The benchmark report shows compressed bundle sizes moving by a few bytes in both directions (largest +73 B brotli, prop-attributes), with every raw size unchanged. The runtime is untouched, and each of the 26 reformatted benchmark sources compiles to the same number of bytes as on main; only position-derived binding ids (b:…) differ, because reformatting moved the code they hash.

Provenance

  • An agent produced this diff (agent-authored)

🤖 Generated with Claude Code


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


Note

High Risk
Touches core compile/parsing semantics across the whole .tsrx corpus and upgrades multiple TSRX packages; incorrect adoption would change generated templates, switch arms, or JSX decoding for all consumers.

Overview
Upgrades the TSRX stack to @tsrx/core 0.5.5, @tsrx/oxc 0.18.0, and matching formatter/TypeScript plugins, and reformats thousands of .tsrx files to the new Prettier layout (multi-line JSX children, etc.) without changing compiled output except where noted below.

Octane’s compiler now runs adoptTemplateShape at the parse boundary so 0.5’s TSX-shaped trees still codegen the same way: layout-whitespace JSXText is dropped (fixing Children.count / empty-string children), and each template @case/@default arm is normalized to the statement-list shape switch fast paths expect. Parser parity with oxc is preserved; JSX text/attributes are decoded once by the parser, so Octane stops double-decoding and drops the entities dependency. Enum member initializers are included in client-only and forbiddenGlobals checks.

Tooling and CI: Lynx lanes and docs pin @tsrx/[email protected]; benchmark bundle budgets and integrity hashes are refreshed; compiler dependency lists drop entities. A local patch on @tsrx/core fixes quadratic comment attachment when parsing huge SSR chunks. Binding fixes address spread+ref errors surfaced by parenthesized multi-line JSX returns; three visx @ts-expect-error directives that no longer suppress anything are removed.

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

trueadm and others added 4 commits September 29, 2026 14:35
Update @tsrx/core, @tsrx/prettier-plugin and @tsrx/typescript-plugin to
0.5.0, @tsrx/react to 0.4.0, @tsrx/solid to 0.3.0, the Vite plugins,
@tsrx/oxc to 0.17.0 and Prettier to 3.9.9.

@tsrx/core 0.5 gives template markup TSX's exact tree: layout whitespace
between children is its own JSXText and each @case arm is one
BlockStatement. Octane now adopts that tree once at the parse boundary,
copy-on-write, so compiled output is unchanged; the editor parse keeps the
line breaks around a comment child so a template @ts-expect-error stays on
the line before the child it is about.

Also fix enum member initializers being invisible to the client-only
server check and to universal renderer validation (TSEnumBody), let
plain-module memo printing accept TSEnumBody, move tests to the new
diagnostic codes, and fix binding types the new editor output surfaced.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reformat every .tsrx and .mdx file with @tsrx/prettier-plugin 0.5.0, whose
new architecture prints ordinary JavaScript, TypeScript and JSX with
Prettier itself. Compiled output is unchanged apart from position-derived
ids, scoped-style hashes of reindented CSS, and merged `{' '}` text.

Refresh what the reformat invalidates: the source-ledger hashes of copied
binding files, the Streamdown TSRX declarations, and the evals dataset
manifests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent fix PR: bug fix labels Sep 29, 2026
@github-actions
github-actions Bot marked this pull request as draft September 29, 2026 13:43
trueadm and others added 3 commits September 29, 2026 16:17
- Re-pin the integrity hashes that parity, closure, and adapted-evidence
  manifests record for fixtures the formatter rewrote. The parity lanes
  re-run the evidence against the new bytes.
- Update the alien-signals mutation test to the reformatted fixture text.
- Give three's Canvas wrapper a spread type without `ref`, which the strict
  packed-source consumer reported under the new editor output.
- Pre-declare `octane > entities` for the website's dev optimizer: the
  in-browser compiler reaches it only at request time, and the late
  optimize pass now rehashes the playground's chunks and reloads.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The registry embeds each component's source, so the 0.5 reformat left it
stale for registry.test.ts's build --check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel

vercel Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

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

2 Skipped Deployments
Project Deployment Actions Updated
octane-website Skipped Skipped Sep 30, 2026 11:59am UTC
octane-website-mcp Skipped Skipped Sep 30, 2026 11:59am UTC

Request Review

@vercel
vercel Bot temporarily deployed to Preview – octane-website September 29, 2026 15:28 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp September 29, 2026 15:28 Inactive
@trueadm
trueadm marked this pull request as ready for review September 29, 2026 15:28

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Autofix Details

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Parentheses hide binding directive
    • Added unwrap() call in isDirective to peel ParenthesizedExpression before reading .value, so ('use dom bindings') is recognized the same as 'use dom bindings'.

Create PR

Or push these changes by commenting:

@cursor push 6e0de9e6e9
Preview (6e0de9e6e9)
diff --git a/packages/octane/src/compiler/dom-bindings.js b/packages/octane/src/compiler/dom-bindings.js
--- a/packages/octane/src/compiler/dom-bindings.js
+++ b/packages/octane/src/compiler/dom-bindings.js
@@ -212,7 +212,7 @@
 }
 
 function isDirective(node) {
-	return node?.type === 'ExpressionStatement' && node.expression?.value === DIRECTIVE;
+	return node?.type === 'ExpressionStatement' && unwrap(node.expression)?.value === DIRECTIVE;
 }
 
 function attrName(attr) {

You can send follow-ups to the cloud agent here.

@leonidaz

Copy link
Copy Markdown
Collaborator

make sure that all of these issues are addressed:

#1329, #1338, #1328, #1353, #1330, #1327, #1355, #1357, #1337, #1354

before merging.

@leonidaz leonidaz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure that all of these issues are addressed for tsrx 0.5 ugprade:

#1329, #1338, #1328, #1353, #1330, #1327, #1355, #1357, #1337, #1354

@leonidaz leonidaz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upgrade dependencies in pnpm-workspace.yaml based on this pr's description:

tsrx-org/tsrx#969

it fixes the bug with directive formatting.

trueadm and others added 3 commits September 29, 2026 18:46
@tsrx/core 0.5.1 (tsrx-org/tsrx#967, released in #969) reads the strings
that start a `@{ … }` function body as its directive prologue, so the
formatter no longer wraps `'use dom bindings'` in parentheses. Restore the
authored directives the 0.5.0 formatter had parenthesized.

Declare Octane's TSRX compiler for @octanejs/colorful: without it the
TypeScript plugin type-checked the package through the React target's
virtual code, whose composed refs its sources don't use.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Enum walk misses keys and shadows
    • Added an enum scope with member names to prevent false positives from shadowed identifiers, walk computed member keys to detect client-only bindings used as computed enum keys, and extended isReferenceIdentifier to treat non-computed TSEnumMember keys as non-references.

Create PR

Or push these changes by commenting:

@cursor push 0fa3008fd3
Preview (0fa3008fd3)
diff --git a/packages/octane/src/compiler/client-only-server.js b/packages/octane/src/compiler/client-only-server.js
--- a/packages/octane/src/compiler/client-only-server.js
+++ b/packages/octane/src/compiler/client-only-server.js
@@ -562,8 +562,20 @@
 		// smuggle a client-only binding into the server graph.
 		if (node.type === 'TSEnumDeclaration') {
 			if (node.declare !== true) {
-				for (const member of node.body?.members ?? [])
+				const members = node.body?.members ?? [];
+				const enumBindings = new Set();
+				if (node.id?.name) enumBindings.add(node.id.name);
+				for (const member of members) {
+					if (member.computed !== true && member.id?.type === 'Identifier') {
+						enumBindings.add(member.id.name);
+					}
+				}
+				scopes.push(enumBindings);
+				for (const member of members) {
+					if (member.computed === true) visit(member.id, member, 'id');
 					visit(member.initializer, member, 'initializer');
+				}
+				scopes.pop();
 			}
 			return;
 		}
@@ -744,6 +756,8 @@
 		return parent.computed === true || parent.shorthand === true;
 	}
 	if (parent.type === 'MethodDefinition' && key === 'key' && !parent.computed) return false;
+	if (parent.type === 'TSEnumMember' && (key === 'key' || key === 'id') && !parent.computed)
+		return false;
 	if (parent.type === 'LabeledStatement' && key === 'label') return false;
 	if (
 		(parent.type === 'BreakStatement' || parent.type === 'ContinueStatement') &&

You can send follow-ups to the cloud agent here.

Reviewed by Cursor Bugbot for commit 268166f. Configure here.

trueadm and others added 3 commits September 29, 2026 19:30
- Decode a JSX attribute string once, from its text as written (#1327).
  `@tsrx/core` gives `value` already decoded, so the browser compiler and
  Node's core fallback decoded `&amp;lt;` twice.
- Read a type parameter's name as the Identifier both parsers now give
  (#1354).
- Give the client-only check's enum walk its members' scope, so a later
  initializer reading a member is not a use of a same-named import.
- Test that the Node and browser parsers compile the same sources to the
  same output: attribute and text references, comments between template
  texts, `//` that touches text, `>` in text, layout text, an empty `@case`
  arm, type parameters, and the dynamic-tag rule (#1328, #1329, #1330,
  #1338, #1353, #1355).
- Pin the nested-`var` redeclaration in both compile modes and the editor,
  and keep a var of its own name covering hoisting (#1330).
- Count a comment child out of `Children.count`, as React does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The home page's 3D section reaches @octanejs/three's raw store source
through a deferred chunk, so Vite discovered zustand/vanilla mid-session.
With the new TSRX packages in the dev bundle, that late optimize pass
changes chunk hashes and reloads every open page, which reloaded the
playground under the website e2e suite's concurrent tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp September 29, 2026 18:54 Inactive
leonidaz and others added 3 commits October 4, 2026 15:25
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Takes the two brotli budget raises from #1727 so the test shards run before it lands on main; merging main after #1727 lands removes them from this pull request's diff.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
leonidaz added a commit that referenced this pull request Oct 4, 2026
PR #1399 reformats Octane's .tsrx sources with the new TSRX formatter. The compiled code is byte-identical in size, but position-derived binding ids change, and brotli compresses binding-apollo-client-vite 151 bytes and suspense-transition 64 bytes worse. That puts them 9 and 2 bytes over budget. Raise each to the #1399 measurement plus the usual 256 bytes of brotli headroom.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Adopt the TSRX releases from tsrx-org/tsrx#1042: @tsrx/core 0.5.5,
@tsrx/prettier-plugin and @tsrx/typescript-plugin 0.6.3, @tsrx/react 0.4.5,
@tsrx/solid 0.3.5, @tsrx/vite-plugin-react 0.0.120 and
@tsrx/vite-plugin-solid 0.0.117.

@tsrx/core 0.5.5 ships both fixes the repository patched in: a parenthesized
`<style>` block resolves as an `apply` target in the editor parse
(tsrx-org/tsrx#1045), and the printer keeps source-phase imports
(tsrx-org/tsrx#1048). The patch is removed; volar.test.ts and
module-import-phases.test.ts, which guarded it, pass without it, and every
tracked .tsrx file compiles to the same client, server and Volar output as on
the patched 0.5.4.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Conflicts:
- pnpm-lock.yaml: keep this branch's TSRX versions under main's
  @types/node 24.13.3 peer context. `pnpm install --lockfile-only`
  (pnpm 12.9.1) leaves the result unchanged.
- 87 react-parity manifests: lockfileSha256 regenerated for the merged
  lockfile (react-parity:lockfiles:generate).
- website BenchBars.tsrx and BenchmarkExplorer.tsrx: this branch only
  reformatted them, so take main's #1738 version and reformat it.
- user-apps-v1 manifest.jsonl: regenerated by pnpm sync.
- minimal-budgets.json: main re-baselined suspense-transition and
  binding-apollo-client-vite under the Oxc minifier (#1792), so this
  branch's earlier raises for the reformat are dropped.

Reformat the 16 .tsrx files main added or changed in the old layout.
Their client and server output is unchanged once position-derived ids
are masked, and all 51 .tsrx files main touched compile in both modes.

The reformat moves position-derived ids, which makes some bundles a few
bytes smaller than main's budgets allow under the ratchet, so tighten
them: context gzip -2, suspense-transition gzip -1, apollo esbuild
brotli -99, bindings total raw -12. The bindings app and total gzip are
set 27 bytes over the local measurement rather than 32, because CI has
measured that app's gzip 5 bytes below local.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
octane-website e4824f1 Commit Preview URL

Branch Preview URL
Oct 07 2026, 04:40 PM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
octane-website-mcp e4824f1 Commit Preview URL

Branch Preview URL
Oct 07 2026, 04:43 PM

trueadm and others added 8 commits October 7, 2026 00:14
The website integration suite failed: the production build ran past its
420 s limit in Nitro's environment build. Nitro re-bundles each SSR chunk
through Octane's Vite plugin, and its preflight parses each one with
@tsrx/core. For every node, core 0.5's comment attachment copied all the
code up to the next comment through a line-break replace, so the 5 MB
docs chunk, which has few comments, took minutes. Core 0.4 tested a regex
in place and was only just fast enough.

The blank-line result is read only when that text is whitespace, so test
`onlyWhitespace` first; the result is unchanged. Locally the Nitro phase
drops from 8 m 9 s to 5.5 s, and the whole website build from 543 s to
41 s. A compiler-vite-options case transforms a 650 kB generated server
chunk in 1.4 s, against 12.6 s unpatched.

Also drop the @pnpm/exe lockfile entries that installing through
`npx [email protected]` added in the previous merge, and regenerate the parity
manifests' and evals corpus' lockfile hashes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Conflicts:
- pnpm-lock.yaml: keep the patched @tsrx/core 0.5.5, and follow #1835
  moving @tsrx/oxc from octane's dependencies to its devDependencies, at
  this branch's catalog version 0.18.0. `pnpm install --lockfile-only`
  leaves the result unchanged.
- 87 react-parity manifests and the user-apps-v1 manifest: lockfile
  hashes regenerated by pnpm sync.

The new root-callback-local fixture is already in the new layout and
compiles in both modes. The minimal, app and JSX bundle budgets pass the
ratchet against main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Takes 35eb3c7, which installs the optional @tsrx/oxc parser peer in
both Lynx toolchain lanes. #1835 made it optional, and the Lynx
compatibility and packed rspeedy consumer jobs failed on main and here.
No conflicts; pnpm sync leaves the tree unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main's #1835 made @tsrx/oxc an optional peer of octane and pinned
0.16.0, main's catalog version, in both Lynx toolchain lanes (35eb3c7)
and in every install instruction. This branch's catalog is on 0.18.0, so
octane declares that peer, and installing the lanes failed with an unmet
@tsrx/oxc peer (installed 0.16.0, wanted 0.18.0) in Lynx compatibility,
the packed rspeedy consumer test, and validate publishable packages.

Pin 0.18.0 in the lanes and their README row, and in the READMEs, docs,
website pages and the two unreleased changesets that tell projects which
version to install.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Conflicts: the 87 react-parity manifests and the user-apps-v1 manifest
record the lockfile hash, which main changed by adding jsdom to the
codegen-size benchmark (#1840); pnpm sync regenerated them. The merged
lockfile needs no changes from `pnpm install --lockfile-only`.

The new anonymous-default-component fixture (#1842) is already in the
new layout and compiles in both modes; #1842's tests pass on this
branch's parser.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Conflicts:
- .changeset/optional-oxc-parser-peer.md: the octane 0.11.0 release
  (#1829) consumed it, with `@tsrx/[email protected]`, the peer that release
  declares. Take the deletion. This branch's tsrx-core-0-5 changeset now
  says octane declares `@tsrx/[email protected]` and that a project compiling
  Octane in Node upgrades its install from 0.16.0.
- user-apps-v1 manifest.jsonl: regenerated by pnpm sync for the new
  package versions and fixtures.

Reformat two .tsrx fixtures main added in the old layout
(named-const-function-expression, named-function-expression-arms). Their
client and server output is unchanged once position-derived ids are
masked. The four octane test files main changed pass on this branch
(205 tests).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Conflict: the user-apps-v1 manifest.jsonl, regenerated by pnpm sync for
the 0.11.1 package versions. The merge takes #1849 and the Version
Packages release (#1850); the Lynx-lanes changeset with the 0.18.0
parser pin stays unreleased. #1849's three Strong test files pass on
this branch (683 tests).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Conflict: the user-apps-v1 manifest.jsonl, regenerated by pnpm sync after
main re-cut the unpublished 0.11.x releases as octane 0.10.2. The
lockfile, budgets and parser pins are unaffected.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm and others added 2 commits October 7, 2026 21:13
Conflicts: app-budgets.json and minimal-budgets.json, where #1854 and
#1855 lowered the rows this branch had tightened. Take main's values,
then write this branch's measurements (`--write-budgets`) on the merged
tree, which only lowers: bindings app gzip and total raw, one app
brotli, and three minimal gzip rows. hydrate-frame stays at main's
364,882 raw. It measures 364,886 here and on main alike, and main's own
CI fails the same check, so the raise belongs in a budget-only change on
main, not in this PR.

#1852 stops the Vite plugin parsing modules it only passes through, such
as the SSR chunks Nitro re-bundles. The @tsrx/core patch still bounds
every module the plugin does compile, so its guard now transforms a
540 kB project module that uses a hook instead of a Nitro chunk: about
2 s patched, 20 s unpatched, against a 6 s bound. The patch note says
so.

Reformat main's new hydrate-frame fixture; its output is unchanged once
position-derived ids are masked. main's changed test files pass on this
branch (bundler-compiler, compiler-vite-options, behavior-root,
binding-handoff, style-transaction-rollback).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Conflicts: app-budgets.json and minimal-budgets.json. #1858 raised
budgets ahead of #1857 (in-place Block signal owners, still open), so
take its values in every conflicting row; lowering them here would undo
a raise #1857 depends on. That includes hydrate-frame (365,194 raw),
which clears the over-budget failure main had. This branch keeps its
lower bindings app gzip and one app brotli, rows #1858 left alone.

Until #1857 lands, the tight-budget check measures well under the raised
rows, so shard 1's "Verify every bundle budget" step is expected to fail
here, as on any PR in that window.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@trueadm
trueadm merged commit 21f911d into main Oct 7, 2026
11 of 25 checks passed
@trueadm
trueadm deleted the chore/tsrx-0.5 branch October 7, 2026 20:20
trueadm added a commit that referenced this pull request Oct 7, 2026
#1399, which this branch was stacked on, landed on main squashed, so
merging main again would conflict on every file #1399 changed after this
branch took it at bbea608. Resolve by taking main's tree and
re-applying this branch's own changes (bbea608..5274e65): the
octane-tsc split into native.mjs, the react-port type evidence on the
TypeScript 7 API, the typescript-native catalog alias, and base-ui's
native pristine lanes. All of them applied cleanly to main.

Generated files are rebuilt instead of merged:
- pnpm-lock.yaml: main's lockfile with this branch's catalog change.
  Every TypeScript 7.0.2 entry drops, and optional `typescript` peers
  resolve to 5.9.3 or 6.0.3 as before. Re-resolving styled-components
  under pnpm 12.9.1 also installs its optional css-to-react-native peer
  (with camelize and css-color-keywords).
- The parity manifests' lockfile hashes and the user-apps-v1 manifest,
  through pnpm sync.
- base-ui and base-ui-utils parity manifests: re-pin
  build-react-parity-manifest.mjs, which now holds main's and this
  branch's changes, and point the pristine lanes at typescript-native.

Checked: react-port tests (374), check-source-publication tests (19),
ci:workflow:test (372), typecheck:coverage, react-parity:validate,
packages:source:check, both base-ui pristine lanes on the nightly, and
octane-tsc on sample projects.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm added a commit that referenced this pull request Oct 7, 2026
#1858 raised 65 budgets ahead of #1857 (in-place Block signal owners), which
is still open: it is behind main, fails format:check under #1399's formatter,
and its own ratchet is off by 2 gzip bytes. Until it lands, every push to main
enforces the downward ratchet against those unfilled raises, so main
21f911d (#1399) failed test shard 1/4 at "Verify every bundle budget":
cli-spa-starter raw budget 101,976 must ratchet to 101,825.

Rewrite every budget with run-minimal.mjs and run.mjs --write-budgets on main
21f911d (measured + 32 raw/gzip, + 256 brotli): 65 lowerings, no raises,
the same 65 entries #1858 raised. #1857 re-lands its raise in a budget-only
change immediately before it merges.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment