All Versions
49
Latest Version
Avg Release Cycle
60 days
Latest Release
1546 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.