libyear
Version:
A simple measure of software dependency freshness
17 lines (16 loc) • 539 B
TypeScript
/**
* Filter out "time" metadata about the package
* and deprecated versions.
*/
export declare const getSanitisedReleases: (versions: Record<string, {
deprecated?: string;
time: string;
}>, currentVersion: string) => Record<string, string>;
/**
* Filter pre-release versions.
*/
export declare const getStableReleases: (releases: Record<string, string>) => Record<string, string>;
/**
* Tally releases by type.
*/
export declare const getReleasesByType: (versions: string[]) => Record<"major" | "minor" | "patch", number>;