From 9fe62b0dcd8de47df735f12f85662477f12e6434 Mon Sep 17 00:00:00 2001 From: Jaime Still Date: Mon, 30 Nov 2026 07:53:47 -0500 Subject: [PATCH] Take web-tooling 0.2.1: launch() on macOS, unisolated there web-tooling 0.2.1's launch() chooses by platform: Linux runs as in 0.2.0, in its own network namespace; macOS starts Chrome directly, unisolated; other platforms are rejected by name. The font module is Linux-only, and group.ts falls back to /bin/ps where there is no /proc. - package.json and the lockfile pin github:standards-lab/web-tooling#v0.2.1; only web-tooling's specifier, resolution, and version changed, and pnpm install --frozen-lockfile accepts it. - CHANGELOG records the bump under Unreleased, with this repository's development staying Linux-only (its chrome-headless-shell pin is linux-x64); no macOS pins or claims are added. - docs/testing.md's sentence on launch()'s network namespace now opens "On Linux," since 0.2.1 makes it untrue unconditionally. mise run check passes; mise run currency reports nothing. --- CHANGELOG.md | 2 ++ docs/testing.md | 2 +- package.json | 2 +- pnpm-lock.yaml | 12 ++++++------ 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b7ea41..4f54c42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,8 @@ All notable changes to `@standards-lab/web-components` are documented here. The page loads with `ERR_NETWORK_CHANGED`. The machine now needs `unshare`, `ip`, and unprivileged user namespaces, and the CI and release workflows allow them on the Ubuntu runner before the check. +- The browser tier takes web-tooling 0.2.1, which adds macOS support to `launch()`, unisolated + there; this repository's development stays Linux-only, its chrome-headless-shell pin linux-x64. - The repository's tasks take the agent-separation layout: `check` is a file task in `mise-tasks/` that runs the step scripts in `scripts/check/` in order, stopping at the first failure; the `lint`, `types`, `test`, and `preflight` tasks are gone, and under `MISE_ENV=agent`, which the diff --git a/docs/testing.md b/docs/testing.md index 447f4c0..25293ed 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -11,7 +11,7 @@ the behavior and layout each one holds to. and `release.test.ts` checks a `pnpm pack` of the `dist/` that `mise run build` writes, as it stands and in scratch copies with one fault each. - The browser tier runs on `dist/` in the pinned chrome-headless-shell, on the pages under - `test/fixtures/` and the specimen pages under `examples/`. web-tooling's `launch()` runs the + `test/fixtures/` and the specimen pages under `examples/`. On Linux, web-tooling's `launch()` runs the browser in a network namespace of its own, reaching only the loopback servers, so the machine needs `unshare`, `ip`, and unprivileged user namespaces, as web-tooling's [README](https://github.com/standards-lab/web-tooling#readme) gives. `test/browser/support/served.ts` is diff --git a/package.json b/package.json index 218c5a3..1fb12ca 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "@eslint/js": "10.0.1", "@standards-lab/web-foundation": "github:standards-lab/web-foundation#v0.4.0", "@standards-lab/web-icons": "github:standards-lab/web-icons#v0.1.0", - "@standards-lab/web-tooling": "github:standards-lab/web-tooling#v0.2.0", + "@standards-lab/web-tooling": "github:standards-lab/web-tooling#v0.2.1", "@types/node": "26.6.11", "eslint": "10.16.0", "eslint-import-resolver-typescript": "4.4.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 49e8b04..e576fde 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -28,8 +28,8 @@ importers: specifier: github:standards-lab/web-icons#v0.1.0 version: https://codeload.github.com/standards-lab/web-icons/tar.gz/499927708dcf386e0cff3de7ba84a10eaf19fa1a '@standards-lab/web-tooling': - specifier: github:standards-lab/web-tooling#v0.2.0 - version: https://codeload.github.com/standards-lab/web-tooling/tar.gz/8dd6c26270a47779e713a0bba382e561461a9659 + specifier: github:standards-lab/web-tooling#v0.2.1 + version: https://codeload.github.com/standards-lab/web-tooling/tar.gz/b763406d5699d87557dd1614c0902c6031ed13b5 '@types/node': specifier: 26.6.11 version: 26.6.11 @@ -174,9 +174,9 @@ packages: vite: optional: true - '@standards-lab/web-tooling@https://codeload.github.com/standards-lab/web-tooling/tar.gz/8dd6c26270a47779e713a0bba382e561461a9659': - resolution: {gitHosted: true, integrity: sha512-S1H+y1tcWl/t/dPr1mAJje6a1Lk1WY4EfgQw5Vleq3DxEvoGiS2KWXjeRgmBPgWf3SgoncE3jb33C9X5UaLXfQ==, tarball: https://codeload.github.com/standards-lab/web-tooling/tar.gz/8dd6c26270a47779e713a0bba382e561461a9659} - version: 0.2.0 + '@standards-lab/web-tooling@https://codeload.github.com/standards-lab/web-tooling/tar.gz/b763406d5699d87557dd1614c0902c6031ed13b5': + resolution: {gitHosted: true, integrity: sha512-h7ZJ9RfRmIjeQZgoSCQIGiCAtRrcPHo7pXzWLABwCee6DQTFRNn2Y2Tky+TTBPbxeG+qJUNIdVLFwHwi4uTz1Q==, tarball: https://codeload.github.com/standards-lab/web-tooling/tar.gz/b763406d5699d87557dd1614c0902c6031ed13b5} + version: 0.2.1 hasBin: true '@types/esrecurse@4.3.1': @@ -958,7 +958,7 @@ snapshots: '@standards-lab/web-icons@https://codeload.github.com/standards-lab/web-icons/tar.gz/499927708dcf386e0cff3de7ba84a10eaf19fa1a': {} - '@standards-lab/web-tooling@https://codeload.github.com/standards-lab/web-tooling/tar.gz/8dd6c26270a47779e713a0bba382e561461a9659': {} + '@standards-lab/web-tooling@https://codeload.github.com/standards-lab/web-tooling/tar.gz/b763406d5699d87557dd1614c0902c6031ed13b5': {} '@types/esrecurse@4.3.1': {}