Skip to content

v3.0

Latest
Compare
Choose a tag to compare
@bjoerge bjoerge released this 28 Jan 14:59
· 13 commits to master since this release
  • Changed behavior of {leading: true}. In < 3.0 debounce-promise caused the promises that was returned from subsequent calls within the wait 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 after wait 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.