All Versions
14
Latest Version
Avg Release Cycle
103 days
Latest Release
1297 days ago
Changelog History
Page 2
Changelog History
Page 2
-
v4.0.0 Changes
September 27, 2017๐ Xcode 9 and Swift 4 support!
๐ฅ Breaking changes
- ๐ Renamed
disableErrorLogging
toisErrorLoggingEnabled
- ๐ Changed initializer to use
URLSessionConfiguration
instead of the customConfigurationType
.
Before
let networking = Networking(baseURL: "http://httpbin.org", configurationType: .default)
After
var configuration = URLSessionConfiguration.defaultconfiguration.timeoutIntervalForRequest = TimeInterval(60) configuration.timeoutIntervalForResource = TimeInterval(6048000)let networking = Networking(baseURL: "http://httpbin.org", configuration: configuration)
- ๐ Renamed
-
v3.0.3 Changes
March 28, 2017- โก๏ธ Update to Swift 3.1 (Xcode 8.3)
-
v3.0.2 Changes
February 06, 2017- โ Added convenience accessor for the result's error #197
๐ Useful for when you don't care about the result but more if there's an error or not.
Before:
networking.delete("/user/10") { result inswitch result { case .success:completion(nil) case .failure(let response):completion(response.error) } }
Now:
networking.delete("/user/10") { result incompletion(result.error) // NSError?}
-
v3.0.1 Changes
February 03, 2017- ๐ Fix result crashing when the request was successful but the image or data were malformed. #196