Repository navigation
refactor: remove array_slice, iterable_array_from, and buildFallback - #113
Merged
Merged
Conversation
These helpers only backed lazy destructuring and the `extractPaths` lowering, both removed in #110. Their last consumer, the Ripple compiler, now lowers rest and default patterns with native destructuring (Ripple-TS/ripple#1472), so nothing emits or imports them any more. Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Merged
This was referenced Sep 25, 2026
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.
Follow-up to #110 (remove lazy destructuring) and the Ripple side in Ripple-TS/ripple#1472.
Removes the last language helpers that existed only for lazy destructuring and the
extractPathslowering:array_sliceanditerable_array_fromfrom@tsrx/runtime(and their@tsrx/core/runtime/language-helpersre-exports), together with the privateto_length/copy_from_offset/array_from_index/array_like_from_index/is_indexed_iterablehelpers that only servediterable_array_from.buildFallback(build_fallback) from@tsrx/core, which emitted the Ripple runtime name_$_.fallback.Their only consumer, the Ripple compiler, now lowers rest and default patterns with native destructuring (Ripple-TS/ripple#1472), and Ripple's runtime no longer imports
array_slice. Nothing in this repository referenced them outside their own tests, which are deleted.Changeset:
minorfor@tsrx/runtimeand@tsrx/core, matching the pending lazy-destructuring changesets.Validation
pnpm test: 93 files, 3841 passed, 33 skipped (pre-existing conditional skips)pnpm typecheck,pnpm changeset:check: cleanpnpm format:check: the changed files are clean; the remaining warnings are the gitignored IntelliJ sandbox artifacts noted in feat: remove lazy destructuring (RFC #106) #110🤖 Generated with Claude Code
Note
Medium Risk
Public API removals on
@tsrx/runtimeand@tsrx/corecould break downstream packages that still import the deleted helpers; in-repo usage is already gone.Overview
Removes dead compiler/runtime surface left over from lazy destructuring and
extractPathslowering:array_sliceanditerable_array_fromfrom@tsrx/runtime(and their type declarations /@tsrx/corere-exports), plus thebuildFallbackAST helper that emitted_$_.fallback.The large
iterable_array_fromimplementation and its private helpers are deleted fromlanguage-helpers.js; dedicated runtime and type-check tests for those helpers go away.@tsrx/coreno longer exportsbuildFallback.Ripple now handles rest/default patterns with native destructuring, so nothing in this repo still depends on these APIs. Changeset marks minor bumps for
@tsrx/runtimeand@tsrx/core.Reviewed by Cursor Bugbot for commit f07ef37. Bugbot is set up for automated code reviews on this repo. Configure here.