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
I have done some analysis of all versions, dependencies and engine ranges used in the top 5200 npm package.json files:
Type of Range
Count
^
52049
semver
14049
>=
2934
~
1979
||
841
*
730
x
502
major
348
=
162
"latest"
154
npm:
101
git:
69
-
60
file:
44
>
25
major.minor
24
"next"
15
http/s:
12
link:
7
portal:
3
<
3
.
3
v1.1.0
1
./
1
workspace:
1
v1.13.4
1
Grand Total
74118
The use of v or v= prefixes is extremely rare. It's only 2 cases (which could be tags and valid).
I would suggest to put up a deprecation notice of these semver v1 notations and then completely stick to semver v2 (i.e. no prefixes, not even a v) with the next major.
why even bother removing the v? there's nothing conceptually wrong with it; npm doesn't comply with semver v2 anyways; and https://semver.org/#is-v123-a-semantic-version supports its use as an optional prefix.
Activity
wraithgar commentedon Mar 20, 2024
Added this to #501
mbtools commentedon Mar 22, 2024
I have done some analysis of all versions, dependencies and engine ranges used in the top 5200 npm
package.jsonfiles:The use of
vorv=prefixes is extremely rare. It's only 2 cases (which could be tags and valid).I would suggest to put up a deprecation notice of these semver v1 notations and then completely stick to semver v2 (i.e. no prefixes, not even av) with the next major.ljharb commentedon Mar 22, 2024
why even bother removing the
v? there's nothing conceptually wrong with it; npm doesn't comply with semver v2 anyways; and https://semver.org/#is-v123-a-semantic-version supports its use as an optional prefix.mbtools commentedon Mar 27, 2024
Agree. Removing
vwon't make a difference. Stats are interesting nevertheless 😃