Skip to content

Releases: reactphp/promise

1.1.0

01 Jul 14:45
v1.1.0
Compare
Choose a tag to compare

This release makes the API more compatible with 2.0 while preserving full backward compatibility.

  • Add React\Promise\Promise class.
  • Move methods of React\Promise\When and React\Promise\Util to functions while keeping the classes as a proxy for BC.

2.2.0

30 Dec 13:38
v2.2.0
Compare
Choose a tag to compare

This release introduces the ExtendedPromiseInterface.

The ExtendedPromiseInterface extends the PromiseInterface with useful shortcut
and utility methods which are not part of the Promises/A specification.

2.1.0

15 Oct 20:16
Compare
Choose a tag to compare

Introduce new CancellablePromiseInterface implemented by all promises.

2.0.0

10 Dec 15:48
Compare
Choose a tag to compare

New major release. The goal was to streamline the API and to make it more compliant with other promise libraries and especially with the new upcoming ES6 promises specification.

  • Add standalone Promise class.
  • Add new React\Promise\race() function.
  • BC break: Bump minimum PHP version to PHP 5.4.
  • BC break: Remove ResolverInterface and PromiseInterface from Deferred.
  • BC break: Change signature of PromiseInterface.
  • BC break: Remove When and Util classes and move static methods to functions.
  • BC break: FulfilledPromise and RejectedPromise now throw an exception when initialized with a promise instead of a value/reason.
  • BC break: React\Promise\Deferred::resolve() and React\Promise\Deferred::reject() no longer return a promise.

v1.0.4

12 Jun 08:37
Compare
Choose a tag to compare
  • Trigger PHP errors when invalid callback is passed.
  • Fully resolve rejection value before calling rejection handler.
  • Add When::lazy() to create lazy promises which will be initialized once a consumer calls the then() method.

v1.0.3

12 Jun 08:36
Compare
Choose a tag to compare
  • Add PromisorInterface for objects that have a promise() method.

v1.0.2

12 Jun 08:35
Compare
Choose a tag to compare
  • Fix bug in When::any() not correctly unwrapping to a single result value
  • $promiseOrValue argument of When::resolve() and When::reject() is now optional

v1.0.1

12 Jun 08:34
Compare
Choose a tag to compare
  • Prevent deep recursion which was reaching xdebug.max_nesting_level default of 100

v1.0.0

12 Jun 08:34
Compare
Choose a tag to compare
  • First tagged release