Skip to main content
Go to Latest
function comparatorMax
import { comparatorMax } from "https://deno.land/std@0.200.0/semver/comparator_max.ts";

The maximum version that could match this comparator.

If an invalid comparator is given such as <0.0.0 then an out of range semver will be returned.

Parameters

semver: SemVer
operator: Operator

Returns

the version, the MAX version or the next smallest patch version