Skip to content

fix(pwa): compare against the moshpit-name that has the rule - #249

Merged
ralyodio merged 1 commit into
mainfrom
fix/moshpit-name-devdep
Aug 3, 2026
Merged

fix(pwa): compare against the moshpit-name that has the rule#249
ralyodio merged 1 commit into
mainfrom
fix/moshpit-name-devdep

Conversation

@ralyodio

@ralyodio ralyodio commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Closes the 3 long-standing failures in apps/pwa/test/moshpit-name-drift.test.mjs.

Why they were failing

Not 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 (.crypto vs .cryp-to, in a namespace one level deep with no dispute process) — and never published it. npm went on serving the old permitting regex, the drift test compared against that, and reported the fixed copy as the one out of step.

Published now as 0.4.0 (moshcoder/moshpit-name#11).

Why the specifier has to move too

^0.2.0 cannot resolve 0.4.0 — a caret on a 0.x range is pinned to that minor. Leaving it would go on comparing against the exact copy the release exists to replace.

That caret is what hid this, and it's the same trap that hid the DNS bridge divergence in #245: the drift test dutifully compared against a version that could never advance.

Result

apps/pwa: 456 pass, 0 fail, 0 skipped.

No source change — package.json and its lockfile only.

🤖 Generated with Claude Code

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) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

vu1nz Security Review

0 finding(s) in PR #?

No security issues found.

@ralyodio
ralyodio merged commit 48796b4 into main Aug 3, 2026
2 of 3 checks passed
@ralyodio
ralyodio deleted the fix/moshpit-name-devdep branch August 8, 2026 17:06
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.

1 participant