sboulema / NuGetMonitor

A Visual Studio extension that checks and notifies about available updates for the installed NuGet packages for the open solution.
MIT License
16 stars 1 forks source link

Shows delisted versions as available update #15

Closed sboulema closed 1 year ago

sboulema commented 1 year ago

The QuestPDF package has a high version numbered packaged (due to a typo) of 2202.8.2 (instead of 2022.8.2).

This version has been delisted as shown in the nuget API response: https://api-v2v3search-0.nuget.org/search/query?q=packageid:questpdf&ignoreFilter=true&prerelease=true&take=100

{
  "PackageRegistration": {
    "Id": "QuestPDF",
    "DownloadCount": 2309861,
    "Verified": false,
    "Owners": [],
    "PopularityTransfers": []
  },
  "Version": "2202.8.2",
  "NormalizedVersion": "2202.8.2",
  ...
  "IsLatestStable": false,
  "IsLatest": false,
  "Listed": false, <---------------
  ...
},
sboulema commented 1 year ago

@tom-englert Maybe you have a solution?

The NuGetVersion model does not have a Listed property :(

sboulema commented 1 year ago

IPackageSearchMetadata has a IsListed property :)

That is not on version level...

tom-englert commented 1 year ago

We had a similar issue here: https://github.com/Fody/PropertyChanged/issues/867 https://github.com/NuGet/Home/issues/11989

tom-englert commented 1 year ago

I think I have an idea, I will try to solve it.