Releases: jutaz/angular-quasar
Releases · jutaz/angular-quasar
2.1.2
Unsolicited Sneeze
This release contains a bugfix to also decorate Promise that's returned from $q
's constructor. Example:
$q((resolve, reject) => {
// Things...
resolve();
});
Winter madness
This release has no API or any user-affecting changes - this is purely to support new angular 1.6.0
.
Unexpected Sun
This release consists of several fixes to quasar, such as:
.finally
will now bind to context.
This release also removes individual context bindings for .then
, .catch
in favor in single .bind
method.
And finally, .catch
type checking, as requested in #1.
Basically:
q.reject(new MyCustomError())
// Will skip this.
.catch(MyAnotherCustomError, fn)
// Will be caught here.
.catch(MyCustomError, fn2)
// Will not run, as exception was caught
.catch(fn3);
This also allows for multiple filtered exceptions:
promise.then(function() {
return a.b.c.d();
}).catch(TypeError, ReferenceError, function(e) {
//Will end up here on programmer error
}).catch(NetworkError, TimeoutError, function(e) {
//Will end up here on expected everyday network errors
}).catch(function(e) {
//Catch any unexpected errors
});
Autumn surprise
Adds support for promise.bind
, promise.unbind
.
Also adds support for passing in individual context in promise.catch
as a 2nd argument.
- Bugfix -
.all()
should now resolve objects too.
Humble Newton
1.1.0 Add compiled version, bump version
Humongous Dwarf
1.0.1 Bump version
Socialized Ronin
1.0.0 Make things more browser compatible.