Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function comparatorMax
import { comparatorMax } from "https://deno.land/std@0.195.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