Repository navigation
Version Packages - #10
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
August 27, 2026 16:34
ce8bf89 to
d142ea8
Compare
leonidaz
added a commit
that referenced
this pull request
Sep 29, 2026
… `raw` where the text as written counts (#710) (#972) The parser now gives a JSXText node's `value` its character references decoded, and CRLF line breaks as LF, as acorn's JSX parser does; `raw` stays the text as written. Printers already printed `raw`. The checks that decide whether text renders nothing (layout whitespace, empty fragments, Solid's children, CSS sibling pruning, the formatter's hugged `@{ … }` block) now read `raw` too, so text that is only ` ` or ` ` is still text. Compiled and formatted output is unchanged. Co-authored-by: Claude Opus 5.5 <[email protected]>
jonkwheeler
added a commit
to jonkwheeler/tsrx
that referenced
this pull request
Nov 19, 2026
… on Solid, Vue or in the printed source An independent review of the one-literal rule for an element's only text (tsrx-org#1368) found two more texts where the literal changes what was rendered: - A named reference the parser doesn't decode, such as `✓` (the review counted 1,476 HTML names of up to eight letters and digits that the parser's XHTML table lacks): Solid's and Vue's HTML templates read it in the split text (" ✓ "), while the literal keeps it as written (" ✓ "). only_text_value now keeps the split when the parser left a `&name;` in the text undecoded. names_all_decoded finds that in one pass over the text and its value, following each reference to where it went, so `&amp;` (value `&`) still prints one literal. - `
`, `
` and `` decode to U+2028, U+2029 and U+FEFF, which the literal prints as is. JavaScript reads the first two as line breaks where the source map doesn't, so positions after them are off. They join the control characters that keep the split. The changeset also names the SWC change the review found: SWC trimmed a line feed written as `&tsrx-org#10;` at the edge of the split text, and the literal keeps it, as TypeScript, esbuild and oxc do. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FRKmwAwuyPbGQ1ejNqiJ46
jonkwheeler
added a commit
that referenced
this pull request
Nov 19, 2026
…s one literal (#1381) * fix(core, solid): print an element's only text with edge whitespace as one literal The spaces and tabs at the edges of an element's text print as `{' '}` (#1277), so an element whose only child was ` a ` got three children: `<textarea>{' '}a{' '}</textarea>`. React's `<textarea>` throws for more than one child, `<title>` renders empty, a `<pre>` loses a leading ` ` in SSR, and a component whose `children` is typed `string` gets something else, which TypeScript reports as TS2322 in the editor (#1368). An element's only text with a space or tab at an edge now prints as one literal of its value, `<textarea>{' a '}</textarea>`. wrapEdgeWhitespace takes a second argument that says the children are an element's, which the element paths pass (core's create_element_children and lower_static_jsx, Solid's create_element_children). A fragment's only text keeps the split, so the fragment stays, and so does text beside other children. only_text_value gives the parser's value, which is how TypeScript, esbuild and oxc read such a text for React, Preact and Hono. Solid's and Vue's compilers read some of these texts differently (a whitespace run, `⟨`, a decoded line feed) and now render the literal as written. The split stays for a text where the literal could differ from that reading: one that spans lines or holds whitespace other than spaces and tabs (vue-jsx-vapor keeps a text's lines, Solid's compiler turns a non-breaking space into a space and drops a CR), a character reference the parser leaves as written or decodes where they don't (`&#+65;`, `©` without a semicolon, `A`), and a reference to a control character or a lone surrogate. The container gets the text's location. segments.js maps the text to the container that prints the literal where the text's start maps (it can also map to the `return` a template body adds), so a type error on the literal shows at the text, and maps an `@` that starts the text into the literal for directive completions, as it does for JSX text. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FRKmwAwuyPbGQ1ejNqiJ46 * fix(core): keep the split for an only text whose literal would differ on Solid, Vue or in the printed source An independent review of the one-literal rule for an element's only text (#1368) found two more texts where the literal changes what was rendered: - A named reference the parser doesn't decode, such as `✓` (the review counted 1,476 HTML names of up to eight letters and digits that the parser's XHTML table lacks): Solid's and Vue's HTML templates read it in the split text (" ✓ "), while the literal keeps it as written (" ✓ "). only_text_value now keeps the split when the parser left a `&name;` in the text undecoded. names_all_decoded finds that in one pass over the text and its value, following each reference to where it went, so `&amp;` (value `&`) still prints one literal. - `
`, `
` and `` decode to U+2028, U+2029 and U+FEFF, which the literal prints as is. JavaScript reads the first two as line breaks where the source map doesn't, so positions after them are off. They join the control characters that keep the split. The changeset also names the SWC change the review found: SWC trimmed a line feed written as ` ` at the edge of the split text, and the literal keeps it, as TypeScript, esbuild and oxc do. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FRKmwAwuyPbGQ1ejNqiJ46
This branch was successfully 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.
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
@tsrx/[email protected]
Patch Changes
@tsrx/[email protected]
Patch Changes
@tsrx/[email protected]
Patch Changes
@tsrx/[email protected]
Patch Changes
[
decbe8f,cab7e94]:@tsrx/[email protected]
Patch Changes
@tsrx/[email protected]
Patch Changes
[
decbe8f,cab7e94]:@tsrx/[email protected]
Patch Changes
[
decbe8f,cab7e94]:@tsrx/[email protected]
Patch Changes
@tsrx/[email protected]
Patch Changes
@tsrx/[email protected]
Patch Changes
@tsrx/[email protected]
Patch Changes
@tsrx/[email protected]
Patch Changes
#11
decbe8fThanks @leonidaz! - Allow lazy binding patterns
anywhere a destructuring pattern is valid: nested inside destructuring
assignment targets (
[&{ name }] = pairs) and asfor–of/for–in/@forloop targets (@for (&{ label } of items)). Lazy patterns in plainexpression positions now report a descriptive error instead of a generic
unexpected-token failure.
#9
cab7e94Thanks @ryansolid! - Support lazy object and
array binding patterns in synchronous and asynchronous arrow function
parameters.
@tsrx/[email protected]
Patch Changes
[
decbe8f,cab7e94]:@tsrx/[email protected]
Patch Changes
[
decbe8f,cab7e94]:@tsrx/[email protected]
Patch Changes
[
decbe8f,cab7e94]:@tsrx/[email protected]
Patch Changes
[
decbe8f,cab7e94]:@tsrx/[email protected]
Patch Changes
[
decbe8f,cab7e94]:@tsrx/[email protected]
Patch Changes
@tsrx/[email protected]
Patch Changes
@tsrx/[email protected]
Patch Changes
[
decbe8f,cab7e94]:@tsrx/[email protected]
Patch Changes
[
decbe8f,cab7e94]:@tsrx/[email protected]
Patch Changes
[
decbe8f,cab7e94]:@tsrx/[email protected]
Patch Changes
[
decbe8f,cab7e94]:@tsrx/[email protected]
Patch Changes
Note
Low Risk
This PR is release metadata only (versions, changelogs, dependency pins); functional risk comes from publishing already-merged parser changes when the release is merged.
Overview
Automated Changesets release that bumps versions and changelogs across the monorepo; it does not add new compiler source in this diff.
The release ships
@tsrx/[email protected]with two patch notes already merged on main: lazy binding patterns (&{}/&[]) in more destructuring contexts (nested assignment targets,for/@forloop bindings, clearer errors in invalid expression positions), and lazy patterns in sync/async arrow function parameters. Renderer packages (@tsrx/react, preact, solid, vue), tooling (eslint-parser, prettier, language-server, typescript-plugin, MCP), and build plugins (Vite, Bun, Rspack, Turbopack) are patch-bumped to depend on the new core.Consumed changeset files
lazy-binding-pattern-positionsandsupport-lazy-arrow-parametersare removed from.changeset/. The Zed extension config pins@tsrx/[email protected].Reviewed by Cursor Bugbot for commit d142ea8. Bugbot is set up for automated code reviews on this repo. Configure here.