Skip to content

Latest commit

 

History

History
171 lines (120 loc) · 7.45 KB

CHANGELOG.md

File metadata and controls

171 lines (120 loc) · 7.45 KB

Hydra

CHANGELOG


  • Release Date: 2017-10-27

  • Download Version for Swift 4: Download 1.2.1

  • #56 Fixed an issue with Promise and Zip with four parameters


  • Release Date: 2017-10-27

  • Download Version for Swift 4: Download 1.2.0

  • #54 Fixed an issue when compiling Hydra for macOS, tvOS and watchOS


  • Release Date: 2017-09-04

  • Download Version for Swift 3: Download 1.0.0

  • Download Version for Swift 4: Download 1.1.0

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

  • #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.

  • #48 Resolved a memory leaks with cancellable promises.

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


  • Release Date: 2017-10-27

  • Download Version for Swift 3: Download 1.0.2

  • #56 Fixed an issue with Promise and Zip with four parameters


  • Release Date: 2017-10-27

  • Download Version for Swift 3: Download 1.0.1

  • #51 Fixed an when compiling using Chartage

  • #52 Fixed an issue when compiling Hydra for macOS, tvOS and watchOS


  • Release Date: 2017-09-04

  • Download Version for Swift 3: 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


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


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:

Thanks to Maurizio Panzica to point me to the right solution to support cancellable promises feature.


  • Release Date: 2017-03-21

  • Zipped Version: Download 0.9.4

  • #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.


  • Release Date: 2017-03-06

  • Zipped Version: Download 0.9.3

  • #15 Added conditional block to retry operator to determine whether retry is possible

  • #14 Minor fixes for documentation (zip and all funcs)


  • Release Date: 2017-02-21

  • Zipped Version: Download 0.9.2

  • #1 Added async function to create new promises or execute a block of code in another context.

  • #12 all() is now visible outside the library.

  • #10 Fixed an issue while using await() due to a constraint with non labeled Swift params.

  • #13 any() is now visible outside the library


  • Release Date: 2017/02/15

  • Zipped Version: Download 0.9.1

  • #8 Single framework for multiple platforms