MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / shouldSkipVersion

Function shouldSkipVersion

src/utils/autoUpdater.ts:144–158  ·  view source on GitHub ↗
(targetVersion: string)

Source from the content-addressed store, hash-verified

142 * current version until stable catches up, preventing downgrades.
143 */
144export function shouldSkipVersion(targetVersion: string): boolean {
145 const settings = getInitialSettings()
146 const minimumVersion = settings?.minimumVersion
147 if (!minimumVersion) {
148 return false
149 }
150 // Skip if target version is less than minimum
151 const shouldSkip = !gte(targetVersion, minimumVersion)
152 if (shouldSkip) {
153 logForDebugging(
154 `Skipping update to ${targetVersion} - below minimumVersion ${minimumVersion}`,
155 )
156 }
157 return shouldSkip
158}
159
160// Lock file for auto-updater to prevent concurrent updates
161const LOCK_TIMEOUT_MS = 5 * 60 * 1000 // 5 minute timeout for locks

Callers 3

AutoUpdaterFunction · 0.85
updateLatestFunction · 0.85

Calls 3

gteFunction · 0.70
logForDebuggingFunction · 0.70
getInitialSettingsFunction · 0.50

Tested by

no test coverage detected