Skip to content

Releases: adammessinger/jQuery.deferredEach

v2.0.0

01 Mar 19:15
Compare
Choose a tag to compare

This release CONTAINS BREAKING CHANGES to expected behavior, hence the bump to 2.0. The altered behavior only appeared in last night's v1.1.1 release, though, so hopefully this won't be too disruptive.

  • Rather than immediately resolving the "parent" deferred and returning its promise when passed an empty array or object, jQuery.deferredEach() now rejects it. This triggers failure callbacks rather than success callbacks.
  • All completion callbacks get the collection (array or object) passed to jQuery.deferredEach() as their first argument. This includes failure callbacks added with .fail() or with a second function passed to .then().
  • All completion callbacks also get a second argument, message -- a string stating why the iteration succeeded or failed. Useful in .fail() callbacks to figure out what went wrong.

See README.md for more details.

v1.1.1

01 Mar 06:11
Compare
Choose a tag to compare

Bug fix: no longer terminates with an error when passed an empty array or object.

v1.1

07 Apr 21:18
Compare
Choose a tag to compare

More informative progress notifications. In addition to decimal representation of how much work is done, .progress() callbacks now also get the count of the last item completed and the length of the whole collection. NOTE: unlike an array index, count does not start at zero. See README.md for more info.

v1.0

24 Mar 21:44
Compare
Choose a tag to compare

Feature complete 1.0. See README.md for info and instructions.