Commit 5f3ca13
fix: handle prerelease bounds in subset (#867)
## Summary
- Fix `subset()` so prerelease lower and upper bounds are checked
against individual comparators without reapplying full range prerelease
gating.
- Add coverage for `^10.2.0-beta.2` being a subset of `^10.2.0-beta.1`.
## Tests
- `npx tap test/ranges/subset.js`
- `npm test`
- `git diff --check`
Fixes #757
Co-authored-by: Puneet Dixit <[email protected]>1 parent efa4be6 commit 5f3ca13
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
0 commit comments