fix(web): require e2e 0.18.0 as peer

Merged
OK
2mo ago
+11-5

@e2e-dev/web peers on e2e >=0.15.0 <1, but the web engine in release #825 needs runner 0.18.0:

  • e2e 0.15.x: the engine fails to load, 'e2e/engine' does not provide an export named 'rejectUnknownOptions' (export added in 0.16.0, #579).
  • e2e 0.16/0.17: headed runs fail with ENGINE_FAILURE: browser launch failed: Executable doesn't exist .../chromium-1243. #803 provisions full Chromium only when the runner passes headed to prepare (packages/e2e/src/run/standalone.ts:104, packages/web/src/surface.ts:314), which 0.18.0 is the first to do.

Changes:

  • Web peer raised to >=0.18.0 <1, with a changeset.
  • AGENTS.md and scripts/public-packages.ts: the floor is the oldest sibling a package works with, raised when it relies on a newer export or contract field.

Other packages were checked against their floors and need no change. mobile, eas, github, and kernel load on e2e 0.15.0, decision on 0.15.2. Mobile's only newer contract field is the optional swipeTo.durationMs, which an older runner just never sends.

Must merge before #825, or web 0.13.0 ships with the old range. Until #825 lands, workspace e2e is 0.17.0, so pnpm warns about an unmet peer inside this repo. It is a warning only: install-smoke passes on pnpm 11 and 12.

Verified

Ran it locally: yes

  • Packed web from this branch and installed it next to e2e 0.17.0 (npm) and the packed 0.18.0 release tarball.
  • Headed run on an empty PLAYWRIGHT_BROWSERS_PATH, against the init template with the packed e2e 0.18.0.
main (web peer >=0.15.0 <1)this branch (>=0.18.0 <1)
npm, e2e@0.17.0installs clean, then run --headed fails browser launch failed: Executable doesn't exist .../chromium-1243ERESOLVE ... peer e2e@">=0.18.0 <1" from @e2e-dev/web
pnpm 12, e2e@0.17.0no peer warning✕ unmet peer e2e, Installed: 0.17.0, Wanted: >=0.18.0 <1
npm / pnpm, e2e@0.18.0okok, No peer dependency issues found
run --headed, e2e@0.18.0, empty browser cache-prepare downloads chromium-1243 + headless shell, 1 passed