Skip to content

browser-driver: layout-agnostic self-mount; 0.1.1 - #97

Merged
lannbot merged 1 commit into
mainfrom
browser-driver-layout
Aug 17, 2026
Merged

browser-driver: layout-agnostic self-mount; 0.1.1#97
lannbot merged 1 commit into
mainfrom
browser-driver-layout

Conversation

@lannbot

@lannbot lannbot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

First consumer of @polymorph/test (webcrypto's deltic-browser leg, mid-migration) found the harness server assuming the retired npm-facade layout: PACKAGE_ROOT two dirnames up + /js/viewer/* mounts. The JSR package roots at the js/ subtree, so pages 404'd on page-runner.mjs.

  • Mount roots at browser-driver.mjs's own directory, serves /viewer/* — correct in the package and in this repo's checkout.
  • Page import map now carries @polymorph/test/* keys alongside the retired @polymorph/component-test-js/* ones (same values).
  • 0.1.1 across the manifests: a caret-compatible patch release (JS-only; Rust unchanged — downstream cargo pins can stay at the v0.1.0 commit, the first live exercise of the within-minor contract).

Gates: just check, verify-imports, verify-viewer, verify-deltic, publish dry-run — green.

After merge: tag v0.1.1 + release, dispatch jsr-publish for @polymorph/test@0.1.1.

The harness server mounted the directory two levels above
browser-driver.mjs and served /js/viewer/* — the retired npm facade's
layout, where the module sat at <package>/js/. jsr:@polymorph/test's
package root IS the js/ subtree (browser-driver.mjs and viewer/ are
siblings), so consumers resolving the package from JSR or its
npm-compat registry got a mount rooted a directory too high and page
imports that 404'd. The mount now roots at the module's own directory
and serves /viewer/* — correct in both the package and this repo's
checkout — and the page import map carries the @polymorph/test/* names
next to the retired @polymorph/component-test-js/* ones (same values).

Version 0.1.1 across the manifests (Cargo workspace, npm facade,
js/deno.json): the JS-only fix ships as a caret-compatible patch
release; the Rust side is unchanged.

Gates: check, verify-imports (both selftests), verify-viewer,
verify-deltic, deno publish --dry-run — all green.
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.

2 participants