All Versions
11
Latest Version
Avg Release Cycle
102 days
Latest Release
94 days ago

Changelog History
Page 1

  • v5.0.1

    November 16, 2019
    • 🛠 Fixes a crash related to cacheOrPurgeJSON #249 (thanks @aasatt!)
  • v5.0.0

    April 17, 2019
    • 👍 Swift 5 and Xcode 10.2 support
  • v4.4.0

    October 06, 2018

    ➕ Adds support for creating a Networking instance without a baseURL #236

    ➕ Adds Xcode 10 support #241

  • v4.3.0

    July 23, 2018
    • 🛠 Fixes NetworkActivityIndicator not showing (#222)
    • 🛠 Fix Swift 4 warnings (#226)
    • Cache response for GET requests (#230)
    • Introduce more result types (#231)
  • v4.2.0

    January 02, 2018
    • ➕ Added support for PATCH #220
  • v4.1.1

    November 06, 2017
    • 🛠 Fix warnings regarding characters being deprecated in Xcode 9.
  • v4.1.0

    October 02, 2017

    ➕ Added a way to extract the data from the response of a GET, POST, PUT, DELETE request. Before you would be able to access the JSON as dictionary or array, now you can also access the data. This is useful for example if you want to use Networking with JSONDecoder.

    let networking = Networking(baseURL: "http://httpbin.org") networking.get("/get") { result inswitch result { case let .success(response):// response.dictionaryBody -\> JSON // response.data -\> JSON datacase .failure:// Handle error } } 
    

    💥 In order to achieve this in a clean way I had to modify the JSON enum, while doing this I noticed that the JSON enum was public, it wasn't meant to be public so I've converted it into a protected enum. The biggest breaking change of doing this is that some projects might be making use of the JSON.from(:bundle:) method, now you can access this utility using FileManager.json(from:bundle:).

  • v4.0.0

    September 27, 2017

    👍 Xcode 9 and Swift 4 support!

    💥 Breaking changes

    • 📇 Renamed disableErrorLogging to isErrorLoggingEnabled
    • 🔄 Changed initializer to use URLSessionConfiguration instead of the custom ConfigurationType.

    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)
    
  • v3.0.3

    March 28, 2017
    • ⚡️ Update to Swift 3.1 (Xcode 8.3)
  • v3.0.2

    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?}