Moya v9.0.0-beta.1 Release Notes

Release Date: 2017-08-26 // over 6 years ago
  • ๐Ÿ”„ Changed

    • ๐Ÿ’ฅ Breaking Change Replaced parameters & parameterEncoding in TargetType with extended Task cases.
    • ๐Ÿ’ฅ Breaking Change Flattened UploadType and DownloadType into Task cases.
    • ๐Ÿ’ฅ Breaking Change Replaced shouldAuthorize: Bool in AccessTokenAuthorizable with authorizationType: AuthorizationType.
    • ๐Ÿ’ฅ Breaking Change Replaced token in AccessTokenPlugin with tokenClosure.
    • ๐Ÿ’ฅ Breaking Change TargetTypes no longer receive the Authorization: Bearer <token> header by default when using AccessTokenPlugin.

    โž• Added

    • โž• Added Swift 4.0 support for Moya core (without RxSwift/ReactiveSwift extensions for now).
    • โž• Added all the filter/map operators that were available for Observable<Response> to Single<Response> as well.
    • โž• Added AuthorizationType to AccessTokenAuthorizable 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 from Task.

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed a bug where you weren't notified on progress callback for data request.