PowerShell / PowerShellGallery

228 stars 65 forks source link

API - Some packages are not returned if `semverlevel=2.0.0`, but are returned if `semverlevel=1.0.0` #268

Open o-l-a-v opened 6 months ago

o-l-a-v commented 6 months ago

Prerequisites

Steps to reproduce

Found two modules that the PowerShell Gallery API won't return if semverlevel=2.0.0, but does return if semverlevel=1.0.0.

Query that works:

Query that doesn't:

Observation: If you don't filter IsLatestVersion and not IsPrerelease, semverlevel=2.0.0 seems to work just fine:

Also if you only filter IsLatestVersion (but this returns preview versions if that's the newest one available. Which might be another issue, shouldn't only IsAbsoluteLatestVersion trigger that?):

Expected behavior

SemVerLevel shouldn't affect whether the package was found.

Actual behavior

SemVerLevel affects whether the package was found.

Error details

No response

Environment data

Not relevant, API.

Version

Not relevant, API.

Visuals

No response