Releases: MLSDev/TRON
Releases · MLSDev/TRON
4.1.0
- Deprecate TRON level headerBuilder in favor of Alamofire.requestAdapter.
- Loosen CodableParser generic constraints to be able to work with
Decodable
protocol instead ofCodable
.
4.0.0
- Compiled with Xcode 9.1 / Swift 4.0.2
4.0.0-beta.2
- RxSwift dependency is bumped up to 4.0.0-beta.0, SwiftyJSON dependency is bumped to
4.0.0-alpha.1
- Binary release is compiled with Xcode 9.0 Swift 4 compiler.
- Added ability to customize
JSONSerialization.ReadingOptions
forJSONDecodableSerializer
. Unlike previous releases, no options are specified by default(Previously SwiftyJSON usedallowFragments
option).
To have old behavior that allows fragmented json, use:
let request = tron.swiftyJSON(readingOptions: .allowFragments).request("path")
- Added ability to customize
JSONDecoder
forCodableSerializer
for both model parsing and error parsing. CodableParser
andJSONDecodableParser
are now classes, that are subclassible.
4.0.0-beta.1
This is major release, containing breaking API changes, please read TRON 4.0 Migration Guide
- Implemented support for
Codable
protocol. APIError
now takes it's localizedDescription from underlyingerrorModel
if that model isLocalizedError
, and fromerror.localizedDescription
if not.
Breaking changes
SwiftyJSONDecodable
methods are now prefixed with .swiftyJSON, like so:
// old
let request = tron.request("path")
// new
let request = tron.swiftyJSON.request("path")
3.1.1
3.1.0
- Preliminary support for Swift 3.2 and Swift 4(Xcode 9 beta 6).
3.0.3
- Prevent upload requests from being sent using
performMultipart
method if they are not of .multipartFormData type and vice versa, add specific assertions and error messages. - Added
isMultipartRequest
property onUploadRequestType
.
3.0.2
- Improved SPM integration and CI scripts
- Added
validationClosure
properties onAPIRequest
,DownloadAPIRequest
andUploadAPIRequest
that allow customizing validation behaviour. Default behaviour, as before, is callingvalidate()
method onRequest
.
3.0.1
- Constructors on
APIRequest
,UploadAPIRequest
,APIStub
are made public to allow overriding in subclasses.
3.0.0
Breaking changes
dispatchQueue
property was removed fromPlugin
protocol. AllPlugin
events are now called synchronously to allow write access to objects, expecially requests. IfPlugin
requires any specific dispatch queue to run on, it must implement this logic itself.
Bugfixes
APIStub
will now print error to console, if it failed to build model from file.NetworkLoggerPlugin
will no longer double escape characters, when printing successful request cURL to console.