All Versions
49
Latest Version
Avg Release Cycle
60 days
Latest Release
889 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v5.3.0 Changes
October 22, 2020➕ Added
- Ability to modify
URLRequests
before it's adapted and sent:
tron.codable .request("status") .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 }
- Ability to modify
-
v5.2.0 Changes
August 11, 2020➕ Added
- 👍 Combine support on supported platforms through
publisher()
method onAPIRequest
,UploadAPIRequest
,DownloadAPIRequest
. APIError.isCancelled
property, that tells, whether request, that errored, was cancelled by sender.
🔄 Changed
Alamofire.ParameterEncoding
,JSONEncoding
andURLEncoding
are now exposed through TRON API and don't require importing Alamofire to use.
🗄 Deprecated
- 🗄
NetworkActivityPlugin
is deprecated on iOS 13 and higher, becauseUIApplication.isNetworkActivityIndicatorVisible
property it has been switching is deprecated on iOS 13 and higher.
- 👍 Combine support on supported platforms through
-
v5.1.0 Changes
May 04, 2020🔄 Changed
- 👀 Several
Alamofire
types that are exposed through TRON API's are now implicitly exported to allow using them without needing to writeimport Alamofire
. SeeExports.swift
file for a list of them.
- 👀 Several
-
v5.0.3 Changes
April 06, 2020➕ Added
FileURLPassthroughResponseSerializer
, which can be used as a response serializer forDownloadAPIRequest
when you are only interested in URL of downloaded file.
🛠 Fixed
- 🔌
NetworkLoggerPlugin
now correctly skips cancelled requests
-
v5.0.2 Changes
March 19, 2020- ➕ Added
DownloadAPIRequest.perform(withSuccess:failure:)
method, similar toAPIRequest
andUploadAPIRequest
methods.
- ➕ Added
-
v5.0.1 Changes
March 10, 2020- 0️⃣
BaseRequest.headers
now default toHTTPHeaders.default
to allow sending Alamofire default headers such as "Accept-Language", "Accept-Encoding", "User-Agent".
- 0️⃣
-
v5.0.0 Changes
June 28, 2019➕ Added
- 👌 Support for per-request Interceptors.
🏗 Three different behaviors for building URLs:
.appendingPathComponent
,.relativeToBaseURL
and.custom
. Those can be set in TRON initializer:let tron = TRON(baseURL: "https://www.example.com/", buildingURL: .relativeToBaseURL)
Or you can change
URLBuilder.Behavior
on per-request basis, using the new DSL:let request: APIRequest\<Int,APIError\> = tron.swiftyJSON .request("status/200") .buildURL(.relativeToBaseURL)
0️⃣ Default behavior for TRON is
.appendingPathComponent
.✂ Removed
URLBuildable
protocol. Please use different behaviors forURLBuilder
instead.
-
v5.0.0-rc.1 Changes
September 06, 2019➕ Added
- 👍 Better debug prints for
NetworkLoggerPlugin
when decoding usingCodable
protocol. - 🔧
configure(_:)
method forBaseRequest
DSL to allow configuring request with several changes at once.
💥 Breaking
- 🔌 Plugin API that previously was called with
Alamofire.Data/DownloadResponse<Model, Error>
is now called withAlamofire.Data/DownloadResponse<Model, AFError>
due to Alamofire changes to error handling. performCollectingTimeline(withCompletion:)
method is now called also withAFError
instead ofError
.
- 👍 Better debug prints for
-
v5.0.0-beta.5 Changes
June 28, 2019➕ Added
- 👌 Support for per-request Interceptors.
- 🏗 Three different behaviors for building URLs:
.appendingPathComponent
,.relativeToBaseURL
and.custom
. Those can be set in TRON initializer:
let tron = TRON(baseURL: "https://www.example.com/", buildingURL: .relativeToBaseURL)
Or you can change
URLBuilder.Behavior
on per-request basis, using the new DSL:let request: APIRequest<Int,APIError> = tron.swiftyJSON .request("status/200") .buildURL(.relativeToBaseURL)
0️⃣ Default behavior for TRON is
.appendingPathComponent
.✂ Removed
URLBuildable
protocol. Please use different behaviors forURLBuilder
instead.
-
v5.0.0-beta.4 Changes
June 16, 2019➕ Added
- 👌 Support for Swift Package Manager in Xcode 11
- 🆕 New convenient DSL, that allows to convert this code:
func deleteSession() -> APIRequest<Empty, UnknownError> { let request : APIRequest<Empty, UnknownError> = tron.codable.request("session") request.method = .delete return request }
into:
func deleteSession() -> APIRequest<Empty, UnknownError> { return tron.codable.request("session").delete() }
📄 Read more about other DSL improvements in 5.0 Migration Guide
🔄 Changed
URLBuilder
now resolves URL's usingURL(string:relativeTo:)
method, thus allowing more flexible url creation.