PowerShellGallery icon indicating copy to clipboard operation
PowerShellGallery copied to clipboard

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

Open o-l-a-v opened this issue 1 year ago • 0 comments

Prerequisites

  • [X] Write a descriptive title.
  • [X] Make sure you are able to repro it on the latest version
  • [X] Search the existing issues.

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.

  • PoshRSJob
  • PolicyFileEditor

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

o-l-a-v avatar Mar 24 '24 21:03 o-l-a-v