added `onComplete()` hook
1.2.0