Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the lastest version numbers have gone back in time #839

Closed
75lb opened this issue Oct 21, 2016 · 5 comments
Closed

the lastest version numbers have gone back in time #839

75lb opened this issue Oct 21, 2016 · 5 comments
Assignees
Milestone

Comments

@75lb
Copy link

75lb commented Oct 21, 2016

technically, the latest version (v2.0.0-alpha.7) is a lower version than v2.0.0 from March.. in npm v3.10, this command installs v2.0.0:

$ npm i koa@^2.0.0-alpha

Only a mild annoyance, but "koa": "^2.0.0-alpha" in my package.json doesn't install the latest release as desired.

@jonathanong
Copy link
Member

try npm i koa@next. if that doesn't work, we'll have to fix these damn npm tags

@75lb
Copy link
Author

75lb commented Oct 21, 2016

npm i koa@next --save works fine thanks but it's open-ended.. (i don't want to depend on a tag which might later point to something incompatible, breaking my app)

@jonathanong
Copy link
Member

jonathanong commented Oct 28, 2016

i would say it's better because we're not using strict-semver versions, so depending on the alpha tag will never give you the latest updates. however, i don't think v3 will be marked as next for very long (none of this waiting-for-ES-features-in-v8 business), so i think the next tag will die at v2, keeping you safe.

@AubreyHewes
Copy link

AubreyHewes commented Nov 5, 2016

The issue is valid, and actually has nothing to do with npm, it's down to this project's release management; the release/tag management of the project in github.

The project has a release 2.0.0 which is older than the latest 2.0.0-alpha.X releases.

This availability of release 2.0.0 supersedes 2.0.0-alpha.X releases, this is basic semver.
Therefore anyone trying to install using semver 2.0.0-alpha.X will get the outdated 2.0.0 release and not the latest 2.0.0-alpha.X release.

The project should remove release 2.0.0 as it is not 2.0.0 due to 2.0.0-alpha.X tags still being released... see the release history.

(replace release w/ tag etc)

Sidenotes;

@75lb using ^2.0.0-alpha will install anything up to 3.0.0 -- basic semver.. your app could break at any time ;-)

@jonathanong using next is a bit like using master, just slightly more controlled ;-)

@jonathanong remove the "2.0.0" release tag.. ;-)

Test yourself @ http://jubianchi.github.io/semver-check/

@jonathanong jonathanong self-assigned this Nov 26, 2016
@jonathanong jonathanong added this to the v2.0.0 milestone Nov 26, 2016
@jonathanong
Copy link
Member

#812

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

No branches or pull requests

3 participants