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