mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2025-12-27 21:18:17 +00:00
Set Jest config file in package script Include module path Include tests in project folders Remove index module exports Hardcode configuration parameters Move parameter binding into main run function Use alias imports Run test sequentially Remove cleanup (async conflict) Revert Jest option Increase test timeout to 15 seconds
27 lines
940 B
TypeScript
27 lines
940 B
TypeScript
import { CommitInfo } from "./CommitInfo";
|
|
import { VersionType } from "./VersionType";
|
|
|
|
/**
|
|
* Represents the "resolved" information about a version change, serves
|
|
* as the input to formatters that produce the final output
|
|
*/
|
|
export class VersionInformation {
|
|
/**
|
|
* Creates a new version information instance
|
|
* @param major - The major version number
|
|
* @param minor - The minor version number
|
|
* @param patch - The patch version number
|
|
* @param increment - The number of commits for this version
|
|
* @param type - The type of change the current range represents
|
|
* @param commits - The list of commits for this version
|
|
* @param changed - True if the version has changed, false otherwise
|
|
*/
|
|
constructor(
|
|
public major: number,
|
|
public minor: number,
|
|
public patch: number,
|
|
public increment: number,
|
|
public type: VersionType,
|
|
public commits: CommitInfo[],
|
|
public changed: boolean) { }
|
|
}
|