Utility functions for working with npm semver ranges.
Provides higher-level operations that build on NPMSemver.matches?/2
for common npm workflows like finding the best matching version,
filtering compatible versions, and determining update targets.
Summary
Functions
Check if any version in the list satisfies the range.
Filter a list of versions to only those satisfying a range.
Find the highest version from a list that satisfies a range.
Find the lowest version from a list that satisfies a range.
Determine the type of update between two versions.
Functions
Check if any version in the list satisfies the range.
Filter a list of versions to only those satisfying a range.
Find the highest version from a list that satisfies a range.
Returns {:ok, version} or :none.
Find the lowest version from a list that satisfies a range.
Determine the type of update between two versions.
Returns :major, :minor, :patch, or :prerelease.