(targetVersion: string)
| 153 | * current version until stable catches up, preventing downgrades. |
| 154 | */ |
| 155 | export function shouldSkipVersion(targetVersion: string): boolean { |
| 156 | const settings = getInitialSettings() |
| 157 | const minimumVersion = settings?.minimumVersion |
| 158 | if (!minimumVersion) { |
| 159 | return false |
| 160 | } |
| 161 | // Skip if target version is less than minimum |
| 162 | const shouldSkip = !gte(targetVersion, minimumVersion) |
| 163 | if (shouldSkip) { |
| 164 | logForDebugging( |
| 165 | `Skipping update to ${targetVersion} - below minimumVersion ${minimumVersion}`, |
| 166 | ) |
| 167 | } |
| 168 | return shouldSkip |
| 169 | } |
| 170 | |
| 171 | // Lock file for auto-updater to prevent concurrent updates |
| 172 | const LOCK_TIMEOUT_MS = 5 * 60 * 1000 // 5 minute timeout for locks |
no test coverage detected