Skip to content

chore: remove the isomorphic (iso) layer - #3

Merged
FRSgit merged 1 commit into
mainfrom
chore/remove-iso-layer
Oct 7, 2026
Merged

FRSgit merged 1 commit into
mainfrom
chore/remove-iso-layer

Conversation

@FRSgit

@FRSgit FRSgit commented Oct 7, 2026

Copy link
Copy Markdown
Member

Why

The /iso entry was upstream's experiment for sharing one TypeScript frontend with a native host: csrc/flat.cpp (fixed 16384-slot tables, single world), src/frontend.ts built with a tsc --ignoreConfig hack, and a v0 surface (world, body, box, sphere). Nothing outside this repo's own test consumed it, and it leaked the _b3f_* exports into the generated declarations.

This is the first step of the binding rewrite (flat C ABI + TypeScript frontend) tracked for 1.0; removing the dead layer first keeps that PR focused.

What

  • Delete csrc/flat.cpp, src/frontend.ts, src/backend.d.ts, src/backend-wasm.mjs, src/iso.mjs, test/iso.test.mjs.
  • Drop the ./iso export, the frontend build step in scripts/build.sh and the README section.

Breaking: @frsource/box3d-wasm/iso no longer exists (no known importers).

Verification

  • pnpm build from a clean dist/ (both flavours), dist/box3d.d.ts contains no _b3f_* exports.
  • pnpm test: 23 passing.
  • pnpm lint clean.

🤖 Generated with Claude Code

The /iso entry was upstream's experiment for sharing one TypeScript
frontend with a native host (scriptc-game): csrc/flat.cpp with fixed
16384-slot tables and a single-world assumption, src/frontend.ts built
with a tsc --ignoreConfig hack, and a v0 surface (world, body, box,
sphere) that nothing outside the repo's own test consumed. It also leaked
the _b3f_* exports into the generated declarations.

The fork's public API is the embind surface (soon a flat C ABI with its
own TypeScript frontend), so the layer is dropped: files, the ./iso
package export, the build step and the README section.

BREAKING CHANGE: the `@frsource/box3d-wasm/iso` entry no longer exists.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@FRSgit
FRSgit marked this pull request as ready for review October 7, 2026 20:07
@FRSgit
FRSgit merged commit 670683f into main Oct 7, 2026
3 checks passed
@FRSgit
FRSgit deleted the chore/remove-iso-layer branch October 7, 2026 20:07
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