Repository navigation
Version Packages - #1014
Merged
Merged
Version Packages#1014
Conversation
github-actions
Bot
force-pushed
the
changeset-release/main
branch
8 times, most recently
from
October 4, 2026 15:46
49a1f0b to
abc9d55
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
October 4, 2026 16:05
abc9d55 to
c6908e7
Compare
leonidaz
added a commit
to octanejs/octane
that referenced
this pull request
Oct 4, 2026
Adopt the TSRX releases from tsrx-org/tsrx#1014: @tsrx/core 0.5.4, @tsrx/prettier-plugin and @tsrx/typescript-plugin 0.6.2, @tsrx/react 0.4.4, @tsrx/solid 0.3.4, @tsrx/vite-plugin-react 0.0.119, @tsrx/vite-plugin-solid 0.0.116, and @tsrx/content-mapper 0.1.2, which moves into the default catalog. octane-tsc's TypeScript moves to a new `native` catalog. It stays on 7.1.0-dev.20260921.1: later nightlies, through 7.1.0-dev.20261004.1, report false TS7031 errors for a `{ ... } = {}` parameter default (microsoft/TypeScript#64431) in puck, redux-toolkit and an rspeedy test. Neither @tsrx/core patch is fixed upstream in 0.5.4, so the patch moves to the new version unchanged. Every tracked .tsrx file compiles to identical client, server and Volar output on 0.5.2 and 0.5.4, the formatter leaves the repository unchanged, and the parity pins record the new lockfile hash. Co-Authored-By: Claude Opus 5.5 <[email protected]>
9 of 10 tasks
trueadm
added a commit
to octanejs/octane
that referenced
this pull request
Oct 7, 2026
#1399) * fix: update the TSRX toolchain to @tsrx/core 0.5 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]> * style: format with the @tsrx/prettier-plugin 0.5 formatter 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]> * style: format fixtures merged from main with the 0.5 formatter Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix: re-pin reformatted evidence and fix CI after the TSRX 0.5 update - 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]> * chore(shadcn): rebuild the registry from the reformatted sources 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]> * fix: update to @tsrx/core 0.5.1 and keep `@{ … }` directives @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]> * Merge origin/main into chore/tsrx-0.5 Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix: address the TSRX 0.5 upgrade issues - 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 `&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]> * fix(website): pre-declare @octanejs/three's zustand/vanilla for dev 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]> * fix: update to @tsrx/core 0.5.2 and read JSX text as written @tsrx/core 0.5.2 (tsrx-org/tsrx#972, released in #973) gives a JSXText's `value` decoded, and `raw` as written. Octane decoded `value` again, so the browser compiler and Node's core fallback rendered `&lt;` as `<`. - normalizeAuthoredJsxLiterals cleans up and decodes text from `raw`, once, as it now does for attribute strings; both parsers leave comments out of `raw`, so the result doesn't depend on which one parsed (#1330). - Layout and emptiness checks on parser trees (hydrate and renderer boundaries, Valdi, DOM bindings) test JSX whitespace in `raw` instead of `\s` or `.trim()` on `value`, where a decoded ` ` looks like space. - The parser-parity test covers a double-encoded reference in text, text that is only ` `, an encoded line break at the end of a line, and CRLF line breaks. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(compiler): take decoded JSX text and attributes from the parser @tsrx/oxc 0.18.0 decodes character references in JSX text and attribute values as @tsrx/core 0.5.2 does, so both parsers give `value` decoded and `raw` as written. normalizeAuthoredJsxLiterals no longer decodes: it applies JSX's whitespace rule to the parser's value, as Babel does, and prints an attribute from its value when that differs from the string as written. Octane drops its `entities` dependency, the website's pre-bundle entry for it, and the benchmark scripts' evidence lookups of it. Decoding now follows JSX, as in React: a later HTML name such as `✓` stays text. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(markdown): restore main's crosswalk integrity pin lost in the merge #1448 changed packages/markdown/audit/adapted-case-crosswalk.json and re-pinned it in react-parity.json. The merge took this branch's side of that manifest for its lockfile hash and dropped the new pin, so the React parity audit rejected the manifest. Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore: update the TSRX toolchain to @tsrx/core 0.5.4 Adopt the TSRX releases from tsrx-org/tsrx#1014: @tsrx/core 0.5.4, @tsrx/prettier-plugin and @tsrx/typescript-plugin 0.6.2, @tsrx/react 0.4.4, @tsrx/solid 0.3.4, @tsrx/vite-plugin-react 0.0.119, @tsrx/vite-plugin-solid 0.0.116, and @tsrx/content-mapper 0.1.2, which moves into the default catalog. octane-tsc's TypeScript moves to a new `native` catalog. It stays on 7.1.0-dev.20260921.1: later nightlies, through 7.1.0-dev.20261004.1, report false TS7031 errors for a `{ ... } = {}` parameter default (microsoft/TypeScript#64431) in puck, redux-toolkit and an rspeedy test. Neither @tsrx/core patch is fixed upstream in 0.5.4, so the patch moves to the new version unchanged. Every tracked .tsrx file compiles to identical client, server and Volar output on 0.5.2 and 0.5.4, the formatter leaves the repository unchanged, and the parity pins record the new lockfile hash. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test: pin the var row redeclaration from main's template binding tests main's #1671 tests shadow a component binding with a `var` row (`@for (var item of …)`). Under @tsrx/core 0.5 and @tsrx/oxc 0.18 a `var` row belongs to the component function, as in JavaScript, so both parsers report it as a redeclaration instead of a row-scoped shadow. The shadowing case now pins that error in client and server modes, and the two Strong effect cases that relied on it are dropped; their `const`, `let`, bare and destructured row variants keep the shadowing coverage. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(bench): raise two brotli budgets for the TSRX 0.5 reformat 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]> * chore: update the TSRX toolchain to @tsrx/core 0.5.5 and drop its patch 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]> * fix: patch @tsrx/core 0.5.5's quadratic comment attachment 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]> * fix: pin the @tsrx/oxc parser peer at 0.18.0 in Lynx lanes and docs 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]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Leonidas <[email protected]>
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish 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
@tsrx/[email protected]
Patch Changes
[
885adfb,87dda2d,d2f42e8,7accf3c]:@tsrx/[email protected]
Patch Changes
[
885adfb,87dda2d,d2f42e8,7accf3c]:@tsrx/[email protected]
Patch Changes
[
885adfb,87dda2d,d2f42e8,7accf3c]:@tsrx/[email protected]
Patch Changes
[
885adfb,87dda2d,d2f42e8,7accf3c]:@tsrx/[email protected]
Patch Changes
[
885adfb,87dda2d,d2f42e8,7accf3c]:@tsrx/[email protected]
Patch Changes
[
885adfb,87dda2d,d2f42e8,7accf3c]:@tsrx/[email protected]
Patch Changes
@tsrx/[email protected]
Patch Changes
#1031
e806335Thanks @leonidaz! - Closing tags now keep a
$in the tag name. In VS Code with TypeScript 7, typing
<$Foo>inserted</>,and
<ui.$Item>inserted</ui.>. Now they insert</$Foo>and</ui.$Item>.The closing tag goes to VS Code as a snippet, and in a snippet
$Foois avariable that VS Code replaces with nothing. The server now escapes the closing
tag.
Closing tags in all editors also keep a
$or a non-ASCII letter after thefirst character of the tag name. Before,
<Foo$Bar>got</Foo>,<ui.$Item>got
</ui.>and<Café>got</Caf>.#1020
87c8835Thanks @leonidaz! - Tags now close in editors
other than VS Code. When you type the
>that ends an opening tag, the serveranswers on-type formatting (
textDocument/onTypeFormatting) with the closingtag:
<div>becomes<div></div>. Zed 1.17 or newer, Neovim and JetBrains IDEskeep the cursor between the tags. Before, only VS Code closed tags, and on-type
formatting for
>returned nothing.To turn closing tags off, set
tsrx.autoClosingTags.enabledtofalse. Aneditor that closes tags another way sets the new
closeTagsOnTypeinitialization option to
false. The server then offers no on-type formatting.The VS Code extension does this.
On the classic backend, the server no longer offers on-type formatting for
;,}and new lines. For.tsrxfiles, it returned nothing.#1015
495323eThanks @leonidaz! - The
typescript.tsdkstartupoption now also accepts the
typescriptpackage folder, such as/path/to/node_modules/typescript, not only itslibfolder. Before, theserver ignored the package folder without a message.
When the option names a folder that does not contain TypeScript, for example a
wrong path, the server now shows a warning. The warning names the folder, says
which TypeScript the server uses instead, and says how to set the option.
Before, the server showed nothing.
The warnings for no TypeScript and for TypeScript 7 now use shorter, plainer
sentences. They first say which features do not work, then why, then what to do.
Updated dependencies
[
885adfb,87dda2d,d2f42e8,7accf3c]:@tsrx/[email protected]
Patch Changes
[
885adfb,87dda2d,d2f42e8,7accf3c]:@tsrx/[email protected]
Patch Changes
[
885adfb,87dda2d,d2f42e8,7accf3c]:@tsrx/[email protected]
Patch Changes
[
885adfb,87dda2d,d2f42e8,7accf3c]:@tsrx/[email protected]
Patch Changes
[
885adfb,87dda2d,d2f42e8,7accf3c]:@tsrx/[email protected]
Patch Changes
[
885adfb,87dda2d,d2f42e8,7accf3c]:@tsrx/[email protected]
Patch Changes
#1036
885adfbThanks @leonidaz! - Comments now attach to the
same code whatever line breaks a file uses. Before, in a file with U+2028 or
U+2029 line breaks, a comment at the end of a line became a leading comment of
the code on the next line:
const a = 1 // noteledconst b = 2instead oftrailing
const a = 1. In a file with only CR line breaks, a comment betweentwo blank lines led the next statement, and a block comment over several lines
kept its indentation. Now CR, U+2028 and U+2029 end a line like LF and CRLF, as
in Prettier.
#1034
87dda2dThanks @everton-dgn! - Recognize Unicode line
and paragraph separators between setup statements and markup, and in directive
trivia, without changing authored text or offsets. End template line comments at
these separators and keep UTF-16 locations aligned after JSX text, including
lone carriage returns.
#1032
d2f42e8Thanks @leonidaz! - Organize Imports, Sort
Imports and Remove Unused Imports now change
.tsrxfiles in which acomment follows an import on the same line. As in a
.tsfile, the commentmoves with its import, and Remove Unused Imports removes it with its import.
Before, these actions did not change such a file. On TypeScript 7, they now also
work when spaces end the line of an import, but the imports must still end with
;(#1023).@tsrx/corenow exportsgetLineCommentsAfterandisOrganizedImport, so thata compiler with its own type-only printer can print these comments too.
#1022
7accf3cThanks @leonidaz! - On TypeScript 5.9 and 6,
Organize Imports, Sort Imports and Remove Unused Imports now change
.tsrxfiles. Before, they did nothing. The quick fix that removes an unusedimport, Fix All for unused imports, and the auto-import quick fix that adds
a new import line now work in
.tsrxfiles too.When an import does not end with
;, the warning for an unused import now showsin
.tsrxfiles on TypeScript 5.9 and 6. Before, it did not show.@tsrx/[email protected]
Patch Changes
[
885adfb,87dda2d,d2f42e8,7accf3c]:@tsrx/[email protected]
Patch Changes
[
885adfb,87dda2d,d2f42e8,7accf3c]:@tsrx/[email protected]
Patch Changes
[
885adfb,87dda2d,d2f42e8,7accf3c]:@tsrx/[email protected]
Patch Changes
[
885adfb,87dda2d,d2f42e8,7accf3c]:@tsrx/[email protected]
Patch Changes
[
885adfb,87dda2d,d2f42e8,7accf3c]:@tsrx/[email protected]
Patch Changes
[
885adfb,87dda2d,d2f42e8,7accf3c]:@tsrx/[email protected]
Patch Changes
[
885adfb,87dda2d,d2f42e8,7accf3c]:@tsrx/[email protected]
Patch Changes
#1022
7accf3cThanks @leonidaz! - On TypeScript 5.9 and 6,
Organize Imports, Sort Imports and Remove Unused Imports now change
.tsrxfiles. Before, they did nothing. The quick fix that removes an unusedimport, Fix All for unused imports, and the auto-import quick fix that adds
a new import line now work in
.tsrxfiles too.When an import does not end with
;, the warning for an unused import now showsin
.tsrxfiles on TypeScript 5.9 and 6. Before, it did not show.Updated dependencies []:
@tsrx/[email protected]
Patch Changes
[
885adfb,87dda2d,d2f42e8,7accf3c]:@tsrx/[email protected]
Patch Changes
[
885adfb,87dda2d,d2f42e8,7accf3c]:@tsrx/[email protected]
Patch Changes
[
885adfb,87dda2d,d2f42e8,7accf3c]:@tsrx/[email protected]
Patch Changes
[
885adfb,87dda2d,d2f42e8,7accf3c]:@tsrx/[email protected]
Patch Changes
[
885adfb,87dda2d,d2f42e8,7accf3c]:@tsrx/[email protected]
Patch Changes
#1020
87c8835Thanks @leonidaz! - Tags now close as you type.
When you type the
>that ends an opening tag, the TSRX language server insertsthe closing tag:
<div>becomes<div></div>, with the caret between the tags.JetBrains IDEs leave on-type formatting off for language servers, so the plugin
turns it on for the TSRX server only.
The plugin now needs an IntelliJ-based IDE 2026.1.4 or newer. Before, it needed
2025.2 or newer. 2026.1.4 is the first version with on-type formatting for
language servers and with the renamed LSP API, which the plugin now uses
(
LspIntegrationProvider,ProjectWideLspClientDescriptor,LspClientManager).#1012
9f04e81Thanks @leonidaz! - New setting: Settings →
Languages & Frameworks → TSRX → TypeScript lib folder. Set it to the
libfolder of a TypeScript installation, and the TSRX language server runs that
TypeScript. For example, use TypeScript 6 when the project is on TypeScript 7. A
relative path starts at the project folder. When you change the setting, the
language server restarts. Leave it empty to use the project's
typescript, asbefore.
Updated dependencies
[
e806335,87c8835,495323e]:@tsrx/[email protected]
Patch Changes
#1022
7accf3cThanks @leonidaz! - On TypeScript 5.9 and 6,
Organize Imports, Sort Imports and Remove Unused Imports now change
.tsrxfiles. Before, they did nothing. The quick fix that removes an unusedimport, Fix All for unused imports, and the auto-import quick fix that adds
a new import line now work in
.tsrxfiles too.When an import does not end with
;, the warning for an unused import now showsin
.tsrxfiles on TypeScript 5.9 and 6. Before, it did not show.Updated dependencies
[
e806335,87c8835,495323e,7accf3c]:@tsrx/[email protected]
Patch Changes
[
e806335,87c8835,495323e]:Note
Low Risk
The PR is mechanical versioning and changelog updates; functional risk lives in the already-merged patches (compiler line breaks, import refactors, LSP/IDE behavior), which are user-visible but scoped as patch releases.
Overview
This Changesets release PR finalizes a coordinated patch rollout: it removes the consumed
.changesetentries, bumpspackage.jsonversions across the monorepo, and adds CHANGELOG sections for what already landed on main—there is no new application source in the diff itself.The release centers on
@tsrx/[email protected]: Unicode/CR line-break handling for comments and trivia, import-organize/remove-unused behavior for.tsrx(including same-line import comments), plus new exportsgetLineCommentsAfterandisOrganizedImport. Downstream compiler targets and build plugins mostly pick up that core bump via dependency updates.Editor/tooling gets
@tsrx/[email protected](auto-closing tags via on-type formatting outside VS Code,$/non-ASCII-safe closing tag names, clearertypescript.tsdkhandling and warnings),@tsrx/[email protected](on-type closing tags, optional TypeScriptlibfolder setting, minimum IDE 2026.1.4, updated LSP integration APIs), and bumps for VS Code, Zed (pinned Tree-sitter grammar rev + language-server 0.6.2), and@tsrx/[email protected](organize/sort/remove-unused imports and related quick fixes on TS 5.9/6 for.tsrx).Reviewed by Cursor Bugbot for commit c6908e7. Bugbot is set up for automated code reviews on this repo. Configure here.