Library
A library: an announced package, by its author's DID, its versions (newest first), and who uses it.
import type { HubRelease } from "#codebase/tcmts/hub"; export interface Library { did: string; package: string; /** its latest version ({@link latestRelease}): the newest neither withdrawn nor yanked, if there's one */ latest: HubRelease; /** its versions, newest first, but for those its author yanked */ versions: HubRelease[]; /** the versions its author yanked, newest first: all of them, for a library the hub doesn't list */ yanked: HubRelease[]; /** how many other libraries' releases hold one of its versions */ dependents: number; }