2.3.2 - 2024-09-29
- Merged #33 - Fix redefining autostarting state
2.3.1 - 2024-09-29
- Merged #31 - Fix linting with new clj-kondo
2.3.0 - 2022-12-03
- Merged #30 - Add clj-kondo support for defstate macro
2.2.1 - 2021-03-20
- Merged #26 - Support tools.namespace 0.3.x and and 1.x.x
2.2.0 - 2021-03-20
- Merged #28 - Add autostart extension
2.1.5 - 2020-09-04
- Merged #20 - Allow :start to be specified with a falsy value
2.1.4 - 2020-07-30
- Fixed reflection warnings.
2.1.3 - 2020-04-10
Updated docs to be hosted on cljdoc.org.
2.1.2 - 2020-03-17
- Fixed #18 - mount.extensions.namespace-deps does not discover state dependencies via empty namespaces
- Merged #17 - Throw Error when accessing an unstarted state
2.1.1 - 2018-01-06
- The
explicit-deps
andnamespace-deps
extension'sstart
andstop
functions now support 0-arity, just like the standard start/stop functions.
2.1.0 - 2017-12-30
- 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
- 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
andup-to
.
- 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
- Allow AOT-ing of defstates
0.9.6 - 2016-02-29
- Add optional bindings to
defstate
, and:bindings
option tostart
. See README for details. - Added
:on-reload
option fordefstate
. - Added
:on-cascade
option fordefstate
.
- The
on-reload
function now defaults tonil
, and only overrides the states':on-reload
when set to a non-nil value.
0.9.5 - 2016-02-20
- Fix hang when starting or stopping no states in parallel.
- Fix wrong initialisation of parallel fork tasks.
- The
dot
function, for generating a Graphviz graph of all the states.
0.9.4 - 2016-02-11
- Memoization (with a cache of 1) has been added to the var dependency graph calculation, for speed.
- 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
- Add
:parallel
option tostart
andstop
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.
- 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
- Add the
on-reload
function to the API, replacing the:on-reload
state option. - Add the
:cascade
mode foron-reload
.
- Remove the
:on-reload
state option. It is replaced by theon-reload
function.
- 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
- Add
:on-reload
option. Defaults to:stop
, but can be set to only redefine the:lifecycle
expressions.
- Removed
:stop-on-reload?
option. It has been replaced with the:on-reload
option.
- 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.
- Initial release