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

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

The next-gen web framework.
Extremely Popular
Go to Latest
function semver.maxVersion
Deprecated
Deprecated

(will be removed after 0.200.0) Use comparatorMax() instead

A compatibility function to get the maximum version of a range string.

import { semver } from "https://deno.land/x/fresh@1.4.0/src/dev/deps.ts";
const { maxVersion } = semver;

Parameters

comparator: SemVerComparator

The comparator

Returns

The maximum version for the given range