Welder exposes 3 major hooks and 1 minor one. Commands create a promise chain with the other 2 major hooks settle and reduce. Settle creates a hash of immutable data. Reduce operates in series on the same data. Settle and reduce are called with a name which expands by the command running it into a series of name sets to match against settle and reduce handles registered. If there are multiple handles registeredto the same matching name set, the minor hook, order, determines the sorting order of these handels.
command
: performs a set of settle and reduce hookssettle
: returns immutable data optionally cached, errors are okreduce
: operate on last value, error at the end is not ok, handlers can fix errorsorder
: used in settle and reduce to order multiple handles
'sync:graph'
- matches in the high level order, handles on the same match rely on a 'order' handle to sort them. default 'order' is to warn and sort by generated name, causing registration order to determine order.
- 'sync:graph:forward:before',
- 'sync:graph:forward',
- 'sync:graph:forward:after',
- 'graph:forward:before',
- 'graph:forward',
- 'graph:forward:after,
- 'sync:graph:before',
- 'graph:before',
- 'sync:graph'
- 'graph',
- 'graph:after',
- 'sync:graph:after',
- 'graph:reverse:before',
- 'graph:reverse',
- 'graph:reverse:after',
- 'sync:graph:reverse:before',
- 'sync:graph:reverse',
- 'sync:graph:reverse:after'