NuGet / Home

Repo for NuGet Client issues
Other
1.5k stars 252 forks source link

Support GetAllListedVersions API #13570

Open WeihanLi opened 5 months ago

WeihanLi commented 5 months ago

NuGet Product(s) Involved NuGet SDK

The Elevator Pitch

Using FindPackageByIdResource.GetAllVersionsAsync you can retrieve all versions of a package, which includes listed and unlisted versions.

Though we could use PackageMetadataResource.GetMetadata for unlist versions while it returns more information than versions, considering performance, I may prefer the FindPackageByIdResource.GetAllVersionsAsync API

Is it possible to support includeListedOnly/includedNonPrereleaseOnly filter for the FindPackageByIdResource.GetAllVersionsAsync, thanks very much

          The metadata API would not more info than versions, considering for performance, is it possible to support a parameter like `excludeUnlistedPackages` for the `GetAllVersions` API?

Originally posted by @WeihanLi in https://github.com/NuGet/Home/issues/12370#issuecomment-2184274421

WeihanLi commented 5 months ago

should add a Type:Feature label

zivkan commented 5 months ago

When creating an issue, please use one of our templates, rather than creating a blank issue.

WeihanLi commented 5 months ago

@zivkan thanks for the help, I tried to open issue with Reference in a new issue, would use the template next time, thanks