Liking cljdoc? Tell your friends :D

k16.kmono.version.semver


inc-versionclj

(inc-version version inc-type)
(inc-version version inc-type suffix)

Increment a given semver version according to the given inc-type.

An optional suffix can be provided to be appended to the end of the version string.

Examples:

(inc-version "0.0.0" :patch) ;; => "0.0.1"
(inc-version "0.0.0" :minor) ;; => "0.1.0"
(inc-version "0.0.0" :major) ;; => "1.0.0"

(inc-version "0.0.1" :build) ;; => "0.0.1.1"
(inc-version "0.0.1.1" :patch) ;; => "0.0.2.0"

(inc-version "0.0.0" :major "-SNAPSHOT") ;; => "1.0.0-SNAPSHOT"
Increment a given semver `version` according to the given `inc-type`.

An optional `suffix` can be provided to be appended to the end of the
version string.

Examples:

```clojure
(inc-version "0.0.0" :patch) ;; => "0.0.1"
(inc-version "0.0.0" :minor) ;; => "0.1.0"
(inc-version "0.0.0" :major) ;; => "1.0.0"

(inc-version "0.0.1" :build) ;; => "0.0.1.1"
(inc-version "0.0.1.1" :patch) ;; => "0.0.2.0"

(inc-version "0.0.0" :major "-SNAPSHOT") ;; => "1.0.0-SNAPSHOT"
```
sourceraw docstring

parse-version-stringclj

(parse-version-string version)
source

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

× close