Skip to content

潮规有界,预览留标 · Honor npm tag invariants - #40

Merged
eric8810 merged 1 commit into
mainfrom
codex/n2-npm-tag-semantics
Jul 23, 2026
Merged

eric8810 merged 1 commit into
mainfrom
codex/n2-npm-tag-semantics

Conversation

@eric8810

Copy link
Copy Markdown
Contributor

原因

公共 npm registry 的 package document 要求至少保留 latest;首次发布的新 package name 即使使用 --tag next 也会生成 latest,删除它返回 HTTP 400。第一次 promotion run 因此在任何稳定 tag 变更前安全失败。

变更

  • 不再尝试删除 Tiny/Medium 首版 package 的 registry-required latest
  • promotion 仍只主动推进 Small facade、shared runtime 和六个 native package
  • 注释明确区分“npm 被动首版 latest”与“项目主动 stable promotion”
  • 保留上一 PR 的批量发布/统一 registry convergence 优化

验证

  • python3 -m unittest tests.python.test_npm_release(12 tests)
  • python3 -m unittest discover -s tests/python -p "test_*.py"(77 tests)
  • git diff --check

参考

Leave registry-required latest tags on first-published Tiny and Medium package names instead of attempting an unsupported deletion.

Keep stable promotion scoped to the Small facade, shared runtime, and six native packages; preview maturity remains explicit in package metadata and CLI output.
@eric8810
eric8810 merged commit 575a456 into main Jul 23, 2026
1 check passed
@eric8810
eric8810 deleted the codex/n2-npm-tag-semantics branch July 23, 2026 11:04
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