subset(r1, r2)
method to determine if r1
range is entirely contained by r2
range.includePrelease
mode where version ranges like 1.0.0 - 2.0.0
would include 3.0.0-pre
and not 1.0.0-pre
.2.0.0-pre
would be included in ^1.0.0
if includePrerelease
was set to true.simplifyRange
method to attempt to generate a more human-readable range expression that is equivalent to a supplied range, for a given set of versions.require('semver/preload')
to load the entire module without using lazy getter methods.=>
functions, and classes.rtl
option to coerce from right to left*
in semver.intersectsFix intersects
logic.
This is technically a bug fix, but since it is also a change to behavior that may require users updating their code, it is marked as a major version increment.
minVersion
methodloose
param to an options object, with backwards-compatibility protection.includePrerelease
option flag.minSatisfying
methodprerelease(v)
that returns prerelease components*
range*
with a prerelease identifier