Skip to content

Releases: benlau/quickpromise

v1.0.9 Release

06 Apr 10:32
Compare
Choose a tag to compare

Changes

  1. Support Qt 5.12 - Renamed the internal object name to avoid namespace conflict

v1.0.8 Release

29 Mar 01:05
Compare
Choose a tag to compare

Critical Changes

  1. C++ Timer is deprecated. QuickPromise is now a pure QML/JS Library

Changes

  1. Add Q.resolve() / Q.reject() to create an already resolved / rejected promise
  2. Add a "Minimal Installation" guide in the README for user for installing Quick Promise easily.

v1.0.6 Release

09 Feb 17:52
Compare
Choose a tag to compare

Changes

  • Q.promise(function(fulfill,reject) {}) is supported

Example

        var promise = Q.promise(function(fulfill, reject) {
            Q.setTimeout(fulfill, 1000);
        });

v1.0.4 Release

13 May 19:10
Compare
Choose a tag to compare

Changes

  1. Q.setTimeout() - Able to catch and report exception from callback
  2. Q.setTimeout() returns a timer id.
  3. Fixed a crash issue in Windows

New features

  1. Q.resolved() & Q.rejected() for creating an already fulfilled / rejected promise
  2. Q.clearTimeout() - clear a timeout
  3. Experimental Promise class in C++

v1.0.3 release

15 Feb 10:01
Compare
Choose a tag to compare

Changes

  1. The resolve parameter to promise generated by Q.all() become an array of results of original promises

v1.0.2 Release

17 Jul 03:19
Compare
Choose a tag to compare

Changes

  1. Q.all()/Q.allSettled() - Supported to take an array of signal and Promise item (Previous version only support Promise object)

Bug Fix

  1. Promise.resolveWhen() - If the input argument is a Promise item, it will be resolved immediately.

Advanced Usage

  1. Resolve by multiple signals.

Promise {
    resolveWhen: Q.all([timer.triggered, loader.loaded]);
}

  1. 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

22 May 17:51
Compare
Choose a tag to compare

Feature List

  1. Promise in QML way
    1. Trigger resolve()/reject() via binary expression, signal from resloveWhen / rejectWhen property
    2. isFulfilled / isRejected / isSettled properties for data binding.
    3. fulfulled , rejected , settled signals
  2. Promise in Javascript way
    1. Unlike QML component, it don’t need to declare before use it.
    2. The API interface is fully compatible with Promises/A+ specification. It is easy to get started.
  3. Extra API
    1. Q.setTimeout() - A implementation of setTimeout() function for QML.
    2. all()/allSettled() - Create a promise object from an array of promises

Changes

  1. resolve()/reject() support signal object as argument.

The First Official Release

18 May 04:40
Compare
Choose a tag to compare

Feature List

  1. Promises/A+ Conformant Implementation.
  2. Both of QML and Javascript component are available.
  3. QML Component Interface
    1. Trigger resolve()/reject() via binary expression from resloveWhen / rejectWhen property
    2. isFulfilled / isRejected / isSettled properties for data binding.
    3. fulfulled , rejected , settled signals
  4. Pure Javascript API
    1. Unlike QML component, it don’t need to declare before use it.
    2. The API interface is fully compatible with Promises/A+ standard. It is easy to get started.
  5. Q.setTimeout() - A implementation of setTimeout() function for QML.