Liking cljdoc? Tell your friends :D

ancient-clj.core


artifact-outdated-string?

(artifact-outdated-string? artifact & [opts])

Check whether the given artifact is outdated, returning either nil or a string representing the latest version. (For possible options see ancient-clj.core/versions-per-repository!.)

Check whether the given artifact is outdated, returning either `nil` or
a string representing the latest version.
(For possible options see `ancient-clj.core/versions-per-repository!`.)
sourceraw docstring

artifact-outdated?

(artifact-outdated? artifact & [opts])

Check whether the given artifact is outdated, returning either nil or a map representing the latest version. (For possible options see ancient-clj.core/versions-per-repository!.)

Check whether the given artifact is outdated, returning either `nil` or
a map representing the latest version.
(For possible options see `ancient-clj.core/versions-per-repository!`.)
sourceraw docstring

default-repositories

source

latest-version!

(latest-version! artifact & [opts])

Return a map representing the latest artifact version. (For possible options see ancient-clj.core/versions-per-repository!.)

Return a map representing the latest artifact version.
(For possible options see `ancient-clj.core/versions-per-repository!`.)
sourceraw docstring

latest-version-string!

(latest-version-string! artifact & [opts])

Return a string representing the latest artifact version. (For possible options see ancient-clj.core/versions-per-repository!.)

Return a string representing the latest artifact version.
(For possible options see `ancient-clj.core/versions-per-repository!`.)
sourceraw docstring

maybe-create-loader

(maybe-create-loader spec & [opts])

Create loader function for the given spec. Will return nil for unknown loader types.

Create loader function for the given spec. Will return `nil` for
unknown loader types.
sourceraw docstring

maybe-create-loaders

(maybe-create-loaders m & {:keys [wrap], :or {wrap identity}})

Create loader map for a seq of ID/settings pairs representing different repositories. Will contain nil values for unknown loaders.

wrap will be called on each loader function.

Create loader map for a seq of ID/settings pairs representing
different repositories. Will contain `nil` values for unknown
loaders.

`wrap` will be called on each loader function.
sourceraw docstring

read-artifact

(read-artifact this)

Create a map of ':group', ':id', ':version' and ':version-string', as well as :symbol and :form.

Create a map of ':group', ':id', ':version' and ':version-string',
as well as `:symbol` and `:form`.
sourceraw docstring

version-strings!

(version-strings! artifact & [opts])

Return a seq of version strings. (For possible options see ancient-clj.core/versions-per-repository!.)

Return a seq of version strings.
(For possible options see `ancient-clj.core/versions-per-repository!`.)
sourceraw docstring

versions!

(versions! artifact & [opts])

Return a seq of version maps. (For possible options see ancient-clj.core/versions-per-repository!.)

Return a seq of version maps.
(For possible options see `ancient-clj.core/versions-per-repository!`.)
sourceraw docstring

versions-per-repository!

(versions-per-repository!
  artifact
  &
  [{:keys [repositories snapshots? qualified? sort],
    :or {repositories default-repositories,
         snapshots? true,
         qualified? true,
         sort :desc},
    :as opts}])

Return a map with either a seq of versions or a Throwable for each repository.

  • :repositories: a map of repository ID -> loader specification.
  • :snapshots?: if set to false, SNAPSHOT versions will be filtered.
  • :qualified?: if set to false, qualified versions (e.g. "*-alpha") will be filtered.
  • :sort: the order of the resulting versions seqs (:desc, :asc, :none).

A loader specification can either be a map (with at least the key :uri), a string or a two-parameter function (taking artifact group and ID).

Versions will be given as maps of :version-string and :version where the latter represents a version-clj value.

Return a map with either a seq of versions or a Throwable for each
repository.

- `:repositories`: a map of repository ID -> loader specification.
- `:snapshots?`: if set to false, SNAPSHOT versions will be filtered.
- `:qualified?`: if set to false, qualified versions (e.g. "*-alpha") will be filtered.
- `:sort`: the order of the resulting versions seqs (`:desc`, `:asc`, `:none`).

A loader specification can either be a map (with at least the key `:uri`), a string
or a two-parameter function (taking artifact group and ID).

Versions will be given as maps of `:version-string` and `:version` where the latter
represents a version-clj value.
sourceraw docstring

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

× close