(newer-or-equal? a b & [opts])
Check whether the given version string is newer than or equal to the other candidate.
Check whether the given version string is newer than or equal to the other candidate.
(newer? a b & [opts])
Check whether the given version string is newer than the other candidate.
Check whether the given version string is newer than the other candidate.
(older-or-equal? a b & [opts])
Check whether the given version string is older than or equal to the other candidate.
Check whether the given version string is older than or equal to the other candidate.
(older? a b & [opts])
Check whether the given version string is older than the other candidate.
Check whether the given version string is older than the other candidate.
(parse version & [opts])
Parse version into a map of:
:version
: a sequence representing the parsed version,:qualifiers
: a set containing all string qualifiers,:snapshot?
: true if version represents a snapshot,:qualified?
: true if version is qualified.Parse version into a map of: - `:version`: a sequence representing the parsed version, - `:qualifiers`: a set containing all string qualifiers, - `:snapshot?`: true if version represents a snapshot, - `:qualified?`: true if version is qualified.
(qualified? version & [opts])
Check if the given version (string or seq) represents a qualified version.
Check if the given version (string or seq) represents a qualified version.
(qualifier-data version & [opts])
Get qualifier data from version.
Get qualifier data from version.
(snapshot? version & [opts])
Check if the given version (string or seq) represents a SNAPSHOT.
Check if the given version (string or seq) represents a SNAPSHOT.
(version->seq
version
&
[{:keys [qualifiers] :or {qualifiers default-qualifiers} :as opts}])
Convert version string to version seq (a pair of version/qualifiers) by
using .
, -
and integer/letter changes to detect version parts.
Convert version string to version seq (a pair of version/qualifiers) by using `.`, `-` and integer/letter changes to detect version parts.
(version-compare
a
b
&
[{:keys [qualifiers] :or {qualifiers default-qualifiers} :as opts}])
Compare two version strings; returns -1
, 0
or 1
.
Compare two version strings; returns `-1`, `0` or `1`.
(version-data version & [opts])
Get version data from version.
Get version data from version.
(version-seq-compare
a
b
&
[{:keys [qualifiers] :or {qualifiers default-qualifiers} :as opts}])
Compare two sequences created by version->seq
; returns -1
, 0
or 1
.
Compare two sequences created by `version->seq`; returns `-1`, `0` or `1`.
(version-seq-sort version-seqs)
Sort a seq of version seqs.
Sort a seq of version seqs.
(version-sort versions)
Sort a seq of version strings.
Sort a seq of version strings.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close