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

std/semver/mod.ts>comparatorMax

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function comparatorMax
Re-export
import { comparatorMax } from "https://deno.land/std@0.199.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