Skip to content

refactor: remove array_slice, iterable_array_from, and buildFallback - #113

Merged
leonidaz merged 1 commit into
mainfrom
remove-unused-language-helpers
Sep 14, 2026
Merged

leonidaz merged 1 commit into
mainfrom
remove-unused-language-helpers

Conversation

@leonidaz

@leonidaz leonidaz commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

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 extractPaths lowering:

  • array_slice and iterable_array_from from @tsrx/runtime (and their @tsrx/core/runtime/language-helpers re-exports), together with the private to_length / copy_from_offset / array_from_index / array_like_from_index / is_indexed_iterable helpers that only served iterable_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: minor for @tsrx/runtime and @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: clean
  • pnpm 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/runtime and @tsrx/core could 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 extractPaths lowering: array_slice and iterable_array_from from @tsrx/runtime (and their type declarations / @tsrx/core re-exports), plus the buildFallback AST helper that emitted _$_.fallback.

The large iterable_array_from implementation and its private helpers are deleted from language-helpers.js; dedicated runtime and type-check tests for those helpers go away. @tsrx/core no longer exports buildFallback.

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/runtime and @tsrx/core.

Reviewed by Cursor Bugbot for commit f07ef37. Bugbot is set up for automated code reviews on this repo. Configure here.

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]>
@vercel

vercel Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
tsrx-website Ready Ready Preview Sep 14, 2026 11:50pm UTC
tsrx-website-mcp Ready Ready Preview Sep 14, 2026 11:50pm UTC

Request Review

@leonidaz
leonidaz merged commit 79c1359 into main Sep 14, 2026
11 checks passed
@leonidaz
leonidaz deleted the remove-unused-language-helpers branch September 14, 2026 23:55
@github-actions github-actions Bot mentioned this pull request Sep 14, 2026

This branch was successfully deployed

2 active deployments
Preview – tsrx-website — f07ef374 Deployed Sep 14, 2026 by vercel[bot]
Preview – tsrx-website-mcp — f07ef374 Deployed Sep 14, 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