Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pup/deps.ts>SemVer

Universal process manager built in Deno
Go to Latest
class SemVer
import { SemVer } from "https://deno.land/x/pup@1.0.0-beta.34/deps.ts";

Constructors

new
SemVer(version: string | SemVer, options?: Options)

Properties

build: ReadonlyArray<string>
major: number
minor: number
options: Options
patch: number
prerelease: Array<string | number>
raw: string
version: string

Methods

compare(other: string | SemVer): 1 | 0 | -1
compareBuild(other: string | SemVer): 1 | 0 | -1
compareMain(other: string | SemVer): 1 | 0 | -1
comparePre(other: string | SemVer): 1 | 0 | -1
format(opts?: { style?:
| "release"
| "prerelease"
| "build"
| "full"
; }
): string
increment(
release: ReleaseType,
identifier?: string,
metadata?: string,
): SemVer
toString(): string