Moya v3.0.0 Release Notes

Release Date: 2015-10-05 // over 8 years ago
  • ๐Ÿ”„ Changed

    • ๐Ÿ‘‰ Makes parameters on MoyaTarget an optional [String: AnyObject] dictionary.
    • ๐Ÿ‘‰ Makes parameters and httpHeaderFields on Endpoint to be optionals.
    • ๐Ÿ’ฅ Renamed stubbing identifiers: Breaking Change
      • Moya.StubbedBehavior renamed to Moya.StubBehavior
      • Moya.MoyaStubbedBehavior renamed to Moya.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 to MoyaProvider.EndpointClosure
      • MoyaProvider.MoyaEndpointResolution to MoyaProvider.RequestClosure
      • MoyaProvider.endpointResolver to MoyaProvider.requestClosure
      • MoyaProvider.stubBehavior to MoyaProvider.stubClosure
      • MoyaCredentialClosure to CredentialClosure
      • MoyaProvider initializer parameter names
      • MoyaCompletion to Moya.Completion
      • DefaultEndpointResolution to DefaultRequestMapping
    • ๐Ÿ“‡ Renamed T generic types of MoyaProvider and Endpoint classes to Target.
    • โœ‚ Removed errantly named DefaultEndpointResolution
    • ๐Ÿ”„ Changes the closure to map Endpoints to NSURLRequests asynchonous.
    • ๐Ÿ’ฅ Removes inflight request tracking for ReactiveCocoa and RxSwift providers. Breaking Change
    • ๐Ÿ’ฅ Renamed EndpointSampleResponse cases: Breaking Change
      • Success to NetworkResponse, now contains NSData instead of () -> NSData.
      • Error to NetworkError
      • 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 a sampleResponseClosure instead of a sampleResponse, making all sample responses lazily executed. Breaking Change
    • ๐Ÿ’ฅ New plugin architecture Breaking Change
      • This replaces networkActivityClosure with a plugin.
    • 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 to target (it was usually target anyway, just made it consistent).

    โž• Added

    • โž• Adds support for ReactiveCocoa 4 by moving ReactiveCocoaMoyaProvider to use SignalProducer instead of RACSignal