Skip to content

Log deleted-from-registry bundles during outdated check #54

@mgoldsborough

Description

@mgoldsborough

Context

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

Problem

In packages/cli/src/commands/packages/outdated.ts, the empty catch {} in getOutdatedBundles silently skips bundles that fail registry lookup. This is fine for transient network errors, but a bundle permanently deleted from the registry will silently disappear from outdated checks. Users have no way to discover stale/orphaned cache entries.

Suggested Fix

Log a debug-level message to stderr when a bundle fails to resolve, e.g.:

} catch {
  process.stderr.write(`=> Warning: could not check ${bundle.name} (may have been removed from registry)\n`);
}

Severity

Warning — UX gap, not a correctness 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