Skip to content

Releases: Moya/Moya

8.0.0-beta.5

29 Nov 18:04
Compare
Choose a tag to compare
  • 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.

8.0.0-beta.4

07 Nov 23:57
7470720
Compare
Choose a tag to compare
  • 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.

8.0.0-beta.3

17 Oct 17:49
e0d99e5
Compare
Choose a tag to compare
  • 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.

8.0.0-beta.2

22 Sep 15:00
Compare
Choose a tag to compare
  • Breaking Change Transition from ReactiveCocoa to ReactiveSwift. (PR)

8.0.0-beta.1

19 Sep 18:59
a90fdb6
Compare
Choose a tag to compare
  • 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.

7.0.3

15 Sep 17:55
Compare
Choose a tag to compare

For Carthage only, adds support for Swift 2.3.

7.0.2

14 Sep 18:29
b39eb43
Compare
Choose a tag to compare
Cartfile version bump for Swift 2.3.

7.0.1

12 Sep 22:20
ae72ae8
Compare
Choose a tag to compare

This is a faux release, with an identical commit to 7.0.0.

7.0.0

13 Jul 23:17
ae72ae8
Compare
Choose a tag to compare
  • Breaking Change Drops support for RACSignal.
  • Breaking Change Changes Moya.Error.Underlying to have NSError instead of ErrorType.
  • Breaking Change Implements inflights tracking by adding trackInflights = true to your provider.
  • Breaking Change Changes MoyaProvider.RequestClosure to have Result<NSURLRequest, Moya.Error> -> Void instead of NSURLRequest -> Void as a done closure parameter.
  • Breaking Change New community guidelines.
  • New cURL-based logging plugin.
  • Moves from OSSpinLock to dispatch_semaphor to avoid deadlocks.
  • Integrates Danger into the repo.
  • Fixes a xcodeproj referencing bug introduced by the new cURL-based logging plugin.
  • Calls completion even when cancellable token is cancelled

6.5.0

28 May 14:34
3cc85b5
Compare
Choose a tag to compare
Releasing version 6.5.0.