Module

std/semver/mod.ts>difference

Deno standard library
Go to Latest
function difference
import { difference } from "https://dotland.deno.dev/std@0.181.0/semver/mod.ts";

Returns difference between two versions by the release type (major, premajor, minor, preminor, patch, prepatch, or prerelease), or null if the versions are the same.

Parameters

version1: string | SemVer
version2: string | SemVer
optional
options: Options