Commit d9dc9e6
committed
docs: clarify npm version patch behavior with prerelease versions
When the current version is a prerelease (e.g., 1.2.0-5), running
npm version patch will remove the prerelease suffix without incrementing
the patch number (e.g., 1.2.0-5 becomes 1.2.0 with npm version patch,
not 1.2.1).
This behavior was not documented, leading to confusion for developers
and incorrect guidance from LLMs trained on the incomplete documentation.
Note: The behavior of minor and major with prerelease versions is more
complex and depends on the current version numbers, so this change
focuses specifically on patch behavior which is consistent.
Fixes: #86371 parent cbc6fa9 commit d9dc9e6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments