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

std/_tools/release/deps.ts>semver.inc

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function semver.inc
import { semver } from "https://deno.land/std@0.137.0/_tools/release/deps.ts";
const { inc } = semver;

Return the version incremented by the release type (major, minor, patch, or prerelease), or null if it's not valid.

Parameters

version: string | SemVer
release: ReleaseType
optional
optionsOrLoose: boolean | Options
optional
identifier: string

Returns

string | null