TRON v5.3.0 Release Notes

Release Date: 2020-10-22 // over 3 years ago
  • โž• Added

    • Ability to modify URLRequests before it's adapted and sent:
        .modifyRequest { $0.httpShouldHandleCookies = false }

    This feature uses Alamofire.RequestModifier closure, that can also be set without DSL on request instance directly:

    let request : APIRequest<Post,Empty> = tron.codable.request("posts")
    request.requestModifier = { urlRequest in
        urlRequest.httpShouldHandleCookies = false

Previous changes from v5.2.0

  • โž• Added

    • ๐Ÿ‘ Combine support on supported platforms through publisher() method on APIRequest, UploadAPIRequest, DownloadAPIRequest.
    • APIError.isCancelled property, that tells, whether request, that errored, was cancelled by sender.

    ๐Ÿ”„ Changed

    • Alamofire.ParameterEncoding, JSONEncoding and URLEncoding are now exposed through TRON API and don't require importing Alamofire to use.

    ๐Ÿ—„ Deprecated

    • ๐Ÿ—„ NetworkActivityPlugin is deprecated on iOS 13 and higher, because UIApplication.isNetworkActivityIndicatorVisible property it has been switching is deprecated on iOS 13 and higher.