Skip to content

Use semver comparison for update check instead of string equality #56

@mgoldsborough

Description

@mgoldsborough

Context

From QA review of issue-37-cli-add-bundle-update-awareness branch.

Problem

In packages/cli/src/utils/cache.ts, checkForUpdateAsync compares versions with strict string equality (detail.latest_version !== cachedMeta.version). This works if the registry always returns canonical semver, but won't detect equivalence between e.g. 1.0.0 and v1.0.0.

Since we control the registry this is low risk, but a semver.eq() comparison would be more robust against future format changes.

Severity

Suggestion — defensive improvement, not a current bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions