question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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…

https://docs.npmjs.com/misc/semver#prerelease-identifiers

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
bvaughncommented, May 30, 2016

Great suggestion @Enet4. Instead of 1.0.0-beta.14 (or the proposed 1.0.0-beta.14 format), the next release could be versioned as 1.0.0-rc.1. I’ll re-open. Ultimately it’s up to @JedWatson but I think this is a good direction… 😃

1reaction
Enet4commented, May 30, 2016

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 than beta and still be meaningful to humans.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found