pre release refactoring + update changelog

This commit is contained in:
henrygd
2025-10-25 16:34:32 -04:00
parent a9657f9c00
commit 74b78e96b3
6 changed files with 39 additions and 16 deletions

View File

@@ -367,6 +367,12 @@ export function formatDuration(
.join(" ")
}
/** Parse semver string into major, minor, and patch numbers
* @example
* const semVer = "1.2.3"
* const { major, minor, patch } = parseSemVer(semVer)
* console.log(major, minor, patch) // 1, 2, 3
*/
export const parseSemVer = (semVer = ""): SemVer => {
// if (semVer.startsWith("v")) {
// semVer = semVer.slice(1)