1.0.0-beta.1
·
333 commits
to main
since this release
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](/Docs/1.0 Migration Guide.md).
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 insteadMultipartAPIRequest
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:)