Skip to content

"Size increase" warning shows up incorrectly for alpha versions that are older and smaller than the latest release #2313

@connorshea

Description

@connorshea

Describe the bug

For example, the package size of oxlint has decreased in newer versions, but if you look at the "alpha" version (v1.17.0-alpha.0) from a few months ago, it shows as though the package is increasing in size, because the "before" version it's using for comparison is the newest version, 1.57.0: https://npmx.dev/package/oxlint/v/1.17.0-alpha.0

Image

Additional context

v1.17.0-alpha.0, September 2025: 19.7 MB

v1.57.0, March 2026: 14.9 MB

Ideally, npmx would not display a warning when viewing the old alpha version. This is maybe due to some weirdness in how version comparison works in semver? I'm not really sure.

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions