Skip to main content
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function difference
import { difference } from "https://deno.land/std@0.195.0/semver/difference.ts";

Returns difference between two versions by the release type, or undefined if the versions are the same.

Returns

ReleaseType | undefined

Parameters

s0: string | SemVer
s1: string | SemVer
optional
options: { includePrerelease: boolean; }

Returns

ReleaseType | undefined