Skip to content

Releases: AliSoftware/OHHTTPStubs

9.1.0

02 Dec 09:31
12f1966
Compare
Choose a tag to compare
  • Added hasFormBody(_:) matcher.
    @417-72KI
  • Added fix for Xcode 12 - Warnings related to iOS 8 support (Swift Package Manager) #328
    @kikeenrique

9.0.0

24 Jan 02:57
e92b5a5
Compare
Choose a tag to compare
  • Added support for Swift Package Manager and dropped OH from all class names.
    @jeffctown

8.0.0

22 Apr 18:20
a5f9693
Compare
Choose a tag to compare
  • Update default Swift Version to 5.0
    @croig

7.0.0

14 Mar 18:16
5431829
Compare
Choose a tag to compare
  • Updating default Swift Version to 4.2.
    @jeffctown
  • Updating example projects to Swift 4.2 and Xcode 10.1.
    @jeffctown
  • Updating iOS Lib Tests to have a minimum iOS version of 8.0.
    @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, @robertoferraz, @rckoenes, @NikSativa for their pull requests updating Swift!

6.2.0

14 Mar 17:16
30246ce
Compare
Choose a tag to compare
  • Enabled application extension API only.
    @lightsprint09
  • Disabled a flaky redirect test and adding the known issue with redirects to the README.
    @jeffctown
    #301
  • Added isMethodHEAD() to the Swift helpers.
    @Simon-Kaz
    #294
  • Fixed issue with not preserving correct headers when following 3xx
    redirects.
    @sberrevoets

6.1.0

19 Nov 00:29
Compare
Choose a tag to compare
  • Updated deployment target for the pod to 7.0 to remove warning for old APIs.
    @AliSoftware
  • Fixed HTTP Method retention for 301,302,307,308 status redirects.
    @mikelupo
  • Added hasJsonBody(_:) matcher.
    @pimnijman
  • Added onStubMissing to report missing stubs.
    @c1ira
    #264
  • Fixed URLRequest.ohhttpStubs_httpBody function in Swift 3 and 4.
    @mplorentz
  • Added absolute url matcher.
    @victorg1991
    #254
  • Fixed up empty lines with whitespace inside test case classes.
    @mikelupo
    #251
  • Fixed potential memory leaks with use of NSURLSession as detected by our devs.
    @mikelupo
    #250
  • Add precondition assertions in isScheme and isHost matchers and some documentation in isHost, isScheme and isPath.
    @Liquidsoul
    #248

6.0.0

04 Apr 17:55
Compare
Choose a tag to compare
  • Made Swift 3 the default. master is now compatible with 3.0 and 3.1.
    @Liquidsoul
    @cohilla
    #240
  • The pod 'OHHTTPStubs/Swift' subspec now includes the URLSession and JSON subspecs.
    @AliSoftware
  • Added some matchers to the Swift APIs: hasBody(…), pathEndsWith(…) and pathMatches(…).
    @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.

5.2.3-swift3

29 Nov 19:47
Compare
Choose a tag to compare

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 is fixed)

5.2.3

29 Nov 19:47
Compare
Choose a tag to compare
  • Reverted #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
    #221
  • Fixed a race condition that occasionally prevented redirect callbacks.
    @morrowa
    #224
  • Fixed response timing for zero-length stub data.
    @morrowa
    #224

5.2.2-swift3

23 Oct 17:39
Compare
Choose a tag to compare

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 is fixed)