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

x/fresh/src/dev/deps.ts>semver.difference

The next-gen web framework.
Extremely Popular
Go to Latest
function semver.difference
import { semver } from "https://deno.land/x/fresh@1.5.3/src/dev/deps.ts";
const { difference } = semver;

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