Skip to content

Releases: malcommac/Hydra

Hydra 1.1.0 (first Swift 4.x release)

14 Sep 19:26
Compare
Choose a tag to compare

This is the first release compatible with Swift 4.
You can refer to 0.9.9 changelog.

Hydra 1.0.0 (latest for Swift 3.x)

03 Sep 14:50
Compare
Choose a tag to compare
  • Release Date: 2017-09-03

  • Zipped Version: Download 1.0.0

  • #45 Added support for cancellable promises inside the await operator.

  • #46 Resolved an issue where timeout operator keep a Promise alive even if it resolves correctly before it expires.

  • #44 Resolved a compatibility issue with await under iOS 11 or later.

  • #48 Resolved a memory leaks with cancellable promises.

  • #49 Replaced with (Void) with () to fix warnings with Swift 4 and XCode 9

Hydra 0.9.9

24 Jul 18:26
Compare
Choose a tag to compare
  • Release Date: 2017-07-24

  • Zipped Version: Download 0.9.9

  • #39 void variable now allows to chain multiple promises which return different Result types. See the doc on README to learn more.

Hydra 0.9.7

09 Jul 16:10
Compare
Choose a tag to compare

Important Notice

Since 0.9.7 Hydra implements Cancellable Promises. In order to support this new feature we have slightly modified the Body signature of the Promise; in order to make your source code compatible you just need to add the third parameter along with resolve,reject: operation.
operation encapsulate the logic to support Invalidation Token. It's just and object of type PromiseStatus you can query to see if a Promise is marked to be cancelled from the outside.
If you are not interested in using it in your Promise declaration just mark it as _.

To sum up your code:

return Promise<Int>(in: .main, token: token, { resolve, reject in ...

needs to be:

return Promise<Int>(in: .main, token: token, { resolve, reject, operation in // or resolve, reject, _

New Features:

Hydra 0.9.5

10 Jun 11:52
Compare
Choose a tag to compare

This is the latest update for Swift 3.x.

Changes include:

  • #31 : Introduced nested generics
  • Minor fixes to documentation

Hydra 0.9.4

21 Mar 18:51
Compare
Choose a tag to compare
  • #22 Fixed an issue with any operator which in several occasions does not work.
  • #24 Fixed never chainable if return rejected promise in recover operator closure.
  • #26 Added concurrency argument in all operator; it allows you to set the number of max concurrent promises running for an all task in order to reduce memory and cpu footprint.
  • #28 Fixed Promise's memory leak
  • #29 Cleaned up the process of running the observer
  • #18, #20 Refactoring of several func inside the Promise's class.

Hydra 0.9.3

06 Mar 09:24
Compare
Choose a tag to compare

CHANGELOG

  • #15 Added conditional block to retry operator to determine whether retry is possible
  • #14 Minor fixes for documentation (zip and all funcs)

Hydra 0.9.0

04 Feb 13:37
Compare
Choose a tag to compare

First Public Release

This is the first public release of Hydra.
All tests are passed the library supports the following features:

  • Promise class support following operators:
    • always
    • valide
    • timeout
    • any
    • all
    • pass
    • recover
    • map
    • zip
    • defer
    • retry
  • Initial support for await operator (or ..!,.., see the doc)