Incorrect semver release for beta channel causes beta9 to be latest
See original GitHub issue> npm view react-select versions
[ '0.0.1',
'0.0.2',
…
'0.9.1',
'1.0.0-beta1',
'1.0.0-beta10',
'1.0.0-beta11',
'1.0.0-beta12',
'1.0.0-beta13',
'1.0.0-beta2',
'1.0.0-beta3',
'1.0.0-beta4',
'1.0.0-beta5',
'1.0.0-beta6',
'1.0.0-beta7',
'1.0.0-beta8',
'1.0.0-beta9' ]
Because versions are sorted alphabetically and not numerically. Therefore if a dependee’s package.json
uses "react-select": "^1.0.0-beta13"
the ^
sees the latest point release 1.0.0-beta9 as higher then the prescribed 13.
Semver gives the guidelines that beta versions be released as e.g. 1.0.0-beta.13
etc…
Issue Analytics
- State:
- Created 7 years ago
- Comments:5
Top Results From Across the Web
Prerelease not correct with channel: false · Issue #1499 - GitHub
I want to add another release from beta branch and expect it to be ... with channel in which the last is ignored...
Read more >Can't Move from Release Preview to Beta Channel
SOLVED: After a day and a restart, Beta and DEV Channel are now selectable. Thanks!!! Hi. Is anyone able to help me?
Read more >Semantic Versioning 1.0.0-beta
In systems with many dependencies, releasing new package versions can quickly become a nightmare. If the dependency specifications are too tight, ...
Read more >Versioning schemes - Octopus Deploy
This page should help you understand how Octopus Deploy handles versions in packages, releases, and channels, which will help you design a versioning...
Read more >Changelog - Shoelace
New versions of Shoelace are released as-needed and generally occur when a critical mass of changes have accumulated. At any time, you can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Great suggestion @Enet4. Instead of
1.0.0-beta.14
(or the proposed1.0.0-beta.14
format), the next release could be versioned as1.0.0-rc.1
. I’ll re-open. Ultimately it’s up to @JedWatson but I think this is a good direction… 😃I honestly don’t believe this should be closed, as the issue still remains. In fact, I was nearly about to make a needless duplicate.
How about publishing the next version with the pre-release identifier
rc
(for release candidate)? It would be lexically greater thanbeta
and still be meaningful to humans.