-
Notifications
You must be signed in to change notification settings - Fork 3k
Make latest
default version for npm install package
instead of *
#10189
Comments
PR-URL: npm/npm-package-arg#15 Credit: @zkat Fixes: #10189
Hmmm.... instinctively, I would actually expect |
Remember that |
(eg |
That makes sense, but then why make this change? The release notes on this made it sound like the main driver of this change was to open the door for pre-release versions to be installed without qualification....which seems off to me. But again, just my two cents....just trying to understand. Maybe this just more strongly encourages authors to more effectively tag their releases? |
So I'm sure there are many reasons folks tag prerelease verisons as latest, but here are a few I've seen: Some projects use the semver-prerelease field for things that aren't prereleases. They would like their software to be installable. Sometimes folks have tagged what was a prerelease version as |
Users should not get prereleases by default. The point of prereleases is to be before a release so if the author is publishing a prerelease they usually don't want their community to get it by default until more testing has been done with that prerelease. By allowing prereleases to become the default when the user doesn't specify the version, npm is encouraging huge instability in codebases using npm. It is very unintuitive and encourages software to crash by accepting software before it has been actually released by the author as an official release. The author of d3.js has similar concerns.
|
Merge and bring in https://github.com/npm/npm-package-arg/pull/15/files as the current behavior is basically never what people want.
The text was updated successfully, but these errors were encountered: