Skip to main content
Module

std/semver/mod.ts>maxVersion

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function 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 { maxVersion } from "https://deno.land/std@0.195.0/semver/mod.ts";

Parameters

comparator: SemVerComparator

The comparator

Returns

The maximum version for the given range