Skip to content

Package page with version resolved from semver range displayed incorrectly #1967

@alex-key

Description

@alex-key

Describe the bug

When a user navigates to the package page using dependenices url with semver range (pkg@^1, pkg@~1, pkg@1-2, pkg@>1, pkg@>1<3 etc) readme file uses version range from the url instead of resolved single version.

Examples:
https://npmx.dev/package/nuxt/v/%5E3
https://npmx.dev/package/nuxt/v/2-4
https://npmx.dev/package/nuxt/v/%3E=3

Additional context

Check #1120 for more context regarding range version.

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions