Skip to content

experiments: sibling polyengine modules from JSR - #86

Merged
lann merged 1 commit into
mainfrom
experiments-jsr
Aug 22, 2026
Merged

experiments: sibling polyengine modules from JSR#86
lann merged 1 commit into
mainfrom
experiments-jsr

Conversation

@lannbot

@lannbot lannbot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Completes the .deps retirement (#84): the experiments' three sibling-module imports — the last .deps references in the tree — move to the published JSR packages, now that the 0.3.0 @polymorph line is out.

  • bridge.ts@polymorph/websocket@0.3.0; webrtc-bridge.ts and ping-demo's overlay.ts@polymorph/webrtc-datachannels@0.3.0. Both packages' root exports are exactly the modules the deep imports named.
  • Exact pins in the shared experiments config, matching its @polyengine convention (host-polyengine keeps carets as a published package).
  • The manual npm mappings (node-datachannel, werift) leave the import map: nothing first-party imports those bare specifiers anymore, and @polymorph/webrtc-datachannels' own manifest carries them at the same versions (0.32.3 / 0.22.2 — no graph motion). deno bundle --external matches the raw specifiers without map entries, verified by the ping-demo build.
  • jsr:@polymorph/* joins the minimumDependencyAge exclude so same-day publishes resolve, mirroring host-polyengine.
  • Lock regenerated: one @polyengine/runtime@0.3.0 across the graph (the module-identity constraint the config's contract comment states), npm deps now transitive via the JSR packages.

Gates (all green locally): deno task check in the spike host plus explicit checks of the ping-demo and iroh-blobs entries against the shared config; ./experiments/ping-demo/build.sh (translate + browser bundle with externals); just exam-polyengine (identity gate, one resolved 0.3.0 across both locks, 7/7 scenarios); just iroh-relay-ws end to end (relay echo → WebRTC migration → data-channel echo, clean teardown); rg '\.deps' zero hits repo-wide.

Fixes #83

The last .deps references go: the experiments' webrtc and websocket
host-module imports move to the published @PolyMorph JSR packages,
exact-pinned at 0.3.0 per the experiments' pin convention. The manual
npm mappings (node-datachannel, werift) leave the shared config — the
webrtc module's npm dependencies arrive through
@polymorph/webrtc-datachannels' own manifest at the same versions, and
browser builds externalize them as before. @PolyMorph joins @PolyEngine
in the minimumDependencyAge exclude so same-day publishes resolve.

Gates: deno checks clean across all three experiments' graphs;
ping-demo build.sh bundles with the externals; exam-polyengine 7/7 with
one resolved @PolyEngine 0.3.0 across both locks; the iroh-relay-ws
spike passes end to end (relay echo, migration, data-channel echo).
rg '\.deps' is zero repo-wide.

Fixes #83
@lann
lann enabled auto-merge August 22, 2026 04:38
@lann
lann merged commit 8bbf295 into main Aug 22, 2026
1 check passed
@lann
lann deleted the experiments-jsr branch August 22, 2026 04:41
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.

experiments: consume sibling deltic modules via JSR instead of .deps checkouts

2 participants