Releases: malcommac/Hydra
Hydra 1.1.0 (first Swift 4.x release)
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)
-
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
-
Release Date: 2017-07-24
-
Zipped Version: Download 0.9.9
-
#39
void
variable now allows to chain multiple promises which return differentResult
types. See the doc on README to learn more.
Hydra 0.9.7
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:
- #25 Added support for Cancellable Promises via
InvalidationToken
. See the documentation for more info.
Hydra 0.9.5
This is the latest update for Swift 3.x.
Changes include:
- #31 : Introduced nested generics
- Minor fixes to documentation
Hydra 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.
Hydra 0.9.3
- Release Date: 2017-03-06
- Zipped Version: Download 0.9.3
CHANGELOG
Hydra 0.9.0
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)