TRON v1.0.0-beta.1 Release Notes
-
๐ TRON 1.0 is a major release with a lot of new features and breaking changes. To find out more about philosophy of those and how to adapt to new API's, read TRON 1.0 Migration Guide
๐ฅ Breaking changes
- ๐
RequestToken
protocol removed, perform request methods now returnAlamofire.Request?
to allow customization. When request is stubbed, nil is returned. - ๐
tron.multipartRequest(path:)
removed, usetron.uploadMultipart(path:formData:)
method instead MultipartAPIRequest
performWithSuccess(_:failure:progress:cancellableCallback:)
method is replaced byperformMultipart(success:failure:encodingMemoryThreshold:encodingCompletion:)
MultipartAPIRequest
no longer subclassesAPIRequest
- they both now subclassBaseRequest
.- ๐
appendMultipartData(_:name:filename:mimeType:)
onMultipartAPIRequest
is removed. Please useAlamofire.Manager.MultipartFormData
built-in methods to append multipart data - RxSwift extension on
MultipartAPIRequest
reworked to return single Observable EventDispatcher
class and correspondingTRON.dispatcher
,APIRequest.dispatcher
property are replaced byTRON
andAPIRequest
properties -processingQueue
andresultDeliveryQueue
, which are used to determine on which queue should processing be performed and on which queue results should be delivered.- ๐
Progress
andProgressClosure
typealiases have been removed
โ Added
upload(path:file:)
- upload from fileupload(path:data:)
- upload dataupload(path:stream:)
- upload from streamdownload(path:destination:)
- download file to destinationdownload(path:destination:resumingFromData:)
- download file to destination, resuming from datauploadMultipart(path:formData:)
- multipart form data uploadperform(completion:)
method, that acceptsAlamofire.Response
-> Void block.
๐ Deprecations
- ๐
APIRequest
performWithSuccess(_:failure:)
method is deprecated, new name -perform(success:failure:)
- ๐