Skip to main content
Module

std/semver/range_max.ts>rangeMax

The Deno Standard Library
Go to Latest
function rangeMax
Deprecated
Deprecated

(will be removed in 1.0.0) Use greaterThanRange or lessThanRange for comparing ranges and semvers. The maximum version of a range is often not well defined, and therefore this API shouldn't be used. See https://github.com/denoland/deno_std/issues/4365 for details.

The maximum valid SemVer for a given range or INVALID

import { rangeMax } from "https://deno.land/std@0.223.0/semver/range_max.ts";

Parameters

range: Range

The range to calculate the max for

Returns

A valid SemVer or INVALID