Functions

f
assetName(
flavor: "sea" | "deno",
platform?: NodeJS.Platform,
arch?: string
): string | null

The release asset that replaces a running binary of this flavor, or null when this platform has no published build — the SEA matrix covers three targets, the deno one five.

f
compare(
a: string,
b: string
): number

Compares two x.y.z versions the way a release line orders them: negative when a is older, 0 when they are the same, positive when a is newer.

f
find(
version?: string,
fetchImpl?: fetch
): Promise<Release>

Fetches the newest release, or the one matching version when pinned.

f
parseChecksums(text: string): Map<string, string>

Parses the release's checksums.txt (sha256sum output) into name → sha256.

Interfaces

I
Release

A published release, reduced to what an upgrade needs.

I
ReleaseAsset

One downloadable file on a release.

Variables

v
LookupFailed: Failure.FailureFactory<"UpgradeLookupFailed", { url: string; reason: string; }>

The release lookup could not be answered — no network, a proxy, an HTTP error, or GitHub's unauthenticated rate limit.