No JSDoc comment in source yet.
API
@Component()
export class UpdateCheckService implements UpdateCheck {
@Use() private readonly http!: HttpFetch;
@Use() private readonly clock!: Clock;
async check(force = false): Promise<UpdateCheckResponse>;
}Dependencies & Wiring
Extracted from class decoratorsMethods (1)
check
async check(force = false): Promise<UpdateCheckResponse>Never throws; never makes a network call when disabled or (without force) while
the cache is fresh. force — the web's manual "check for updates" action — skips
the freshness check and performs a real lookup even over a warm cache: the cache
exists to shield GitHub's unauthenticated rate limit from passive checks fired
by every sidebar open, and an explicit user click is rare enough to press through
it. Everything else is unchanged: the opt-out stays authoritative (force never
dials out under PENGUIN_UPDATE_CHECK=off), the outcome lands in the same cache
(subsequent passive checks reuse it), and concurrent callers — forced or not —
still share one in-flight lookup.
@paramforce?
unknown@returns
Promise<UpdateCheckResponse>