From faf9035476b71210144cfe064339f68e06c1e640 Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Mon, 3 Aug 2026 08:59:43 +0000 Subject: [PATCH] fix(pwa): compare against the moshpit-name that has the rule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit apps/pwa's drift test has failed 3 subtests for a while, and the reason was never the vendored copy: `@moshcoder/moshpit-name` fixed the label rule — no dashes, because a dash is the cheapest way to mint a near-miss of an ending someone else holds — and never published it. npm served the old permitting regex, the test compared against that, and reported the fixed copy as the one out of step. Published now as 0.4.0. The specifier has to move with it: `^0.2.0` cannot resolve `0.4.0` on a 0.x range, so leaving it would go on comparing against the copy the release exists to replace. That caret is what hid this — the same trap that hid the DNS bridge divergence in #245. apps/pwa: 456 pass, 0 fail, 0 skipped. Co-Authored-By: Claude Opus 5 (1M context) --- apps/pwa/package-lock.json | 8 ++++---- apps/pwa/package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/pwa/package-lock.json b/apps/pwa/package-lock.json index d9b678e..ad7aed0 100644 --- a/apps/pwa/package-lock.json +++ b/apps/pwa/package-lock.json @@ -18,7 +18,7 @@ "web-push": "^3.6.7" }, "devDependencies": { - "@moshcoder/moshpit-name": "^0.2.0" + "@moshcoder/moshpit-name": "^0.4.0" }, "engines": { "node": ">=20" @@ -181,9 +181,9 @@ ] }, "node_modules/@moshcoder/moshpit-name": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@moshcoder/moshpit-name/-/moshpit-name-0.2.0.tgz", - "integrity": "sha512-FcIv8TkonMfBwVD/gBiQKI34jSK38qtr6rKmjFX2grPtIyNqrKqv15eSpKsgja1/uasUbFC9Y0pck4jbOsBLiw==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@moshcoder/moshpit-name/-/moshpit-name-0.4.0.tgz", + "integrity": "sha512-9qRHakrYNMCmIBJ6qIHnXwzN471Mq36mHYRHkuy2Ixpha4A9HzYC73mLOuNqcOkp7UsxUhnl0mPZfbEjejlJvw==", "dev": true, "license": "MIT", "bin": { diff --git a/apps/pwa/package.json b/apps/pwa/package.json index bf46eee..1d92de2 100644 --- a/apps/pwa/package.json +++ b/apps/pwa/package.json @@ -24,6 +24,6 @@ "web-push": "^3.6.7" }, "devDependencies": { - "@moshcoder/moshpit-name": "^0.2.0" + "@moshcoder/moshpit-name": "^0.4.0" } }