Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/cli/script/silent-catch-baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"src/lib/trace-target.ts": 1,
"src/lib/upgrade.ts": 3,
"src/lib/utils.ts": 1,
"src/lib/version-check.ts": 1,
"src/lib/version-check.ts": 0,
"src/lib/which.ts": 1,
"src/lib/wrangler.ts": 1
}
9 changes: 5 additions & 4 deletions packages/cli/src/lib/version-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import { getEnv } from "./env.js";
import { isUserError } from "./errors.js";
import { cyan, muted } from "./formatters/colors.js";
import { GLOBAL_FLAGS } from "./global-flags.js";
import { logger } from "./logger.js";
import { cleanupPatchCache } from "./patch-cache.js";
import { fetchLatestFromGitHub, fetchLatestNightlyVersion } from "./upgrade.js";

Expand Down Expand Up @@ -237,15 +238,15 @@ async function maybePrefetchPatches(
} else {
await prefetchStablePatches(latestVersion, signal);
}
} catch {
// Pre-fetch is best-effort — don't report errors
} catch (error) {
logger.debug("Delta patch pre-fetch failed (best-effort)", error);
}

// Opportunistic cleanup of stale cached patches
try {
await cleanupPatchCache();
} catch {
/* ignore */
} catch (error) {
logger.debug("Patch cache cleanup failed (best-effort)", error);
}
}

Expand Down
Loading