(compare-strings v1 v2)
Compare two semantic version strings
Compare two semantic version strings
(equal? v1 v2)
Returns true if v1 is equal to v2 else false
Returns true if v1 is equal to v2 else false
(increment-major version)
Returns a copy of a given version with the major version icremented
Returns a copy of a given version with the major version icremented
(increment-minor version)
Returns a copy of the given version with the minor version incremented
Returns a copy of the given version with the minor version incremented
(increment-patch version)
Returns a copy of the given version with the patch version incremented
Returns a copy of the given version with the patch version incremented
(newer? v1 v2)
Returns true if v1 is newer than v2 else false
Returns true if v1 is newer than v2 else false
(older? v1 v2)
Returns true if v1 is older than v2 else false
Returns true if v1 is older than v2 else false
(parse version)
Parse a semantic version string returning nil if the input is invalid or a Version if the input is valid
Parse a semantic version string returning nil if the input is invalid or a Version if the input is valid
(render version)
Takes a semantic version type and renders it back as a string
Takes a semantic version type and renders it back as a string
(snapshot? version)
(sorted versions)
Given a list of semantic version strings, compare them and return them in sorted order
Given a list of semantic version strings, compare them and return them in sorted order
(transform modifier version)
Transform a version string by applying a modifier function
This might typically be used to alter the version in some way like incrementing a version part or adding something to the metadata or pre-release parts
Example: (transform "1.0.0" increment-major)
Transform a version string by applying a modifier function This might typically be used to alter the version in some way like incrementing a version part or adding something to the metadata or pre-release parts Example: (transform "1.0.0" increment-major)
(valid? version)
Returns true if an input string is a valid semantic version string
Returns true if an input string is a valid semantic version string
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close