Skip to main content
Module

std/semver/mod.ts>comparatorMax

Deno standard library
Go to Latest
function comparatorMax
Re-export
Deprecated
Deprecated

(will be removed in 0.214.0) Use rangeMax instead.

import { comparatorMax } from "https://deno.land/std@0.213.0/semver/mod.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