versionresolver

package
v2.40.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveConstraint

func ResolveConstraint(constraintRaw string, availableVersions []string) (string, error)

ResolveConstraint takes an npm semver constraint string and a list of available versions, and returns the latest version that satisfies the constraint. Pre-release versions are skipped unless the constraint explicitly targets them.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL