Commit 6f51c43
committed
chore(setup-packages): replace semver with std-semver
Replaces the `semver` npm package (and its `@types/semver` types) with
`std-semver`, an npm port of the Deno standard library `@std/semver`.
Since `std-semver` has no `coerce` function, a small local helper is
added that extracts the first `X.Y.Z` from an engines range string and
delegates to `tryParse`.1 parent dd4a493 commit 6f51c43
3 files changed
+20
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
12 | 19 | | |
13 | 20 | | |
14 | 21 | | |
| |||
40 | 47 | | |
41 | 48 | | |
42 | 49 | | |
43 | | - | |
| 50 | + | |
44 | 51 | | |
45 | 52 | | |
46 | 53 | | |
| |||
73 | 80 | | |
74 | 81 | | |
75 | 82 | | |
76 | | - | |
77 | | - | |
| 83 | + | |
| 84 | + | |
78 | 85 | | |
79 | 86 | | |
80 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2297 | 2297 | | |
2298 | 2298 | | |
2299 | 2299 | | |
2300 | | - | |
2301 | | - | |
2302 | | - | |
2303 | | - | |
2304 | | - | |
2305 | | - | |
2306 | | - | |
2307 | 2300 | | |
2308 | 2301 | | |
2309 | 2302 | | |
| |||
6137 | 6130 | | |
6138 | 6131 | | |
6139 | 6132 | | |
6140 | | - | |
6141 | 6133 | | |
6142 | 6134 | | |
6143 | | - | |
| 6135 | + | |
6144 | 6136 | | |
6145 | 6137 | | |
6146 | 6138 | | |
| |||
6397 | 6389 | | |
6398 | 6390 | | |
6399 | 6391 | | |
| 6392 | + | |
| 6393 | + | |
| 6394 | + | |
| 6395 | + | |
| 6396 | + | |
| 6397 | + | |
| 6398 | + | |
6400 | 6399 | | |
6401 | 6400 | | |
6402 | 6401 | | |
| |||
0 commit comments