Describe the bug
I cannot specify the prerelease number during an increment.
Steps to Reproduce
import { parse, increment, format, equals } from "@std/semver";
const v1 = parse("1.2.3");
const v2 = increment(v1, "pre", { prerelease: "pr.1" })
console.log(format(v2)); // "1.2.3-pr.1.0"
const expected = parse("1.2.3-pr.1");
Deno.exit(equals(v2, expected) ? 0 : 1); // exit 1
Expected behavior
If I specify the prerelease value to be in the form {identifier}.{number} then I expect the prerelease value of the version to be [identifier, number] specifically.
Environment
deno 2.5.0 (stable, release, x86_64-apple-darwin)
v8 14.0.365.4-rusty
typescript 5.9.2
1.0.5