Moya v8.0.0-beta.3 Release Notes

Release Date: 2016-10-17 // over 5 years ago
  • ๐Ÿ”„ Changed

    • ๐Ÿ’ฅ Breaking Change Throw dedicated Error.jsonMapping when mapJSON fails to parse JSON.
    • ๐Ÿ’ฅ Breaking Change Renamed endpointByAddingHTTPHeaders to adding(newHttpHeaderFields:).
    • ๐Ÿ’ฅ Breaking Change Renamed endpointByAddingParameters to adding(newParameters:).
    • ๐Ÿ’ฅ Breaking Change Renamed endpointByAddingParameterEncoding to adding(newParameterEncoding:).
    • ๐Ÿ’ฅ Breaking Change Renamed endpointByAdding(parameters:httpHeaderFields:parameterEncoding) to adding(parameters:httpHeaderFields:parameterEncoding).
    • ๐Ÿ’ฅ Breaking Change Changed HTTP verbs enum to lowercase.
    • urlRequest property of Endpoint is now truly optional. The request will fail if the urlRequest turns out to be nil and a requestMapping error will be returned together with the problematic url.
    • ๐Ÿ’ฅ Breaking Change Made RxMoya & ReactiveMoya frameworks dependant on Moya framework, making them slimmer and not re-including Moya source in the Reactive extensions. (PR)
    • โœ‚ Removed the unused StreamRequest typealias that was causing watchOS failures.

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixes download requests never calling the completion block.

    โž• Added

    • โž• Added a new internal Requestable protocol.
    • โž• Added a new case to SampleResponseClosure which allows mocking of the whole URLResponse.
    • โž• Added a test for new SampleResponseClosure case.