Repository navigation
Version Packages - #218
Merged
Merged
Version Packages#218
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
September 23, 2026 23:59
adfd6df to
6a667cc
Compare
This was referenced Sep 24, 2026
leonidaz
added a commit
to Ripple-TS/ripple
that referenced
this pull request
Sep 24, 2026
* fix: update TSRX and give each @switch arm its own block Update the shared TSRX packages to the release in tsrx-org/tsrx#218, including @tsrx/core 0.3.2, where each @switch arm is its own block scope (tsrx-org/tsrx#148). The client output already renders each arm in its own function, but the server transform and the to_ts paths emit arm bodies inside a JS switch, whose cases share one lexical scope, so two arms declaring the same local produced invalid JS or TS2451. Wrap an arm in its own block when it declares a block-scoped name, and look up the arm scope on the SwitchCase node, where core now stores it. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tsrx-ripple): read a value-position @switch arm's scope from its SwitchCase The value-position @switch lowering in to_ts still looked up each arm's scope on `sc.consequent`, an array that never has one, so the arm was transformed under the enclosing scope. Core stores the arm scope on the SwitchCase node, as the other arm lowerings already read it. `branch_returning_body` also uses its scope node as the location of the returned value. An arm has no block node, so pass no location and keep the arm's value unlocated, as before. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
trueadm
pushed a commit
to octanejs/octane
that referenced
this pull request
Sep 24, 2026
* fix: update the TSRX toolchain to @tsrx/core 0.3.2 Update the shared TSRX packages to the release in tsrx-org/tsrx#218 and drop the @tsrx/[email protected] patch, which core 0.3.0 ships (tsrx-org/tsrx#143). Core now gives each @switch arm its own block scope, so arms may declare the same local and an arm's `apply` resolves to its own style block. Core lowers a @for whose body awaits to `__map_iterable_async` in the editor's virtual TSX: - Re-export `map_iterable_async` from `octane/tsrx-iterable` and require it in verify-dist, so the helper import resolves and the loop binding keeps its type (#1291). - Claim `__map_iterable_async` as a @for origin, so type inspection resolves the keyword instead of the whole loop (#1292). Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(drei): cast state.controls through unknown, as upstream does tsrx-tsc from @tsrx/typescript-plugin 0.4.10 now maps the TS2352 that TypeScript reports for a direct cast from `EventDispatcher<{}> | null` to `ControlsProto | undefined` or `{ enabled: boolean } | undefined`, so the drei adapted-types parity lane failed. Upstream drei casts through `unknown` at each of these sites; the port had dropped that step. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
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
[
c426225]:@tsrx/[email protected]
Patch Changes
[
c426225]:@tsrx/[email protected]
Patch Changes
[
c426225]:@tsrx/[email protected]
Patch Changes
[
c426225]:@tsrx/[email protected]
Patch Changes
[
c426225]:@tsrx/[email protected]
Patch Changes
[
c426225]:@tsrx/[email protected]
Patch Changes
@tsrx/[email protected]
Patch Changes
[
c426225]:@tsrx/[email protected]
Patch Changes
#214
e34902aThanks @leonidaz! - Keep
staticand thetrailing
;on class index signatures (static [key: string]: number;) whenformatting TSRX files. Previously
staticwas dropped, which moved thesignature from the class to its instances, and the missing
;ran the signatureinto the next member on the same line, leaving code that no longer parsed.
#214
e34902aThanks @leonidaz! - Keep class members apart when
formatting TSRX files with
semi: false. A short class no longer collapses ontoone line when a field, index signature, or bodiless method is followed by
another member, so
class A { x = 1; y = 2 }no longer becomes the invalidclass A { x = 1 y = 2 }. A field also keeps its;when the next member wouldotherwise continue it: before a computed member, an index signature, a generator
method, or a member named
inorinstanceof, and after a barestatic,get, orsetfield. Previouslyx = a;followed by[k] = 1;came back asx = a/[k] = 1, which reads asx = a[k] = 1.Updated dependencies
[
c426225]:@tsrx/[email protected]
Patch Changes
[
c426225]:@tsrx/[email protected]
Patch Changes
[
c426225]:@tsrx/[email protected]
Patch Changes
[
c426225]:@tsrx/[email protected]
Patch Changes
[
c426225]:@tsrx/[email protected]
Patch Changes
c426225Thanks @leonidaz! -
tsrx-tscand the editor nowreport missing-return errors on functions and methods with a primitive return
type, such as
value(): number {}failing with TS2355. TypeScript reports theseerrors on the return type, but the source-mapping walker never mapped primitive
type keywords (
number,string,this, and the rest), so Volar dropped them.A method in a file with no
functionorasynckeyword also no longer gets astray mapping that treated its opening
(as afunctionkeyword.@tsrx/[email protected]
Patch Changes
[
c426225]:@tsrx/[email protected]
Patch Changes
[
e34902a,e34902a,c426225]:@tsrx/[email protected]
Patch Changes
[
c426225]:@tsrx/[email protected]
Patch Changes
[
c426225]:@tsrx/[email protected]
Patch Changes
[
c426225]:@tsrx/[email protected]
Patch Changes
[
c426225]:@tsrx/[email protected]
Patch Changes
[
c426225]:@tsrx/[email protected]
Patch Changes
@tsrx/[email protected]
Patch Changes
[
c426225]:@tsrx/[email protected]
Patch Changes
[
c426225]:@tsrx/[email protected]
Patch Changes
[
c426225]:@tsrx/[email protected]
Patch Changes
[
c426225]:@tsrx/[email protected]
Patch Changes
[
c426225]:@tsrx/[email protected]
Patch Changes
Note
Low Risk
Release metadata and version bumps only; user-facing fixes were already landed in prior PRs and are low-risk editor/formatting diagnostics changes.
Overview
This is a Changesets “Version Packages” release PR: it removes the three consumed changeset files and bumps versions across the monorepo so npm can publish.
@tsrx/[email protected] ships the tooling fix from #217:
tsrx-tscand the editor now surface TS2355 missing-return diagnostics on functions/methods with primitive return types, by mapping primitive type keywords in the source walker and dropping a strayfunction-keyword mapping on methods in files withoutfunction/async.@tsrx/[email protected] ships #214: formatting keeps
staticand trailing;on class index signatures, and withsemi: falseavoids collapsing or merging class members in ways that produced invalid or ambiguous output.Every other touched package is a patch bump with changelog entries that only record updated workspace dependencies (Bun/Vite/Rspack plugins, language server, VS Code/Zed pins, etc.).
Reviewed by Cursor Bugbot for commit 6a667cc. Bugbot is set up for automated code reviews on this repo. Configure here.