Repository navigation
v3.0.0 Pre-release
Pre-release
Pre-release
This release enables the ability to change sets of Updater and Effects facilitated by the interface HandlerVersion. HandlerVersions have a versionName string, and also Updater and Effect arrays. When you instantiate an implementation of AbstractActionHandler, you give it an array of HandlerVersions. By default, it will load either the one named v1 or the first one, if one by that name does not exist. To change versions, simply return a string from your Updater's apply function. If a HandlerVersion exists with a versionName as the returned string, it will switch to that HandlerVersion.
Breaking changes
- Interfaces have been updated/restructured
- There is now a parent interface
ActionListenerthatUpdaterandEffectinterfaces inherit from Updater'srunattribute has been renamed toapply; new optionalrevertattribute- New optional
onRollbackparameter onEffect - New
HandlerVersioninterface - IndexState now requires an additional
handlerVersionNameattribute - IndexState now keeps track of
isReplaystate
- There is now a parent interface
AbstractActionHandler- Constructor now takes an array of
HandlerVersions instead ofUpdaterandEffectarrays updateIndexStatenow takes ahandlerVersionNameparameterrunUpdatershas been renamed toapplyUpdaters- When the
applymethod onUpdaters return a value, this signalsrunUpdatersto update theHandlerVersionto the returnedversionName - To accommodate changing
HandlerVersions in the middle of a block,runEffectsnow takes aversionedActionsargument to decide which effects to run
- Constructor now takes an array of
Bugfixes
- Example now successfully recovers from micro-forks