Swiftpack.co - Package - Moya/Moya

404: Not Found

Github

link
Stars: 7694
Help us keep the lights on

Releases

10.0.1 - Nov 23, 2017

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 - Oct 21, 2017

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 - Oct 8, 2017

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 - Sep 4, 2017

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.

9.0.0-beta.1 - Aug 26, 2017

9.0.0-beta.1

  • Breaking Change Replaced parameters & parameterEncoding in TargetType with extended Task cases.
  • Breaking Change Flattened UploadType and DownloadType into Task cases.
  • Breaking Change Replaced shouldAuthorize: Bool in AccessTokenAuthorizable with authorizationType: AuthorizationType.
  • Breaking Change Replaced token in AccessTokenPlugin with tokenClosure.
  • Breaking Change TargetTypes no longer receive the Authorization: Bearer <token> header by default when using AccessTokenPlugin.
  • 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.
  • Fixed a bug where you weren't notified on progress callback for data request.