- Changed behavior of
{leading: true}
. In < 3.0debounce-promise
caused the promises that was returned from subsequent calls within thewait
period to be resolved with the eventual value of the promise returned from the leading call. In 3.0, the subsequent calls are resolved with the value from the last call afterwait
period has passed. Hopefully this is more in line with the common expectations. - How long each promise takes to resolve is no longer considered at all. This reduces the overall complexity the code easier to read and more straight-forward.
Please check out the tests for more details about the breaking changes.