An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 9.9% on proxy.golang.org
Top 9.3% dependent packages on proxy.golang.org

proxy.golang.org : deps.dev/util/semver

Package semver handles versions as defined by semver.org Version 2.0.0 as well as constraints applied to them. By default the package is permissive, honoring practice rather than the standard, since no packaging systems implement the standard strictly. The System type controls which packaging system's rules apply. A semantic version string is a sequence of dot-separated components, usually numbers that specify a version, possibly followed by alphanumeric tags. The specification is at https://semver.org, but this practice is variant. For instance, RubyGems does not follow it exactly in that a pre-release tag can be introduced with a period rather than a hyphen. More generally, semver.org requires three version numbers (major, minor, patch) but in practice some are often missing and sometimes, especially with RubyGems, there may be more than three. The default syntax is parsed as follows. Variations are discussed below. No spaces may appear in a version string, and version strings are entirely printable ASCII from the set: Except for elements of the build tag, numbers may not begin with a zero (except of course for literal value 0). Comparisons between versions match the semver.org specification: Variants: The constraint grammar is derived from documentation, examples, and examination of public usage. (There is no standard uniform constraint algebra; Semver only specifies versions.) Again, we first describe the default grammar (that of DefaultSystem) and then list variants. The grammar is written assuming VERSION and WILDCARD as terminals, with syntax defined above except that WILDCARD requires at least one of major, minor, or patch numbers to be a single wildcard character from the set although PyPI accepts only * as a wildcard character. Items within a constraint can be separated by spaces. The character set is that of versions with the addition of The default constraint grammar is listed here. Comments identify which non-default system supports each binary operator. A span must be the only item in an andList. That is, a span may not be "anded", only "ored". Operators supported: Other variants:

Registry - Source - Documentation - JSON - codemeta.json
purl: pkg:golang/deps.dev/util/semver
License: Apache-2.0
Latest release: almost 2 years ago
First release: almost 2 years ago
Namespace: deps.dev/util
Dependent packages: 1
Stars: 344 on GitHub
Forks: 36 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 22 hours ago

    Loading...
    Readme
    Loading...