Liking cljdoc? Tell your friends :D

Change Log

2.1.5 - 2020-09-04

Fixed

  • Merged #20 - Allow :start to be specified with a falsy value

2.1.4 - 2020-07-30

Fixed

  • Fixed reflection warnings.

2.1.3 - 2020-04-10

Updated docs to be hosted on cljdoc.org.

2.1.2 - 2020-03-17

Fixed

  • Fixed #18 - mount.extensions.namespace-deps does not discover state dependencies via empty namespaces

Changed

  • Merged #17 - Throw Error when accessing an unstarted state

2.1.1 - 2018-01-06

Added

  • The explicit-deps and namespace-deps extension's start and stop functions now support 0-arity, just like the standard start/stop functions.

2.1.0 - 2017-12-30

Added

  • Extension for inferred dependency graph among defstates using the optional tools.namespace library.

2.0.0 - 2017-08-24 - BREAKING

  • See README and documentation for changes and migration guide.

0.9.8 - 2016-05-25

Added

  • Setting a log function via log-fn, which is called on state changes.
  • An exception is thrown when the state graph cannot be created due to missing sources. This only affects functions such as parallel and up-to.

Changed

  • The defstate macro now disallows defining a var that already exists and is not a defstate.
  • The documentation has moved to codox

0.9.7 - 2016-03-01

Fixed

  • Allow AOT-ing of defstates

0.9.6 - 2016-02-29

Added

  • Add optional bindings to defstate, and :bindings option to start. See README for details.
  • Added :on-reload option for defstate.
  • Added :on-cascade option for defstate.

Changed

  • The on-reload function now defaults to nil, and only overrides the states' :on-reload when set to a non-nil value.

0.9.5 - 2016-02-20

Fixed

  • Fix hang when starting or stopping no states in parallel.
  • Fix wrong initialisation of parallel fork tasks.

Added

  • The dot function, for generating a Graphviz graph of all the states.

0.9.4 - 2016-02-11

Changed

  • Memoization (with a cache of 1) has been added to the var dependency graph calculation, for speed.

Fixed

  • Stopping :up-to an already stopped state now will stop its started dependencies. Same for starting up to an already started state.
  • Starting or stopping :up-to an already started or stopped state will now not start or stop that state again.

0.9.3 - 2016-02-05

Added

  • Add :parallel option to start and stop options. Value is number of threads to use, to start/stop independent states in parallel.
  • Internally mount-lite now builds a proper graph of dependencies, instead of an ordered sequence.
  • Add processing of :dependencies meta data in a state var, in order to influence the deduced state dependency graph.
  • Add status function to main API.

Changed

  • Start/stop option :up-to now uses the internal dependency graph to only start (or stop) the dependencies (or dependents) of the given var.
  • Because of the finer grained :up-to behaviour, the "cascading stop" on a state redefinition has also improved.

0.9.2 - 2016-01-30

Added

  • Add the on-reload function to the API, replacing the :on-reload state option.
  • Add the :cascade mode for on-reload.

Removed

  • Remove the :on-reload state option. It is replaced by the on-reload function.

Fixed

  • Fix docstring of defstate mentioning removed :stop-on-reload? key.
  • Fix stale metadata on redefinition with on-reload set to :lifecycle.

0.9.1 - 2016-01-30

Added

  • Add :on-reload option. Defaults to :stop, but can be set to only redefine the :lifecycle expressions.

Removed

  • Removed :stop-on-reload? option. It has been replaced with the :on-reload option.

Changed

  • The order sequence number now increments in steps of 10. This allows new defstates in a REPL session to be placed in between other states (using alter-meta!).
  • Moved some code from macros to functions in internals.
  • The lifecycle keywords in the metadata of the state vars are not namespaced anymore.

0.9

  • Initial release

Can you improve this documentation?Edit on GitHub

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

× close