Please deprecate beta versions that sort above stable releases due to semver ordering#112
Open
Tsarter wants to merge 1 commit into
Open
Please deprecate beta versions that sort above stable releases due to semver ordering#112Tsarter wants to merge 1 commit into
Tsarter wants to merge 1 commit into
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The following beta versions are currently published without a
deprecatedflag:2.88.1-postman.8-beta.12.88.1-postman.5-beta.12.88.1-postman.4-beta.12.88.1-postman.3-beta.12.88.1-postman.1-beta.1The problem
Due to how semver compares pre-release identifiers, these beta versions sort higher than the current stable release (
2.88.1-postman.48). In semver, alphanumeric identifiers always rank above numeric ones — so8-betais considered greater than48. As a result, consumers using a^range (e.g.^2.88.1-postman.31) have npm silently resolve to a beta version instead of the latest stable.2.88.1-postman.8-beta.1is recording 80,551 downloads in the last 7 days on npmWhy deprecation fixes it
Since npm v6.
When npm install is done. If not then it still installs the 2.88.1-postman.8-beta.1 just with a deprecated warning.
References:
The ask
Could you run the following commands to close out this issue?
This PR itself contains no meaningful code changes