Releases: AliSoftware/OHHTTPStubs
9.1.0
9.0.0
- Added support for Swift Package Manager and dropped OH from all class names.
@jeffctown
8.0.0
7.0.0
- 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
- 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 theSwift
helpers.
@Simon-Kaz
#294 - Fixed issue with not preserving correct headers when following 3xx
redirects.
@sberrevoets
6.1.0
- 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
andisHost
matchers and some documentation inisHost
,isScheme
andisPath
.
@Liquidsoul
#248
6.0.0
- 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 theURLSession
andJSON
subspecs.
@AliSoftware - Added some matchers to the Swift APIs:
hasBody(…)
,pathEndsWith(…)
andpathMatches(…)
.
@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 previous5.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
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
- Reverted #216 until better solution, as it was never active and can't make it compile for all subspec configurations.
- Improved documentation about
dynamicType:
vstype(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
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)