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