Dashboard › cli › Distillation
7e99ab2c-19e3-4b32-86c6-3d1cfd93d8fa["lore_tm_v1_3LHOHOpfPZma9ei7XinVt9_13WzjEn8kb-HVucpi2vY"]
extractReleaseVersions(data: unknown, source: UpgradeSource) in packages/cli/src/lib/upgrade.ts now validates release metadata shape: prefixed sources require an array, while unprefixed sources reject arrays; invalid data throws UpgradeError("network_error", "GitHub returned invalid release metadata").fetchRecentReleases coverage for both Toolkit (source = undefined, tags cli@0.14.0-dev.1 and cli@0.14.0) and legacy (source = LEGACY_UPGRADE_SOURCE, tags 0.14.0-dev.1 and 0.14.0), verifying semantic prereleases are excluded and the normalized result is exactly ["0.14.0"].fetchRecentReleases(undefined, LEGACY_UPGRADE_SOURCE) uses exactly https://api.github.com/repos/getsentry/cli/releases?per_page=12.0.15.0, 0.14.0, and 0.13.0 to cli@0.15.0, cli@0.14.0, and cli@0.13.0.attemptDeltaUpgrade test verifying nightly requests remain on the legacy source; the test imports a versioned delta-upgrade implementation using importDeltaUpgradeWithVersion("0.13.0").afterEach, beforeEach, UPGRADE_SOURCES, fetchRecentReleases, fetchChangelog, and mockFetch, in addition to existing changelog parsing helpers.