function validateVersion(currentVersion, newVersion, tags) {
    if (!gt_default()(newVersion, currentVersion)) {
        throw new Error(`The new version "${newVersion}" is not greater than the current version "${currentVersion}".`);
    }
    if (tags.has(`v${newVersion}`)) {
        throw new Error(`Tag "v${newVersion}" for new version "${newVersion}" already exists.`);
    }
}
/**
 * Throws an error if the current version is equal to the new version, if a
 * tag for the new version already exists, or if the new version is less than
 * the current version.
 *
 * @param currentVersion - The most recently released version.
 * @param newVersion - The new version to be released.
 * @param tags - All tags reachable from the current git HEAD, as from "git
 * tag --merged".
 */
Throws an error if the current version is equal to the new version, if a
tag for the new version already exists, or if the new version is less than
the current version.

@param currentVersion - The most recently released version.
@param newVersion - The new version to be released.
@param tags - All tags reachable from the current git HEAD, as from "git
tag --merged".
Throws an error if the current version is equal to the new version if a tag for the new version already exists or if the new version is less than the current version . @param currentVersion - The most recently released version . @param newVersion - The new version to be released . @param tags - All tags reachable from the current git HEAD as from " git tag -- merged " .
function validateVersion(currentVersion, newVersion, tags) {
    if (!gt_default()(newVersion, currentVersion)) {
        throw new Error(`The new version "${newVersion}" is not greater than the current version "${currentVersion}".`);
    }
    if (tags.has(`v${newVersion}`)) {
        throw new Error(`Tag "v${newVersion}" for new version "${newVersion}" already exists.`);
    }
}
function validateVersion ( currentVersion , newVersion , tags ) { if ( ! gt_default ( ) ( newVersion , currentVersion ) ) { throw new Error ( ` ${ newVersion } ${ currentVersion } ` ) ; } if ( tags . has ( ` ${ newVersion } ` ) ) { throw new Error ( ` ${ newVersion } ${ newVersion } ` ) ; } }
Throws an error if the current version is equal to the new version, if a
 tag for the new version already exists, or if the new version is less than
 the current version.
Throws an error if the current version is equal to the new version if a tag for the new version already exists or if the new version is less than the current version .