You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[QUESTION] Inconsistent definition of version prefix #690
createToken('FULLPLAIN',`v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`)// oldcreateToken('FULLPLAIN',`${src[t.PREFIX]}${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`)// new
The reason v is removed has more to do w/ how this module grew up alongside npm itself than anything else. Folks would include that in their package.json for the version field. This was mostly due to the fact that npm added the v when outputting the version to the console, and also because it was added to the git tag for a given version.
=/v= does not have that same history so there is no need to support it. We are trying to move away from "helpfully" altering user data, and instead erroring and having them fix it. Guessing what the user wanted leads to unforeseen bugs.
Activity
wraithgar commentedon Mar 20, 2024
The reason
vis removed has more to do w/ how this module grew up alongside npm itself than anything else. Folks would include that in theirpackage.jsonfor theversionfield. This was mostly due to the fact that npm added thevwhen outputting the version to the console, and also because it was added to the git tag for a given version.=/v=does not have that same history so there is no need to support it. We are trying to move away from "helpfully" altering user data, and instead erroring and having them fix it. Guessing what the user wanted leads to unforeseen bugs.mbtools commentedon Mar 20, 2024
I fully agree with supporting just
vBut a) The readme says otherwise, and b) with a range it support
=/v=(and crap likevv==v) as well.I'm happy to update the docs and #689 to allow only a single, optional
vin ranges but that's probably a breaking-change. Just comment on #689.wraithgar commentedon Mar 20, 2024
Oh by all means let's make the docs reflect reality! Thanks for all the recent PRs.