Moya v9.0.0-beta.1 Release Notes
Release Date: 2017-08-26 // over 6 years ago-
๐ Changed
- ๐ฅ Breaking Change Replaced
parameters
¶meterEncoding
inTargetType
with extendedTask
cases. - ๐ฅ Breaking Change Flattened
UploadType
andDownloadType
intoTask
cases. - ๐ฅ Breaking Change Replaced
shouldAuthorize: Bool
inAccessTokenAuthorizable
withauthorizationType: AuthorizationType
. - ๐ฅ Breaking Change Replaced
token
inAccessTokenPlugin
withtokenClosure
. - ๐ฅ Breaking Change
TargetTypes
no longer receive theAuthorization: Bearer <token>
header by default when usingAccessTokenPlugin
.
โ Added
- โ Added Swift 4.0 support for Moya core (without RxSwift/ReactiveSwift extensions for now).
- โ Added all the
filter
/map
operators that were available forObservable<Response>
toSingle<Response>
as well. - โ Added
AuthorizationType
toAccessTokenAuthorizable
representing request headers of.none
,.basic
, and.bearer
. - โ Added tests for
Single<Response>
operators. - โ Added
Progress
object into the response when calling progress callback on completion. - โ Added tests for creating
URLRequest
fromTask
.
๐ Fixed
- ๐ Fixed a bug where you weren't notified on progress callback for data request.
- ๐ฅ Breaking Change Replaced