Releases: benlau/quickpromise
Releases · benlau/quickpromise
v1.0.9 Release
v1.0.8 Release
Critical Changes
- C++ Timer is deprecated. QuickPromise is now a pure QML/JS Library
Changes
- Add Q.resolve() / Q.reject() to create an already resolved / rejected promise
- Add a "Minimal Installation" guide in the README for user for installing Quick Promise easily.
v1.0.6 Release
Changes
- Q.promise(function(fulfill,reject) {}) is supported
Example
var promise = Q.promise(function(fulfill, reject) {
Q.setTimeout(fulfill, 1000);
});
v1.0.4 Release
Changes
- Q.setTimeout() - Able to catch and report exception from callback
- Q.setTimeout() returns a timer id.
- Fixed a crash issue in Windows
New features
- Q.resolved() & Q.rejected() for creating an already fulfilled / rejected promise
- Q.clearTimeout() - clear a timeout
- Experimental Promise class in C++
v1.0.3 release
Changes
- The resolve parameter to promise generated by Q.all() become an array of results of original promises
v1.0.2 Release
Changes
- Q.all()/Q.allSettled() - Supported to take an array of signal and Promise item (Previous version only support Promise object)
Bug Fix
- Promise.resolveWhen() - If the input argument is a Promise item, it will be resolved immediately.
Advanced Usage
- Resolve by multiple signals.
Promise {
resolveWhen: Q.all([timer.triggered, loader.loaded]);
}
- Resolve by signal and binary expression
Promise {
resolveWhen: Q.all([timer.triggered, promise2]);
Promise {
id : promise2
resolveWhen: image.status === Image.Ready
}
}
V1.0.1 Release
Feature List
- Promise in QML way
- Trigger resolve()/reject() via binary expression, signal from resloveWhen / rejectWhen property
- isFulfilled / isRejected / isSettled properties for data binding.
- fulfulled , rejected , settled signals
- Promise in Javascript way
- Unlike QML component, it don’t need to declare before use it.
- The API interface is fully compatible with Promises/A+ specification. It is easy to get started.
- Extra API
- Q.setTimeout() - A implementation of setTimeout() function for QML.
- all()/allSettled() - Create a promise object from an array of promises
Changes
- resolve()/reject() support signal object as argument.
The First Official Release
Feature List
- Promises/A+ Conformant Implementation.
- Both of QML and Javascript component are available.
- QML Component Interface
- Trigger resolve()/reject() via binary expression from resloveWhen / rejectWhen property
- isFulfilled / isRejected / isSettled properties for data binding.
- fulfulled , rejected , settled signals
- Pure Javascript API
- Unlike QML component, it don’t need to declare before use it.
- The API interface is fully compatible with Promises/A+ standard. It is easy to get started.
- Q.setTimeout() - A implementation of setTimeout() function for QML.