Skip to content

Releases: glebec/potential

Resolve and Reject now accept thenables

14 Jun 05:11
Compare
Choose a tag to compare

This feature is not tested by the A+ spec but is very useful, especially for creating extended library methods.

Truly Passing A+ Spec

31 May 02:30
Compare
Choose a tag to compare

This is the official debut of Potential as a fully compliant Promises/A+ library.

Although all 872 specs passed previously, in fact there was a rather bad bug which resulted in infinite mutual recursion when returning a rejected promise in another promise's handler function. Now fixed.

v1.2.1

03 Jul 22:53
Compare
Choose a tag to compare
v1.2.1 Pre-release
Pre-release
1.2.1

Catch

06 Jul 15:01
Compare
Choose a tag to compare
Catch Pre-release
Pre-release

Extends the core promises/A+ implementation with a catch function for easy error handler attachment.

Promises/A+ passing

06 Jul 15:07
Compare
Choose a tag to compare
Promises/A+ passing Pre-release
Pre-release

Note: this release passed all the specs but had an infinite recursion bug that meant the compliance suite never quit. Therefore, this release did not truly pass Promises/A+.

Passing the core Promises/A+ compliance tests. Included are:

  • a promise constructor Potential
    • invokes an executor function with resolve and reject parameters
    • returns a new promise
  • a deferral factory function Potential.defer()
    • deferrals have resolve and reject methods (which ultimately call the settle method)
    • deferrals are each associated with a unique promise property
  • promises have:
    • a .then method to add optional success & error handlers