Skip to content

Version Packages - #10

Merged
leonidaz merged 1 commit into
mainfrom
changeset-release/main
Aug 27, 2026
Merged

leonidaz merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

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

@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

@tsrx/[email protected]

Patch Changes

@tsrx/[email protected]

Patch Changes

@tsrx/[email protected]

Patch Changes

  • #11
    decbe8f
    Thanks @leonidaz! - Allow lazy binding patterns
    anywhere a destructuring pattern is valid: nested inside destructuring
    assignment targets ([&{ name }] = pairs) and as for–of / for–in /
    @for loop targets (@for (&{ label } of items)). Lazy patterns in plain
    expression positions now report a descriptive error instead of a generic
    unexpected-token failure.

  • #9
    cab7e94
    Thanks @ryansolid! - Support lazy object and
    array binding patterns in synchronous and asynchronous arrow function
    parameters.

@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

@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

@tsrx/[email protected]

Patch Changes

@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/@for loop 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-positions and support-lazy-arrow-parameters are 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.

@vercel

vercel Bot commented Aug 27, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
tsrx-website Ready Ready Preview Aug 27, 2026 4:35pm
tsrx-website-mcp Ready Ready Preview Aug 27, 2026 4:35pm

Request Review

@github-actions
github-actions Bot force-pushed the changeset-release/main branch from ce8bf89 to d142ea8 Compare August 27, 2026 16:34
@leonidaz
leonidaz merged commit be4f23a into main Aug 27, 2026
2 checks passed
@leonidaz
leonidaz deleted the changeset-release/main branch August 27, 2026 16:39
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 `&check;` (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
  (" &check; "). 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;amp;` (value `&amp;`) still prints one literal.
- `&#8232;`, `&#8233;` and `&#xFEFF;` 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
`&#10;` 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,
`&lang;`, 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;`,
`&copy` without a semicolon, `&#X41;`), 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 `&check;` (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
  (" &check; "). 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;amp;` (value `&amp;`) still prints one literal.
- `&#8232;`, `&#8233;` and `&#xFEFF;` 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 `&#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

This branch was successfully deployed

2 active deployments
Preview – tsrx-website — d142ea81 Deployed Aug 27, 2026 by vercel[bot]
Preview – tsrx-website-mcp — d142ea81 Deployed Aug 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant