github Moya/Moya 8.0.0

latest releases: 15.0.3, 15.0.1, 15.0.0...
7 years ago
  • Breaking Change Renamed Moya.Error to MoyaError.
  • Breaking Change Renamed verbose in the NetworkLoggerPlugin to isVerbose.
  • Breaking Change TargetType now specifies its ParameterEncoding.
  • Breaking Change Removed unused Moya.Error.data.
  • Moya.Error now conforms to LocalizedError protocol.
  • Added documentation for TargetType and associated data structures.
  • Re-add MultiTarget to project.
  • Adopted an SPM-compatible project structure.
  • Moved tests to Moya.xcodeproj.
  • Supported the Swift package manager
  • Added AccessTokenPlugin for easier authorization.
  • Added AccessTokenAuthorizable protocol for optionally controlling the authorization behavior of TargetTypes when using AccessTokenPlugin.
  • Added availability tags for renamed functions included in the Swift 3 migration.

And in earlier beta's, we changed the following:

  • Breaking Change Renamed ReactiveCocoaMoyaProvider to ReactiveSwiftMoyaProvider.
  • Breaking Change Renamed PluginType functions to comply with Swift 3 design guideline:
    • willSendRequest renamed to willSend.
    • didReceiveResponse renamed to didReceive.
  • Breaking Change Renamed filterStatusCodes(:) to filter(statusCodes:) (and filterStatusCode(:) to filter(statusCode:)).
  • Breaking Change Renamed request(token:) to simply request(:_) (ReactiveSwift).
  • Breaking Change Renamed notifyPluginsOfImpendingStub(request:) to notifyPluginsOfImpendingStub(for:).
  • Renamed the ReactiveCocoa subspec to ReactiveSwift.
  • PluginType can now modify requests and responses through prepare and process
  • Breaking Change Renamed cancelled in the Cancellable protocol to isCancelled.
  • Breaking Change Renamed URL in Endpoint to url.
  • Breaking Change Renamed StructTarget to MultiTarget.
  • Demo project has been updated with new DemoMultiTarget target, new project
    structure and more.
  • Readded support for iOS 8 and macOS 10.10.
  • Added validate option in TargetType, to allow enabling Alamofire automatic validation on requests.
  • Added mapString(atKeyPath:) to Response, SignalProducerProtocol, and ObservableType.
  • Breaking Change Made some class funcs mimicking enum cases lowercased.
  • Updates for RxSwift 3.0 final release.
  • Added default empty implementation for willSendRequest and didReceiveResponse in PluginType.
  • Use String(data:encoding:) instead of NSString(data:encoding:) while converting Data to String.
  • 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.
  • Fixes download requests never calling the completion block.
  • 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.
  • Breaking Change Transition from ReactiveCocoa to ReactiveSwift. (PR)
  • Breaking Change Support for Swift 3 in favor of Swift 2.x.
  • Breaking Change fileName and mimeType are now optional properties on a MultipartFormData object.
  • Correct Alamofire appendBodyPart method id called in MultipartFormData.
  • Breaking Change Removes multipartBody from TargetType protocol and adds a task instead.
  • Breaking Change Successful Response instances that have no data with them are now being converted to .Success Results.
  • Adds Download and Upload Task type support to Moya.
  • Corrects SwiftLint warnings.
  • Separates Moya.swift into multiple files.
  • Updated mapJSON API to include an optional named parameter failsOnEmptyData: that when overriden returns an empty NSNull() result instead of throwing an error when the response data is empty.
  • Added supportsMultipart to the Method type, which helps determine whether to use multipart/form-data encoding.
  • Added PATCH and CONNECT to the Method cases which support multipart encoding.
  • Added request for Response.

Don't miss a new Moya release

NewReleases is sending notifications on new releases.