Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.199.0/semver/mod.ts";

Parameters

comparator: SemVerComparator

The comparator

Returns

The maximum version for the given range