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

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

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

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