Advanced version range manipulation.
Extends NPMSemver with range intersection, union, and analysis operations.
Summary
Functions
Classifies a range by type.
Checks if two ranges can be satisfied by the same version.
Returns a human-readable description of a range.
Checks if a range is exact (pinned to a single version).
Extracts the major version from a range (for caret ranges).
Finds the highest version that satisfies a range from a list.
Finds the lowest version that satisfies a range from a list.
Functions
Classifies a range by type.
Checks if two ranges can be satisfied by the same version.
Returns a human-readable description of a range.
Checks if a range is exact (pinned to a single version).
@spec major(String.t()) :: non_neg_integer() | nil
Extracts the major version from a range (for caret ranges).
Finds the highest version that satisfies a range from a list.
Finds the lowest version that satisfies a range from a list.