(in-range? range version)
Returns true
if the version falls within the specified range, otherwise false
.
Returns `true` if the version falls within the specified range, otherwise `false`.
(same-version-number? ver1 ver2)
Returns true
if the two versions have the same [major
minor
patch
], otherwise false
.
Returns `true` if the two versions have the same [`major` `minor` `patch`], otherwise `false`.
(semver s & {:keys [throw-exceptions] :as opts})
Creates a SemVer
record from a string. Returns nil
if the input is invalid, unless :throws-exception
is
explicity set in opts
.
Creates a `SemVer` record from a string. Returns `nil` if the input is invalid, unless `:throws-exception` is explicity set in `opts`.
(semver-range s & {:keys [throw-exceptions] :as opts})
Creates a SemVerRange
record from a string. Returns nil
if the input is invalid, unless :throws-exception
is
explicity set in opts
.
Creates a `SemVerRange` record from a string. Returns `nil` if the input is invalid, unless `:throws-exception` is explicity set in `opts`.
(semver-range? s)
Return true
if the string is a valid semver-range
, otherwise false
.
Return `true` if the string is a valid `semver-range`, otherwise `false`.
(semver? s)
Return true
if the string is a valid semver
, otherwise false
.
Return `true` if the string is a valid `semver`, otherwise `false`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close