Commit baa1691
fix: reject non-semver candidate versions in isVersionSatisfies (#1009)
Distributions like JetBrains Runtime publish 4-segment versions such as
'17.0.8.1+1080.1' that the semver package rejects. Both compareBuild and
satisfies throw on these, which surfaced to users as "Error: Invalid
Version: 17.0.8.1+1080.1" and aborted the whole install when any
available version was non-semver. Guard with an early semver.valid check
so unparseable versions are treated as a non-match.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent bc52a13 commit baa1691
4 files changed
Lines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52208 | 52208 | | |
52209 | 52209 | | |
52210 | 52210 | | |
| 52211 | + | |
| 52212 | + | |
| 52213 | + | |
| 52214 | + | |
| 52215 | + | |
| 52216 | + | |
| 52217 | + | |
52211 | 52218 | | |
52212 | 52219 | | |
52213 | 52220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81039 | 81039 | | |
81040 | 81040 | | |
81041 | 81041 | | |
| 81042 | + | |
| 81043 | + | |
| 81044 | + | |
| 81045 | + | |
| 81046 | + | |
| 81047 | + | |
| 81048 | + | |
81042 | 81049 | | |
81043 | 81050 | | |
81044 | 81051 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
58 | 66 | | |
59 | 67 | | |
60 | 68 | | |
| |||
0 commit comments