UNPKG

keep-a-changelog

Version:

Node package to parse and generate changelogs following the [keepachangelog](https://keepachangelog.com/) format.

30 lines 1.2 kB
import Change from "./Change.js"; import type Changelog from "./Changelog.js"; import type { SemVer } from "./deps.js"; export default class Release { changelog?: Changelog; parsedVersion?: SemVer; date?: Date; yanked: boolean; description: string; changes: Map<string, Change[]>; constructor(version?: string | SemVer, date?: string | Date, description?: string); get version(): string | undefined; compare(release: Release): number; combineChanges(changes: Map<string, Change[]>): this; isEmpty(): boolean; setVersion(version?: string | SemVer): void; setDate(date?: Date | string): void; setYanked(yanked?: boolean): this; addChange(type: string, change: Change | string): this; added(change: Change | string): this; changed(change: Change | string): this; deprecated(change: Change | string): this; removed(change: Change | string): this; fixed(change: Change | string): this; security(change: Change | string): this; toString(changelog?: Changelog): string; getCompareLink(changelog?: Changelog): string | undefined; getLinks(changelog: Changelog): string[]; } //# sourceMappingURL=Release.d.ts.map