Trickle pacing was adjusted to more closely match the original nprogress behaviour.
The previous default of 800 meant each trickle took roughly one second
(animation wait plus increment delay). The new default of 200 matches
the original library's trickleSpeed and results in faster trickle
pacing.
Action required: if you were relying on the old default pacing,
explicitly pass incrementDuration={800} to restore the previous
behaviour.
Non-completion set() calls previously waited animationDuration
(200 ms) before advancing the internal queue. This wait has been
removed for intermediate updates so that only incrementDuration
controls trickle pacing. The completion path (set(1)) still waits
animationDuration before marking the bar as finished, giving
consumers time to animate the bar to 100% before it disappears.
Action required: none in most cases. If your rendering code relied
on intermediate progress updates being spaced at least
animationDuration apart, you may need to adjust your
transition/animation timing.
The prop-types package is no longer required for using the UMD builds.
Allows multiple instances of react-nprogress on a page. Technically this isn't a breaking change, but it was decided to bump the major version in order to reduce the chance of bugs slipping into consuming code.
The source code was refactored to use hooks. A useNProgress hook was also exposed. As a result, the react and react-dom peer dependency requirements are now ^16.8.0.
The build process was refactored in this version. Technically this isn't a breaking change, but it was decided to bump the major version in order to reduce the chance of bugs slipping into consuming code.