You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm installs now fall back to GitHub's latest Release page when the API is unavailable. Only stable tags from the same repository are accepted, and the exact npm package version is still checked before installation. No actionable merge-blocking risk was identified.
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
[ERROR] 144-144: A nonliteral argument is passed to exec/execSync. Identify the receiver: Node child_process methods execute shell commands, while regular-expression and database methods have different contracts. For shell execution, prefer execFile or spawn with an argument array.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GitHub Releases API 限流或不可用时,#1259 的回退虽然保留用户配置的 npm 源,但以
dist-tags.latest选择候选版本。项目的静默预览会进入这个 dist-tag,GitHub 则仍将它标记为预发布。因此常规升级在 API 不可用时可能误选静默预览。本 PR 按前一轮评审反馈保留两个边界:
/releases/latest的重定向验证正式版本标签。不会抓取 HTML、跟随外部重定向或接受预发布标签。若无法验证,保留原检查错误。Related issues
Refs #1195, #1259
UI Demo
No visual changes: 使用现有更新状态和发布说明链接,不改动界面。
Test plan
v0.28.1,已安装相同版本时未提示升级。未触发真实安装。