Liking cljdoc? Tell your friends :D

version-clj.core


newer-or-equal?clj/s

(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.
sourceraw docstring

newer?clj/s

(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.
sourceraw docstring

older-or-equal?clj/s

(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.
sourceraw docstring

older?clj/s

(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.
sourceraw docstring

parseclj/s

(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.
sourceraw docstring

qualified?clj/s

(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.
sourceraw docstring

qualifier-dataclj/s

(qualifier-data version & [opts])

Get qualifier data from version.

Get qualifier data from version.
sourceraw docstring

snapshot?clj/s

(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.
sourceraw docstring

version->seqclj/s

(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.
sourceraw docstring

version-compareclj/s

(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`.
sourceraw docstring

version-dataclj/s

(version-data version & [opts])

Get version data from version.

Get version data from version.
sourceraw docstring

version-seq-compareclj/s

(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`.
sourceraw docstring

version-seq-sortclj/s

(version-seq-sort version-seqs)

Sort a seq of version seqs.

Sort a seq of version seqs.
sourceraw docstring

version-sortclj/s

(version-sort versions)

Sort a seq of version strings.

Sort a seq of version strings.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close