Skip to content

semver range seems to not calculate correctly for comparison operators #2340

Closed

Description

@denis-sokolov

^7.5 <7.6 matches 7.6, this seems unintentional.

(Same for ~7.5 matching 7.6)

Image Image

(Example taken from the prisma package page)

Activity

  1. added theissue type on Mar 31, 2026
  2. joshuaisaact commented on Apr 5, 2026

    @joshuaisaact
    Contributor

    Hey so I fixed this in the above PR. It turns out we were always adding the latest version at the end of the filter array.

    It might be that was intentional, but I think I agree with you - it doesn't really make much sense, from a UX perspective.

    If I filter by semver I should only see the semvers I want to filter by, I shouldn't always see latest too.

  3. denis-sokolov commented on Apr 5, 2026

    @denis-sokolov
    Author

    Thank you!

    Yes, I was fully confused by the feature and I thought I can not trust the results given what it was showing.

    If we want to always show the latest, I would visualize it. E.g. move the latest version above the search field.

  4. added this to the v0.8 milestone on Apr 10, 2026
  5. moved this from Backlog to In progress in Releaseson Apr 10, 2026
  6. moved this from In progress to Released in Releaseson Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    • Status
      Released

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions