Skip to content

nextVersion

function nextVersion(existing): string;

Defined in: snapshot.ts:98

Compute the next v{n} version given the set of existing version strings.

Parameter Type
existing string[]

string

import { nextVersion } from "@xtandard/flags";
nextVersion([]); // → "v1"
nextVersion(["v1", "v2"]); // → "v3"