Releases: glebec/potential
Releases · glebec/potential
Resolve and Reject now accept thenables
Truly Passing A+ Spec
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
Catch
Promises/A+ passing
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
andreject
parameters - returns a new
promise
- invokes an executor function with
- a deferral factory function
Potential.defer()
- deferrals have
resolve
andreject
methods (which ultimately call thesettle
method) - deferrals are each associated with a unique
promise
property
- deferrals have
promise
s have:- a
.then
method to add optional success & error handlers
- a