|
1 | 1 | # Change Log |
2 | 2 | All notable changes to this project will be documented in this file. |
3 | 3 |
|
4 | | -## Develop |
| 4 | +## [1.0.0-beta.1](https://github.com/MLSDev/TRON/releases/tag/1.0.0-beta.1) |
5 | 5 |
|
6 | 6 | 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) |
7 | 7 |
|
8 | 8 | ### Breaking changes |
9 | 9 |
|
| 10 | +* `RequestToken` protocol removed, perform request methods now return `Alamofire.Request?` to allow customization. When request is stubbed, nil is returned. |
10 | 11 | * `tron.multipartRequest(path:)` removed, use `tron.uploadMultipart(path:formData:)` method instead |
11 | | -* `MultipartAPIRequest` `performWithSuccess(_:failure:progress:cancellableCallback:)` method is replaced by `APIRequest` `performMultipart(success:failure:encodingMemoryThreshold:encodingCompletion:)` method |
| 12 | +* `MultipartAPIRequest` `performWithSuccess(_:failure:progress:cancellableCallback:)` method is replaced by `performMultipart(success:failure:encodingMemoryThreshold:encodingCompletion:)` |
12 | 13 | * `MultipartAPIRequest` no longer subclasses `APIRequest` - they both now subclass `BaseRequest`. |
13 | 14 | * `appendMultipartData(_:name:filename:mimeType:)` on `MultipartAPIRequest` is removed. Please use `Alamofire.Manager.MultipartFormData` built-in methods to append multipart data |
14 | | -* RxSwift extension on `MultipartAPIRequest` reworked to return single Observable<Model.ModelType> |
| 15 | +* RxSwift extension on `MultipartAPIRequest` reworked to return single Observable<ModelType> |
15 | 16 | * `EventDispatcher` class and corresponding `TRON.dispatcher`, `APIRequest.dispatcher` property are replaced by `TRON` and `APIRequest` properties - `processingQueue` and `resultDeliveryQueue`, which are used to determine on which queue should processing be performed and on which queue results should be delivered. |
16 | 17 | * `Progress` and `ProgressClosure` typealiases have been removed |
17 | 18 |
|
18 | 19 | ### Added |
19 | 20 |
|
20 | | -Several methods on `TRON`, that allow uploads and downloads |
21 | | - |
22 | 21 | * `upload(path:file:)` - upload from file |
23 | 22 | * `upload(path:data:)` - upload data |
24 | 23 | * `upload(path:stream:)` - upload from stream |
25 | 24 | * `download(path:destination:)` - download file to destination |
26 | 25 | * `download(path:destination:resumingFromData:)` - download file to destination, resuming from data |
27 | 26 | * `uploadMultipart(path:formData:)` - multipart form data upload |
28 | | - |
29 | | -Added new `perform(completion:)` method, that accepts `Alamofire.Response` -> Void block. |
30 | | - |
31 | | -### Changed |
32 | | - |
33 | | -* `RequestToken` protocol removed, perform request methods now return `Alamofire.Request?` to allow customization. When request is stubbed, nil is returned. |
| 27 | +* `perform(completion:)` method, that accepts `Alamofire.Response` -> Void block. |
34 | 28 |
|
35 | 29 | ### Deprecations |
36 | 30 |
|
|
0 commit comments