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.

2.0.0-beta.3 published as latest in npm

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dougwilsoncommented, Oct 31, 2017

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.

1reaction
Hilzucommented, Oct 31, 2017

Beta versions are commonly published with the next dist tag: https://docs.npmjs.com/cli/dist-tag#purpose

Because the beta is published under the latest tag it’s the version that gets installed with npm install cookie-session. That’s surprising at least to me. I would expect that a stable version would be the one installed by default.

Read more comments on GitHub >

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

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