All Versions
14
Latest Version
Avg Release Cycle
103 days
Latest Release
898 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