Skip to content

Releases: Moya/Moya

11.0.2

01 Apr 05:19
Compare
Choose a tag to compare

This release is a small patch to fix Moya's Carthage compatibility.

Fixed

  • Fixed Carthage compatibility by disabling the SwiftLint build phase in release builds. #1619 by @Dschee.

11.0.1

26 Feb 06:29
Compare
Choose a tag to compare

This release fixes a few bugs regarding Alamofire validation not being performed on requests.

Fixed

  • Fixed Alamofire validation not being performed on .uploadMultipart requests.
    #1591 by @SD10.
  • Fixed Alamofire validation not being performed on stubbed requests.
    #1593 by @SD10.

11.0.0

08 Feb 04:28
Compare
Choose a tag to compare

This release brings support for ReactiveSwift 3.0. Thank you to all the contributors making it possible! ❀️

Full Changelog for Moya 11.0:

Added

  • Breaking Change Added a .requestCustomJSONEncodable case to Task. #1443 by @evgeny-sureev.
  • Breaking Change Added failsOnEmptyData boolean support for the Decodable map functions. #1508 by @jeroenbb94.

Changed

  • Breaking Change Updated minimum version of ReactiveSwift to 3.0.
    #1470 by @larryonoff.
  • Breaking Change Changed the validate property of TargetType to use new ValidationType enum representing valid status codes. #1505 by @SD10, @amaurydavid.
  • Breaking Change Removed generic from Endpoint. See #1524 for discussion. #1529 by @zhongwuzw.

11.0.0-beta.2

27 Jan 18:27
Compare
Choose a tag to compare
11.0.0-beta.2 Pre-release
Pre-release

Changed

  • Breaking Change Removed generic from Endpoint. See #1524 for discussion. #1529 by @zhongwuzw.

10.0.2

26 Jan 16:27
Compare
Choose a tag to compare

Fixed

  • Fixed a bug where modifying .uploadMultipart, .uploadCompositeMultipart, .uploadFile, .downloadDestination, and .downloadParameters tasks through an endpointClosure has no effect on the final request.
    #1550 by @SD10, @sunshinejr.
  • Fixed a bug where URLEncoding.httpBody wasn't allowed as bodyEncoding in Task.requestCompositeParameters(). #1557 by @sunshinejr.

11.0.0-beta.1

10 Jan 21:40
Compare
Choose a tag to compare
11.0.0-beta.1 Pre-release
Pre-release

This release brings full ReactiveSwift 3.0 support and minor enhancements. Thanks to all contributors that made it possible!

Added

  • Breaking Change Added a .requestCustomJSONEncodable case to Task. #1443 by @evgeny-sureev.
  • Breaking Change Added failsOnEmptyData boolean support for the Decodable map functions. #1508 by @jeroenbb94.

Changed

  • Breaking Change Updated minimum version of ReactiveSwift to 3.0.
    #1470 by @larryonoff.
  • Breaking Change Changed the validate property of TargetType to use new ValidationType enum representing valid status codes. #1505 by @SD10, @amaurydavid.

10.0.1

23 Nov 19:11
Compare
Choose a tag to compare

Nothing better than a few bug fixes after the major release πŸ˜‰

Fixed

  • Fixed a bug that Decodable mapping to object other than Array and Dictionary in a key path cause crash. #1405 by @ufosky.
  • Fixed a bug with missing Content-Type header when using .requestJSONEncodable #1410 by @Vict0rS.
  • Fixed linker settings, enabling RxMoya and ReactiveMoya to be used in app extensions #1417 by @spookyvision.
  • Fixed carthage OS X not targeting 10.10 #1444 by @lucas34.

10.0.0

21 Oct 20:02
Compare
Choose a tag to compare

Full Swift 4.0, RxSwift 4.0 support and more! Thanks to all contributors that made it possible:

@devxoul @SD10 @LeLuckyVint @afonsograca @AndrewSB @BasThomas @pedrovereza @sunshinejr

Big ❀️ to all of you!

Changes since 10.0.0-beta.1:

Fixed

  • Fixed a bug that Decodable mapping won't decode nested JSON array in a key path #1382 by @devxoul.

Full changelog for Moya 10.0.0:

Added

Changed

  • Breaking Change Changed Endpoint.init so it doesn't have any default arguments (removing default argument .get for method parameter and nil for httpHeaderFields parameter). #1289 by @sunshinejr.
  • Breaking Change Changed NetworkActivityPlugin so its networkActivityClosure has now target: TargetType argument in addition to change: NetworkActivityChangeType. #1290 by @sunshinejr.
  • Breaking Change Changed Endpoint's urlRequest property to urlRequest() a throwing method. #1248 by @SD10.

Removed

  • Breaking Change Removed RxMoyaProvider and ReactiveSwiftMoyaProvider. #1320 by @SD10

Fixed

  • Fixed a MoyaProvider+Rx self-retaining bug in requestWithProgress. #1311 by @AndrewSB.

10.0.0-beta.1

08 Oct 19:50
Compare
Choose a tag to compare
10.0.0-beta.1 Pre-release
Pre-release

Full Swift 4.0 support and more! RxSwift 4.0.0-rc.0 needed for RxSwift 4.0. Thanks to all contributors that made it possible!

Added

Changed

  • Breaking Change Changed Endpoint.init so it doesn't have any default arguments (removing default argument .get for method parameter and nil for httpHeaderFields parameter). #1289 by @sunshinejr.
  • Breaking Change Changed NetworkActivityPlugin so its networkActivityClosure has now target: TargetType argument in addition to change: NetworkActivityChangeType. #1290 by @sunshinejr.
  • Breaking Change Changed Endpoint's urlRequest property to urlRequest() a throwing method. #1248 by @SD10.

Removed

  • Breaking Change Removed RxMoyaProvider and ReactiveSwiftMoyaProvider. #1320 by @SD10

Fixed

  • Fixed a MoyaProvider+Rx self-retaining bug in requestWithProgress. #1311 by @AndrewSB.

9.0.0

04 Sep 18:50
Compare
Choose a tag to compare

This is a big major release and thanks to everyone involved! πŸŽ‰ πŸŽ‰ πŸŽ‰

In this release there were two big changes:

  1. We deprecated reactive providers and started using rx and reactive namespaces.
  2. We removed parameters, parameterEncoding and expanded task.

We also added Swift 4.0 support to Moya core (and preliminary for ReactiveSwift) where support for RxSwift will be in a next major release. We improved our test coverage from 76% up to 83%, added callbackQueues as an option for all requests (reactive or not!), headers to TargetType, improved AccessTokenPlugin, started using Single<Response> instead of Observable<Response> for RxSwift normal requests and many, many more! Checkout the changelog below and have fun! πŸŽ‰ There is also a migration guide to help you make it through!

Oh, and if you find anything you are concerned about, make a new Issue - or better yet, make a PR with the fix! πŸ˜‰

Changes since 9.0.0-beta.1:

  • Removed default value for task from Endpoint initializer.

Full changelog for Moya 9.0.0:

  • Breaking Change Added support to get the response (if any) from MoyaError.
  • Breaking Change Added headers to TargetType.
  • Breaking Change Updated RxMoyaProvider.request to return a Single<Request>.
  • Breaking Change Updated Moya.Response's responseto use an HTTPURLResponse instead of a URLResponse.
  • Breaking Change Updated TargetTypes so it no longer receives the Authorization: Bearer <token> header by default when using AccessTokenPlugin.
  • Breaking Change Renamed all occurrences of queue to callbackQueue.
  • Breaking Change Deprecated ReactiveSwiftMoyaProvider and RxSwiftMoyaProvider. Use MoyaProvider with reactive properties now: provider.reactive._, provider.rx._. In case you were subclassing reactive providers, please take a look at this PR from Eidolon. It covers migration from subclassing given providers, to usage by composition.
  • Breaking Change Removed parameter name in requestWithProgress for ReactiveSwiftMoyaProvider.
  • Breaking Change Removed deprecated in Moya 8.0.0: Moya.Error,
    endpointByAddingParameters(parameters:), endpointByAddingHttpHeaderFields(httpHeaderFields:), endpointByAddingParameterEncoding(newParameterEncoding:), endpointByAdding(parameters:httpHeaderFields:parameterEncoding), StructTarget, filterStatusCodes(range:), filterStatusCode(code:), willSendRequest(request:target:), didReceiveResponse(result:target:), ReactiveCocoaMoyaProvider, ReactiveSwiftMoyaProvider.request(token:).
  • Breaking Change Replaced parameters & parameterEncoding in TargetType with extended Task cases.
  • Breaking Change Replaced shouldAuthorize: Bool in AccessTokenAuthorizable with authorizationType: AuthorizationType.
  • Breaking Change Replaced token in AccessTokenPlugin with tokenClosure.
  • Breaking Change Flattened UploadType and DownloadType into Task cases.
  • Added optional callback queue parameter to reactive providers.
  • Added public URL(target:) initializator that creates url from TargetType.
  • Added an optional requestDataFormatterin NetworkLoggerPlugin to allow the client to interact with the request data before logging it.
  • Added Swift 4.0 support for Moya core (without RxSwift/ReactiveSwift extensions for now).
  • Added all the filter/map operators that were available for Observable<Response> to Single<Response> as well.
  • Added AuthorizationType to AccessTokenAuthorizable representing request headers of .none, .basic, and .bearer.
  • Added tests for Single<Response> operators.
  • Added Progress object into the response when calling progress callback on completion.
  • Added tests for creating URLRequest from Task.
  • Updated minimum version of RxSwift to 3.3.
  • Updated minimum version of ReactiveSwift to 2.0.
  • Fixed a bug where you would have two response events in requestWithProgress method on ReactiveSwift module.
  • Fixed a bug where you weren't notified on progress callback for data request.
  • Enabled the "Allow app extension API only" flag.
  • Removed default value for task from Endpoint initializer.