Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/changelog/src/deps.ts>Semver

Node & Deno package to parse and generate changelogs
Go to Latest
class Semver
import { Semver } from "https://deno.land/x/changelog@v2.3.0/src/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(): string
increment(release: ReleaseType, identifier?: string): SemVer
toString(): string