Skip to content

Fix unpublished npm version detection - #10

Merged
Createitv merged 1 commit into
mainfrom
codex/fix-npm-missing-version
Oct 13, 2026
Merged

Createitv merged 1 commit into
mainfrom
codex/fix-npm-missing-version

Conversation

@Createitv

Copy link
Copy Markdown
Owner

问题与结果 / Problem and outcome

The v0.3.0 npm run built and verified every platform, but treated npm's JSON 404 response for an unpublished version as an existing package integrity. This change recognizes only a real sha512 integrity and publishes when the version is absent.

改动 / Changes

  • Query dist.integrity without JSON error output.
  • Accept only sha512 integrity values as an existing package.
  • Add a regression check for missing npm versions.

兼容性 / Compatibility

  • CLI / REST: None
  • Configuration and credentials: None
  • Output schema: None

验证 / Validation

  • python3 scripts/test_npm_workflow.py: passed (2 tests)
  • make ci: passed, 85.5% Go coverage, web tests/build passed
  • go test -race ./...: passed
  • Live npm publish will be retried only after this PR merges.

文档与完成条件 / Documentation and completion

  • Focused scope, no unrelated files
  • Behavior changes have relevant tests
  • CLI and REST not affected
  • Flag, JSON, and default compatibility documented
  • No user-facing docs or changelog change required for this workflow-only fix
  • Relevant checks run, live publish disclosed
  • Examples and logs contain no secrets

@Createitv
Createitv merged commit c6e9eb1 into main Oct 13, 2026
14 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