2.0.0-beta.3 published as latest in npm
See original GitHub issueI upgraded cookie-session
in my app today and noticed that the beta version is marked as latest
in npm instead of the stable version 1.3.2. I would assume that beta versions would be published under the next
dist tag or similar. Is installing the beta version by default intentional?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top Results From Across the Web
brain.js - npm
Neural networks in JavaScript. Latest version: 2.0.0-beta.17, last published: a month ago. Start using brain.js in your project by running ...
Read more >mag-app-youtube-2.0.0beta-3 - npm package | Snyk
Learn more about mag-app-youtube-2.0.0beta-3: package health score, popularity, security, ... Latest version published 6 years ago. License: ISC. NPM.
Read more >beta branch pre-release breaking change not updating major ...
A new release was published - 1.62.0-beta.1. ... In the case of the scenario above, I'd expect the version published to be 2.0.0-beta.1 ......
Read more >Publish to NPM automatically with GitHub Actions
3 Publish to NPM automatically with GitHub Actions ... version of ubuntu runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: ...
Read more >How to install the latest possible version of an npm package
Except the latest version available through npm is 2.0.0-beta.4 which can be installed by specifying that version implicitly. And as you can see ......
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
Thanks, @Hilzu . I looked around as well and even found https://medium.com/@mbostock/prereleases-and-npm-e778fc5e2420 . No wonder I’ve just use
npm publish
for all these 5+ years without realizing there was an issue. When I first started out it behaved differently than it apparently does today. Now you are required to publish with these tags in order for it not to be a default install.Not sure what people use, because I’ve had the beta published up since Oct 2015 and I think this is the first issue, so it must not affect very many people, or a lot of people have installed the beta now and so reverting to the behavior you’re expecting may be unexpected to them. I think at this point it’s safer to leave as-is and note this for the future.
Beta versions are commonly published with the
next
dist tag: https://docs.npmjs.com/cli/dist-tag#purposeBecause the beta is published under the
latest
tag it’s the version that gets installed withnpm install cookie-session
. That’s surprising at least to me. I would expect that a stable version would be the one installed by default.