Skip to content

2.0.0

Compare
Choose a tag to compare
@domenic domenic released this 29 Oct 01:37
· 27 commits to master since this release

This release brings the test suite up to date with the newly-released version 1.1 of the Promises/A+ specification. Along the way, it vastly increases test coverage, both for new requirements of the 1.1 spec and for existing requirements from the 1.0 spec.

At the same time, we made some updates to the adapter interface, to encourage better practices in promise libraries:

  • Adapters now have functions resolved and deferred.resolve, instead of fulfilled and deferred.fulfill. Although we only call these functions with non-thenable values, thus making both "fulfill" and "resolve" correct verbs for these cases, most promise libraries only provide resolve capabilities, and not direct fulfillment capabilities.
  • The function to return a { promise, resolve, reject } object is now called deferred instead of pending, keeping with common terminology and practice in promise libraries.