Skip to content

fix: wait for published npm version visibility - #1

Merged
nstdata-dev merged 1 commit into
mainfrom
review/october-readiness-20261029
Oct 30, 2026
Merged

nstdata-dev merged 1 commit into
mainfrom
review/october-readiness-20261029

Conversation

@nstdata-dev

Copy link
Copy Markdown
Contributor

Summary

An immediate registry lookup can return HTTP 404 after npm publish succeeds. Allow bounded read-only checks before treating the published version as unavailable.

 publish the verified archive once
-check registry visibility immediately
+check registry visibility up to seven times, waiting 30 seconds after a 404
 verify package name, version and integrity

Evidence

  • Before: the delayed-visibility regression fails with 404 !== 200.
    After: delayed visibility succeeds; persistent 404 responses stop at the read limit, and identity, integrity or other HTTP errors fail immediately. CLI coverage confirms publication is attempted only once.
  • Type checking, 77 source tests and 63 installed-client tests pass locally. The npm archive remains byte-for-byte identical to the reviewed 11-file package.

Merge Danger

Door: two-way. The change can be reverted without changing published packages.

Blast Radius: release verification. Only the release script and its tests change.

@nstdata-dev
nstdata-dev merged commit 557dff8 into main Oct 30, 2026
8 checks passed
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