Moya v8.0.0-beta.3 Release Notes
Release Date: 2016-10-17 // over 7 years ago-
๐ Changed
- ๐ฅ Breaking Change Throw dedicated
Error.jsonMapping
whenmapJSON
fails to parse JSON. - ๐ฅ Breaking Change Renamed
endpointByAddingHTTPHeaders
toadding(newHttpHeaderFields:)
. - ๐ฅ Breaking Change Renamed
endpointByAddingParameters
toadding(newParameters:)
. - ๐ฅ Breaking Change Renamed
endpointByAddingParameterEncoding
toadding(newParameterEncoding:)
. - ๐ฅ Breaking Change Renamed
endpointByAdding(parameters:httpHeaderFields:parameterEncoding)
toadding(parameters:httpHeaderFields:parameterEncoding)
. - ๐ฅ Breaking Change Changed HTTP verbs enum to lowercase.
urlRequest
property ofEndpoint
is now truly optional. The request will fail if theurlRequest
turns out to be nil and arequestMapping
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 wholeURLResponse
. - โ Added a test for new
SampleResponseClosure
case.
- ๐ฅ Breaking Change Throw dedicated