diff --git a/integrations/pi/README.md b/integrations/pi/README.md index 9f799abd..15afa2a1 100644 --- a/integrations/pi/README.md +++ b/integrations/pi/README.md @@ -123,9 +123,9 @@ npm audit --no-package-lock --include=dev ``` The pinned Pi test host includes its own shrinkwrap. `package.json` overrides now pin the -patched `undici` and `minimatch` leaves, so the lock itself resolves to fixed versions and -no post-install repair is needed; `npm audit` is the gate for both the production and the -development trees. +patched `undici`, `minimatch`, `hono`, and `@hono/node-server` leaves, so the lock itself +resolves to fixed versions and no post-install repair is needed; `npm audit` is the gate for +both the production and the development trees. `npm run verify` type-checks the package, runs its configuration tests, and previews the publish tarball. The package pins the MCP SDK; update it only with a compatibility diff --git a/integrations/pi/package.json b/integrations/pi/package.json index 90260bb5..b247878a 100644 --- a/integrations/pi/package.json +++ b/integrations/pi/package.json @@ -49,10 +49,10 @@ "@modelcontextprotocol/sdk": "1.32.1" }, "overrides": { - "@hono/node-server": "^2.1.6", + "@hono/node-server": "^2.1.8", "body-parser": "^2.4.0", "fast-uri": "^3.1.9", - "hono": "^4.13.16", + "hono": "^4.13.18", "minimatch": "^11.0.3", "proxy-addr": "2.0.8", "undici": "^8.12.3", diff --git a/tests/test_release_infrastructure.py b/tests/test_release_infrastructure.py index c91a5d0f..a6311a5c 100644 --- a/tests/test_release_infrastructure.py +++ b/tests/test_release_infrastructure.py @@ -691,18 +691,24 @@ def test_release_transitive_dependency_security_floors_cannot_regress(): package = json.loads(_text("integrations/pi/package.json")) lock = json.loads(_text("integrations/pi/npm-shrinkwrap.json")) expected_overrides = { + "@hono/node-server": "^2.1.8", "body-parser": "^2.4.0", "fast-uri": "^3.1.9", + "hono": "^4.13.18", "minimatch": "^11.0.3", + "proxy-addr": "2.0.8", "undici": "^8.12.3", "zod": "^4.6.6", } for name, floor in expected_overrides.items(): assert package["overrides"][name] == floor - locked = lock["packages"][f"node_modules/{name}"]["version"] - assert tuple(map(int, locked.split("."))) >= tuple( - map(int, floor.removeprefix("^").split(".")) - ) + min_version = tuple(map(int, floor.removeprefix("^").split("."))) + top_key = f"node_modules/{name}" + assert top_key in lock["packages"] + suffix = f"/{top_key}" + for pkg_path, entry in lock["packages"].items(): + if pkg_path == top_key or pkg_path.endswith(suffix): + assert tuple(map(int, entry["version"].split("."))) >= min_version, pkg_path # The Pi test host is pinned to a release whose own shrinkwrap resolves the patched # leaves. Earlier releases needed a post-install repair, which could not clear the