Documentation
¶
Overview ¶
Package nodesemver translates the npm semver package (semver 7.8.5) calls Pi's package manager makes. ValidRange, Satisfies and MaxSatisfying are validRange, satisfies and maxSatisfying; Parse is valid, and SemVer.Compare gives gt and rcompare. It implements node-semver's default options only (loose and includePrerelease false) and keeps its regular expressions, including the length-bounded forms its Range and SemVer parsers match against.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaxSatisfying ¶
MaxSatisfying is maxSatisfying(versions, r): the first highest version the range accepts.
func ValidRange ¶
ValidRange is validRange(r): the normalized range, or false where it returns null.
Types ¶
type SemVer ¶
type SemVer struct {
// contains filtered or unexported fields
}
SemVer is a parsed version (classes/semver.js). Prerelease identifiers keep their text: node-semver's numeric identifiers are canonical digit strings, so text equality is its === and numeric comparison happens in compareIdentifiers.