Skip to content

Commit 06f9348

Browse files
committed
Merge branch 'release/1.2.0'
2 parents 28f75b6 + 1688f46 commit 06f9348

File tree

5 files changed

+66
-14
lines changed

5 files changed

+66
-14
lines changed

CHANGELOG.md

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,59 @@
44

55
## CHANGELOG
66

7-
* Version **[1.0.0](#100_110)** (Swift 3.x) and **[1.1.0](#100_110)** (Swift 4.x)
7+
* Version **[1.2.0](#120)** (Swift 4)
8+
* Version **[1.1.0](#110)** (first Swift 4)
9+
* Version **[1.0.1](#101)** (latest for Swift 3)
10+
* Version **[1.0.0](#100)**
811
* Version **[0.9.9](#099)**
912
* Version **[0.9.7](#097)**
1013
* Version **[0.9.4](#094)**
1114
* Version **[0.9.3](#093)**
1215
* Version **[0.9.2](#092)**
1316
* Version **[0.9.1](#091)**
1417

15-
<a name="100_110" />
18+
<a name="120" />
1619

17-
## Hydra 1.0.0 (for Swift 3) & 1.1.0 (for Swift 4)
20+
## Hydra 1.2.0 (Swift 4)
21+
---
22+
- **Release Date**: 2017-10-27
23+
- **Download Version for Swift 4**: [Download 1.2.0](https://github.com/malcommac/Hydra/releases/tag/1.2.0)
24+
25+
- [#54](https://github.com/malcommac/Hydra/pull/54) Fixed an issue when compiling Hydra for macOS, tvOS and watchOS
26+
27+
<a name="110" />
28+
29+
## Hydra 1.1.0 (first for Swift 4)
1830
---
1931
- **Release Date**: 2017-09-04
2032
- **Download Version for Swift 3**: [Download 1.0.0](https://github.com/malcommac/Hydra/releases/tag/1.0.0)
2133
- **Download Version for Swift 4**: [Download 1.1.0](https://github.com/malcommac/Hydra/releases/tag/1.1.0)
2234

35+
- [#44](https://github.com/malcommac/Hydra/pull/44) Resolved a compatibility issue with `await` under iOS 11 or later.
36+
- [#45](https://github.com/malcommac/Hydra/pull/45) Added support for cancellable promises inside the `await` operator.
37+
- [#46](https://github.com/malcommac/Hydra/pull/46) Resolved an issue where `timeout` operator keep a Promise alive even if it resolves correctly before it expires.
38+
- [#48](https://github.com/malcommac/Hydra/pull/48) Resolved a memory leaks with cancellable promises.
39+
- [#49](https://github.com/malcommac/Hydra/pull/49) Replaced with `(Void)` with `()` to fix warnings with Swift 4 and XCode 9
40+
41+
42+
<a name="101" />
43+
44+
## Hydra 1.0.1 (latest for Swift 3)
45+
---
46+
- **Release Date**: 2017-10-27
47+
- **Download Version for Swift 3**: [Download 1.0.1](https://github.com/malcommac/Hydra/releases/tag/1.0.1)
48+
49+
- [#51](https://github.com/malcommac/Hydra/pull/51) Fixed an when compiling using Chartage
50+
- [#52](https://github.com/malcommac/Hydra/pull/45) Fixed an issue when compiling Hydra for macOS, tvOS and watchOS
51+
52+
53+
<a name="100" />
54+
55+
## Hydra 1.0.0
56+
---
57+
- **Release Date**: 2017-09-04
58+
- **Download Version for Swift 3**: [Download 1.0.0](https://github.com/malcommac/Hydra/releases/tag/1.0.0)
59+
2360
- [#45](https://github.com/malcommac/Hydra/pull/45) Added support for cancellable promises inside the `await` operator.
2461
- [#46](https://github.com/malcommac/Hydra/pull/46) Resolved an issue where `timeout` operator keep a Promise alive even if it resolves correctly before it expires.
2562
- [#44](https://github.com/malcommac/Hydra/pull/44) Resolved a compatibility issue with `await` under iOS 11 or later.

Hydra.xcodeproj/project.pbxproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@
104104
37ACBBA61F55FD7D003E92AC /* DispatchTimerWrapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37ACBBA31F55FD7D003E92AC /* DispatchTimerWrapper.swift */; };
105105
37ACBBA71F55FD7D003E92AC /* DispatchTimerWrapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37ACBBA31F55FD7D003E92AC /* DispatchTimerWrapper.swift */; };
106106
52D6D9871BEFF229002C0205 /* Hydra.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 52D6D97C1BEFF229002C0205 /* Hydra.framework */; };
107+
64FDEBF41FA25AF8005FBC55 /* Promise+Cancel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37843A5B1F12238A0071989E /* Promise+Cancel.swift */; };
108+
64FDEBF51FA25AF8005FBC55 /* Promise+Cancel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37843A5B1F12238A0071989E /* Promise+Cancel.swift */; };
109+
64FDEBF61FA25AF8005FBC55 /* Promise+Cancel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37843A5B1F12238A0071989E /* Promise+Cancel.swift */; };
107110
8933C78E1EB5B82C000D00A4 /* HydraTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8933C7891EB5B82A000D00A4 /* HydraTests.swift */; };
108111
8933C78F1EB5B82C000D00A4 /* HydraTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8933C7891EB5B82A000D00A4 /* HydraTests.swift */; };
109112
8933C7901EB5B82D000D00A4 /* HydraTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8933C7891EB5B82A000D00A4 /* HydraTests.swift */; };
@@ -731,6 +734,7 @@
731734
37ACAE081F0FB4A800ED284A /* Promise+Map.swift in Sources */,
732735
37ACADF41F0FB4A800ED284A /* Promise+Any.swift in Sources */,
733736
37ACBBA61F55FD7D003E92AC /* DispatchTimerWrapper.swift in Sources */,
737+
64FDEBF51FA25AF8005FBC55 /* Promise+Cancel.swift in Sources */,
734738
37ACADF01F0FB4A800ED284A /* Promise+Always.swift in Sources */,
735739
37ACAE041F0FB4A800ED284A /* Promise+Defer.swift in Sources */,
736740
37ACAE181F0FB4A800ED284A /* Promise+Reduce.swift in Sources */,
@@ -760,6 +764,7 @@
760764
37ACAE091F0FB4A800ED284A /* Promise+Map.swift in Sources */,
761765
37ACADF51F0FB4A800ED284A /* Promise+Any.swift in Sources */,
762766
37ACBBA71F55FD7D003E92AC /* DispatchTimerWrapper.swift in Sources */,
767+
64FDEBF61FA25AF8005FBC55 /* Promise+Cancel.swift in Sources */,
763768
37ACADF11F0FB4A800ED284A /* Promise+Always.swift in Sources */,
764769
37ACAE051F0FB4A800ED284A /* Promise+Defer.swift in Sources */,
765770
37ACAE191F0FB4A800ED284A /* Promise+Reduce.swift in Sources */,
@@ -789,6 +794,7 @@
789794
37ACAE071F0FB4A800ED284A /* Promise+Map.swift in Sources */,
790795
37ACADF31F0FB4A800ED284A /* Promise+Any.swift in Sources */,
791796
37ACBBA51F55FD7D003E92AC /* DispatchTimerWrapper.swift in Sources */,
797+
64FDEBF41FA25AF8005FBC55 /* Promise+Cancel.swift in Sources */,
792798
37ACADEF1F0FB4A800ED284A /* Promise+Always.swift in Sources */,
793799
37ACAE031F0FB4A800ED284A /* Promise+Defer.swift in Sources */,
794800
37ACAE171F0FB4A800ED284A /* Promise+Reduce.swift in Sources */,

HydraAsync.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |spec|
22
spec.name = 'HydraAsync'
3-
spec.version = '1.1.0'
3+
spec.version = '1.2.0'
44
spec.summary = 'Promises & Await: Write better async in Swift'
55
spec.homepage = 'https://github.com/malcommac/Hydra'
66
spec.license = { :type => 'MIT', :file => 'LICENSE' }

Package.swift

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
// swift-tools-version:4.0
12
import PackageDescription
23

34
let package = Package(
4-
name: "Hydra"
5+
name: "Hydra",
6+
products: [
7+
.library(name: "Hydra", targets: ["Hydra"])
8+
],
9+
targets: [
10+
.target(name: "Hydra", dependencies: []),
11+
.testTarget(name: "HydraTests", dependencies: ["Hydra"])
12+
],
13+
swiftLanguageVersions: [4]
514
)

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Made with ♥ in pure Swift 3.x/4.x, no dependencies, lightweight & fully portab
1212

1313
## Swift 3 and Swift 4 Compatibility
1414

15-
* **Swift 4.x**: >= 1.1.0 - Latest is 1.1.0 (`pod 'HydraAsync'`)
16-
* **Swift 3.x**: Latest compatible version is 1.0.0 Download here. If you are using CocoaPods be sure to fix the release (`pod 'HydraAsync', '~> 1.0.0'`)
15+
* **Swift 4.x**: Latest is 1.2.0 (`pod 'HydraAsync'`)
16+
* **Swift 3.x**: Latest is 1.0.1 - Latest compatible version is 1.0.1 Download here. If you are using CocoaPods be sure to fix the release (`pod 'HydraAsync', '~> 1.0.1'`)
1717

1818
# Hydra
1919
Hydra is full-featured lightweight library which allows you to write better async code in Swift 3.x/4.x. It's partially based on [JavaScript A+](https://promisesaplus.com) specs and also implements modern construct like `await` (as seen in [Async/Await specification in ES8 (ECMAScript 2017)](https://github.com/tc39/ecmascript-asyncawait) or C#) which allows you to write async code in sync manner.
@@ -43,8 +43,8 @@ Take a look below:
4343
## Current Release (Swift 3 and 4 releases)
4444

4545
Latest releases are:
46-
- **Swift 4.x**: From (>=) **1.1.0** [Download here](https://github.com/malcommac/Hydra/releases/tag/1.1.0).
47-
- **Swift 3.x**: Latest release is **1.0.0** [Download here](https://github.com/malcommac/Hydra/releases/tag/1.0.0).
46+
* **Swift 4.x**: Latest is 1.2.0 (`pod 'HydraAsync'`) [Download here](https://github.com/malcommac/Hydra/releases/tag/1.2.0).
47+
* **Swift 3.x**: Latest is 1.0.1 (`pod 'HydraAsync', '~> 1.0.1'`) [Download here](https://github.com/malcommac/Hydra/releases/tag/1.0.1).
4848

4949
A complete list of changes for each release is available in the [CHANGELOG](CHANGELOG.md) file.
5050

@@ -593,10 +593,10 @@ all(op_1.void,op_2.void,op_3.void).then { _ in
593593
<a name="installation" />
594594

595595
## Installation
596-
You can install Swiftline using CocoaPods, carthage and Swift package manager
596+
You can install Hydra using CocoaPods, Carthage and Swift package manager
597597

598-
- **Swift 3.x**: Up to 1.0.0 ([Direct Download](https://github.com/malcommac/Hydra/releases/tag/1.0.0))
599-
- **Swift 4.x**: Starting from 1.1.0 ([Direct Download](https://github.com/malcommac/Hydra/releases/tag/1.1.0))
598+
- **Swift 3.x**: Latest compatible is 1.0.1 `pod 'HydraAsync', ~> '1.0.1'`
599+
- **Swift 4.x**: 1.1.0 or later `pod 'HydraAsync'`
600600

601601
### CocoaPods
602602
use_frameworks!
@@ -606,7 +606,7 @@ You can install Swiftline using CocoaPods, carthage and Swift package manager
606606
github 'malcommac/Hydra'
607607

608608
### Swift Package Manager
609-
Add swiftline as dependency in your `Package.swift`
609+
Add Hydra as dependency in your `Package.swift`
610610

611611
```
612612
import PackageDescription
@@ -624,7 +624,7 @@ Add swiftline as dependency in your `Package.swift`
624624

625625
Current version is compatible with:
626626

627-
* Swift 4 (>= 1.1.0) or Swift 3.x (Up to 1.0.0)
627+
* Swift 4 (>= 1.1.0) or Swift 3.x (Up to 1.0.1)
628628
* iOS 8.0 or later
629629
* tvOS 9.0 or later
630630
* macOS 10.10 or later

0 commit comments

Comments
 (0)