Moya v3.0.0 Release Notes
Release Date: 2015-10-05 // over 8 years ago-
๐ Changed
- ๐ Makes
parameters
onMoyaTarget
an optional[String: AnyObject]
dictionary. - ๐ Makes
parameters
andhttpHeaderFields
onEndpoint
to be optionals. - ๐ฅ Renamed stubbing identifiers: Breaking Change
Moya.StubbedBehavior
renamed toMoya.StubBehavior
Moya.MoyaStubbedBehavior
renamed toMoya.StubClosure
Moya.NoStubbingBehavior
->Moya.NeverStub
Moya.ImmediateStubbingBehaviour
->Moya.ImmediatelyStub
Moya.DelayedStubbingBehaviour
->Moya.DelayedStub
- ๐ Default class functions have been moved to extensions to prevent inadvertent subclassing.
- ๐ฅ Renamed other identifiers: Breaking Change
MoyaProvider.MoyaEndpointsClosure
toMoyaProvider.EndpointClosure
MoyaProvider.MoyaEndpointResolution
toMoyaProvider.RequestClosure
MoyaProvider.endpointResolver
toMoyaProvider.requestClosure
MoyaProvider.stubBehavior
toMoyaProvider.stubClosure
MoyaCredentialClosure
toCredentialClosure
MoyaProvider
initializer parameter namesMoyaCompletion
toMoya.Completion
DefaultEndpointResolution
toDefaultRequestMapping
- ๐ Renamed
T
generic types ofMoyaProvider
andEndpoint
classes toTarget
. - โ Removed errantly named
DefaultEndpointResolution
- ๐ Changes the closure to map
Endpoint
s toNSURLRequest
s asynchonous. - ๐ฅ Removes inflight request tracking for ReactiveCocoa and RxSwift providers. Breaking Change
- ๐ฅ Renamed
EndpointSampleResponse
cases: Breaking ChangeSuccess
toNetworkResponse
, now containsNSData
instead of() -> NSData
.Error
toNetworkError
- Additionally,
NetworkError
no longer has a status code or data associated with it. This represents an error from the underlying iOS network stack, like an inability to connect. See #200 for more details. - Also additionally, removed
Closure
case (see below).
- ๐ฅ Changed
Endpoint
to use asampleResponseClosure
instead of asampleResponse
, making all sample responses lazily executed. Breaking Change - ๐ฅ New plugin architecture Breaking Change
- This replaces
networkActivityClosure
with a plugin.
- This replaces
- ReactiveCocoa provider no longer replaces errors that contain status codes (an unlikely situation) with its own errors. It passes all errors directly through.
- ๐ Renames
token
totarget
(it was usuallytarget
anyway, just made it consistent).
โ Added
- โ Adds support for ReactiveCocoa 4 by moving
ReactiveCocoaMoyaProvider
to useSignalProducer
instead ofRACSignal
- ๐ Makes