Moya v5.0.0 Release Notes
Release Date: 2015-11-30 // over 8 years ago-
๐ Changed
- ๐ฅ Breaking Change rename
MoyaTarget
protocol toTargetType
- ๐ฅ Breaking Change rename
MoyaRequest
protocol toRequestType
- ๐ฅ Breaking Change rename
Plugin
protocol toPluginType
- โ Removes conversion from
Moya.Method
toAlamofire.Method
since it was unused - ๐ Changes
NetworkLoggingPlugin
's initializer to also take a function that has the same signature asprint
to simplify testing - ๐ฅ Breaking Change renames
ParameterEncoding
'sparameterEncoding
method totoAlamofire
and makes it internal only - ๐ฅ Breaking Change
Plugin<Target>
is now a protocol and as such no longer sends a typedMoyaProvider
. - @swizzlr - ๐ฅ Breaking Change The types that were subtypes of
Moya
are now defined at the top level; you should find no compatibility issues since they are still invoked byMoya.X
โ @swizzlr - ๐ฅ Breaking Change
Completion
closure now returns aResult
instead of multiple optional parameters. - ๐ฅ Breaking Change
MoyaResponse
is nowResponse
, and alsofinal
. It will be changed to astruct
in a future release. - @swizzlr - ๐ฅ Breaking Change
ReactiveCocoaMoyaProvider
can now be supplied with an optionalstubScheduler
โ @swizzlr (sponsored by Network Locum) - ๐ฅ Breaking Change Introduce
Error
type for use with reactive extensions - @tomburns - ๐ฅ Breaking Change Deprecate ReactiveCocoa 2 support
- ๐ฅ Breaking Change rename