UNPKG

941 BTypeScriptView Raw
1import { VersionLabel } from "./release";
2import { ReleaseCalculationOptions } from "./types";
3declare enum SEMVER {
4 major = "major",
5 premajor = "premajor",
6 minor = "minor",
7 preminor = "preminor",
8 patch = "patch",
9 prepatch = "prepatch",
10 noVersion = ""
11}
12export declare const preVersionMap: Map<SEMVER, SEMVER>;
13export declare type IVersionLabels = Map<VersionLabel | "none", string[]>;
14export default SEMVER;
15/** Given two labels determine the next SEMVER bump. */
16export declare function getHigherSemverTag(left: SEMVER, right: string): SEMVER;
17/**
18 * Determine the version bump from the labels on merged PRs.
19 * Respects skip-release labels and the "onlyPublishWithReleaseLabel"
20 * strategy.
21 */
22export declare function calculateSemVerBump(labels: string[][], labelMap: IVersionLabels, { onlyPublishWithReleaseLabel }?: ReleaseCalculationOptions): SEMVER | SEMVER.noVersion;
23//# sourceMappingURL=semver.d.ts.map
\No newline at end of file