Commit d1b2172
committed
fix(ui): respect semver filter when showing latest tag
The 'latest' tag was unconditionally added to visible results even when
it didn't match the active semver filter. This caused versions like 7.6.0
to appear when filtering by ranges like '^7.5 <7.6'.
Remove the special case handling for the 'latest' tag and let it flow
naturally through the filtering logic. This makes the behavior more
predictable and fixes the bug where non-matching versions were displayed.1 parent 5324b96 commit d1b2172
File tree
2 files changed
+16
-8
lines changed- app/components/Package
- test/nuxt/components/Package
2 files changed
+16
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
| 213 | + | |
221 | 214 | | |
222 | 215 | | |
223 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1281 | 1281 | | |
1282 | 1282 | | |
1283 | 1283 | | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
1284 | 1299 | | |
1285 | 1300 | | |
1286 | 1301 | | |
| |||
0 commit comments