class VersionUtils

VersionUtils - Semantic versioning operations

Constructors

new
VersionUtils()

Properties

Methods

calculateNewVersion(
currentVersion: string,
commits: ConventionalCommit[],
bumpType?: BumpType,
): string

Calculate new version based on commits and bump type

getCurrentVersion(): Promise<string>

Get current version from git tags first, then fall back to version file

parseVersion(version: string): { major: number; minor: number; patch: number; prerelease: string | null; }

Parse semantic version into components