The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
* Added `hasFormBody(_:)` matcher.
[@417-72KI](https://github.com/417-72KI)
* Added fix for Xcode 12 - Warnings related to iOS 8 support (Swift Package Manager) #328
[@kikeenrique](https://github.com/kikeenrique)
* Added support for Swift Package Manager and dropped OH from all class names.
[@jeffctown](https://github.com/jeffctown)
* Update default Swift Version to 5.0
[@croig](https://github.com/CRoig)
* Updating default Swift Version to 4.2.
[@jeffctown](https://github.com/jeffctown)
* Updating example projects to Swift 4.2 and Xcode 10.1.
[@jeffctown](https://github.com/jeffctown)
* Updating iOS Lib Tests to have a minimum iOS version of 8.0.
[@jeffctown](https://github.com/jeffctown)
> Notes:
> * Bumping this version to 7.0.0 because it's now using the Swift 4 APIs.
> * This version is still compatible with Swift 3.x when integrating with CocoaPods, as CocoaPods uses the same `SWIFT_VERSION` as your app project does so it adapts automatically and it's transparent for users.
> * If you're using Carthage and need Swift 3.x compatibility, you can follow the tips in the installation instructions of the `README.md`.
> * CI is now only testing Swift 4.x on Xcode 9.1 and 10.1.
> * Thank you to [@hellensoloviy](https://github.com/hellensoloviy), [@robertoferraz](https://github.com/robertoferraz), [@rckoenes](https://github.com/rckoenes), [@NikSativa](https://github.com/NikSativa) for their pull requests updating Swift!
* Enabled application extension API only.
[@lightsprint09](https://github.com/lightsprint09)
* Disabled a flaky redirect test and adding the known issue with redirects to the README.
[@jeffctown](https://github.com/jeffctown)
[#301](https://github.com/AliSoftware/OHHTTPStubs/pull/301)
* Added `isMethodHEAD()` to the `Swift` helpers.
[@Simon-Kaz](https://github.com/Simon-Kaz)
[#294](https://github.com/AliSoftware/OHHTTPStubs/pull/294)
* Fixed issue with not preserving correct headers when following 3xx
redirects.
[@sberrevoets](https://github.com/sberrevoets)
* Updated deployment target for the pod to 7.0 to remove warning for old APIs.
[@AliSoftware](https://github.com/AliSoftware)
* Fixed HTTP Method retention for 301,302,307,308 status redirects.
[@mikelupo](https://github.com/mikelupo)
* Added `hasJsonBody(_:)` matcher.
[@pimnijman](https://github.com/pimnijman)
* Added `onStubMissing` to report missing stubs.
[@c1ira](https://github.com/c1ira)
[#264](https://github.com/AliSoftware/OHHTTPStubs/pull/264)
* Fixed `URLRequest.ohhttpStubs_httpBody` function in Swift 3 and 4.
[@mplorentz](https://github.com/mplorentz)
* Added absolute url matcher.
[@victorg1991](https://github.com/victorg1991)
[#254](https://github.com/AliSoftware/OHHTTPStubs/pull/254)
* Fixed up empty lines with whitespace inside test case classes.
[@mikelupo](https://github.com/mikelupo)
[#251](https://github.com/AliSoftware/OHHTTPStubs/pull/251)
* Fixed potential memory leaks with use of NSURLSession as detected by our devs.
[@mikelupo](https://github.com/mikelupo)
[#250](https://github.com/AliSoftware/OHHTTPStubs/pull/250)
* Add precondition assertions in `isScheme` and `isHost` matchers and some documentation in `isHost`, `isScheme` and `isPath`.
[@Liquidsoul](https://github.com/Liquidsoul)
[#248](https://github.com/AliSoftware/OHHTTPStubs/pull/248)
* Made Swift 3 the default. `master` is now compatible with 3.0 and 3.1.
[@Liquidsoul](https://github.com/Liquidsoul)
[@cohilla](https://github.com/cohilla)
[#240](https://github.com/AliSoftware/OHHTTPStubs/pull/240)
* The `pod 'OHHTTPStubs/Swift'` subspec now includes the `URLSession` and `JSON` subspecs.
[@AliSoftware](https://github.com/AliSoftware)
* Added some matchers to the Swift APIs: `hasBody(β¦)`, `pathEndsWith(β¦)` and `pathMatches(β¦)`.
[@AliSoftware](https://github.com/AliSoftware)
> Notes:
>
> * Bumping this version to 6.0.0 because it's now using the Swift 3 APIs,
> but in practice it's entirely retro-compatible with previous `5.2.3-swift3` branch
> * This version is still compatible with Swift 2.3 when integrating with CocoaPods, as CocoaPods uses the same `SWIFT_VERSION` as your app project does so it adapts automatically and it's transparent for users.
> * If you're using Carthage though, we stopped providing Swift-2.3-specific branches ourselves (too much maintainance work), but if you still need Swift 2.3 compatibility, you can follow the tips in the installation instructions of the `README.md`.
This is the same release as 5.2.3 below, except it has `SWIFT_VERSION=3.0` set in the Xcode project so that `Carthage` users already using Swift 3 can build it with this configuration.
The sample projects also have been updated to Swift 3 in this branch.
Users of `CocoaPods` are not impacted by this and can use the main 5.2.3 version β this tag is only useful for Carthage users (until [Carthage/#1445](https://github.com/Carthage/Carthage/issues/1445) is fixed)
- Reverted [#216](https://github.com/AliSoftware/OHHTTPStubs/pull/216) until better solution, as it was never active and can't make it compile for all subspec configurations.
- Improved documentation about `dynamicType:` vs `type(of:)`.
[Antondomashnev](https://github.com/Antondomashnev)
[#221](https://github.com/AliSoftware/OHHTTPStubs/pull/221)
- Fixed a race condition that occasionally prevented redirect callbacks.
[@morrowa](https://github.com/morrowa)
[#224](https://github.com/AliSoftware/OHHTTPStubs/pull/224)
- Fixed response timing for zero-length stub data.
[@morrowa](https://github.com/morrowa)
[#224](https://github.com/AliSoftware/OHHTTPStubs/pull/224)
This is the same release as 5.2.2 below, except it has `SWIFT_VERSION=3.0` set in the Xcode project so that `Carthage` users already using Swift 3 can build it with this configuration.
The sample projects also have been updated to Swift 3 in this branch.
Users of `CocoaPods` are not impacted by this and can use the main 5.2.2 version β this tag is only useful for Carthage users (until [Carthage/#1445](https://github.com/Carthage/Carthage/issues/1445) is fixed)