We can simplify quite a bit of logic by reusing some property names between atom instances and selectors. Change the evaluationFinished mod to simply use node instead of different instance and cache keys.
Change prevEvaluationReasons and _prevEvaluationResons to simply prevReasons.
Change nextEvaluationReasons and _nextEvaluationReasons to simply nextReasons.
This includes making those fields non-underscore-prefixed in the AtomInstance class and therefore adding documentation for them.
This is a breaking change - the evaluationFinished mod event's payload shape has changed and some already-public fields in the SelectorCache class are renamed:
Description
We can simplify quite a bit of logic by reusing some property names between atom instances and selectors. Change the
evaluationFinished
mod to simply usenode
instead of differentinstance
andcache
keys.Change
prevEvaluationReasons
and_prevEvaluationResons
to simplyprevReasons
.Change
nextEvaluationReasons
and_nextEvaluationReasons
to simplynextReasons
.This includes making those fields non-underscore-prefixed in the
AtomInstance
class and therefore adding documentation for them.This is a breaking change - the
evaluationFinished
mod event's payload shape has changed and some already-public fields in theSelectorCache
class are renamed:evaluationFinishedAction.payload.cache
->evaluationFinishedAction.payload.node
evaluationFinishedAction.payload.instance
->evaluationFinishedAction.payload.node
selectorCache.prevEvaluationReasons
->selectorCache.prevReasons
selectorCache.nextEvaluationReasons
->selectorCache.nextReasons