dart-lang / pub-dev

The pub.dev website
https://pub.dev
BSD 3-Clause "New" or "Revised" License
771 stars 142 forks source link

Retracted package should show the latest available one instead of the latest retracted one if they are not compatible between #7852

Open AlexV525 opened 3 days ago

AlexV525 commented 3 days ago

Package: https://pub.dev/packages/ord_dart

I've retracted all v0.1 versions and published a v0.0.8 version. But the page still shows that the v0.1.0+2 has been retracted.

image

sigurdm commented 3 days ago

@szakarias and @isoos do you remember the logic we use here?

AlexV525 commented 2 days ago

The API also returns the retracted v0.1.0+2 as the latest. https://pub.dev/api/packages/ord_dart

isoos commented 2 hours ago

This looks like a bug: we should have picked the latest non-retracted version as the default.