(collector {:keys [visitor check? loader]
:or {check? (constantly true) loader (default-loader)}})
Will create a collector function that takes a rewrite-clj
zipper, collects
all dependencies, loads the latest versions and returns each artifact that
needs to be updated, incl. a :latest-version
key.
Will create a collector function that takes a `rewrite-clj` zipper, collects all dependencies, loads the latest versions and returns each artifact that needs to be updated, incl. a `:latest-version` key.
(default-loader)
See loader
. Will use the default repositories and only return a flattened
seq of version maps.
See [[loader]]. Will use the default repositories and only return a flattened seq of version maps.
(file-updater opts)
See updater
. Will update a file in place.
If the file is modified while the update is ongoing, this will throw an exception.
See [[updater]]. Will update a file in place. If the file is modified while the update is ongoing, this will throw an exception.
(latest-version artifact)
(latest-version loader artifact)
Return the latest version from the given loader, represented as a version map.
Return the latest version from the given loader, represented as a version map.
(loader opts)
See ancient-clj.repositories/loader
. Will only return a flattened seq
of version maps.
See [[ancient-clj.repositories/loader]]. Will only return a flattened seq of version maps.
(read-artifact artifact)
Convert artifact vector or symbol to a map of:
:group
: artifact group,:id
: artifact ID,:symbol
: normalized artifact symbol (incl. group/ID),:form
: normalized artifact vector,:value
: original value (if a vector was given).Convert artifact vector or symbol to a map of: - `:group`: artifact group, - `:id`: artifact ID, - `:symbol`: normalized artifact symbol (incl. group/ID), - `:form`: normalized artifact vector, - `:value`: original value (if a vector was given).
(sorted-versions artifact)
(sorted-versions loader artifact)
Return a sorted list of versions (oldest -> newest), represented as version maps.
Return a sorted list of versions (oldest -> newest), represented as version maps.
(updater {:keys [visitor check? update? loader]
:or {check? (constantly true)
update? (constantly true)
loader (default-loader)}
:as opts})
Will create an updater functions that takes a rewrite-clj
zipper, collects
all dependencies, loads the latest versions and updates them. The result will
be an updated zipper.
Will create an updater functions that takes a `rewrite-clj` zipper, collects all dependencies, loads the latest versions and updates them. The result will be an updated zipper.
(wrap-as-string loader)
Wrap a loader
to only return the contained version strings.
Wrap a [[loader]] to only return the contained version strings.
(wrap-ignore loader what-to-ignore)
Wrap the given loader to ignore certain version types, given as a seq of keywords:
:snapshot
: If given, removes SNAPSHOT versions from the result.:qualified
: If given, removes qualified versions from the result (except
SNAPSHOT ones).Wrap the given loader to ignore certain version types, given as a seq of keywords: - `:snapshot`: If given, removes SNAPSHOT versions from the result. - `:qualified`: If given, removes qualified versions from the result (except SNAPSHOT ones).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close