All Versions
49
Latest Version
Avg Release Cycle
60 days
Latest Release
576 days ago

Changelog History
Page 3

  • v4.0.0-beta.2 Changes

    • RxSwift dependency is bumped up to 4.0.0-beta.0, SwiftyJSON dependency is bumped to 4.0.0-alpha.1
    • ๐Ÿš€ Binary release is compiled with Xcode 9.0 Swift 4 compiler.
    • โž• Added ability to customize JSONSerialization.ReadingOptions for JSONDecodableSerializer. Unlike previous releases, no options are specified by default(Previously SwiftyJSON used allowFragments option).

    To have old behavior that allows fragmented json, use:

    let request = tron.swiftyJSON(readingOptions: .allowFragments).request("path")
    
    • โž• Added ability to customize JSONDecoder for CodableSerializer for both model parsing and error parsing.
    • ๐Ÿ“œ CodableParser and JSONDecodableParser are now classes, that are subclassible.
  • v4.0.0-beta.1 Changes

    ๐Ÿš€ This is major release, containing breaking API changes, please read TRON 4.0 Migration Guide

    • ๐Ÿ‘ Implemented support for Codable protocol.
    • APIError now takes it's localizedDescription from underlying errorModel if that model is LocalizedError, and from error.localizedDescription if not.
  • v3.1.1 Changes

    • ๐Ÿ”Œ Makes NetworkActivityPlugin always use API from the main thread(thanks, @mgurreta)!
  • v3.1.0 Changes

    • ๐Ÿ‘ Preliminary support for Swift 3.2 and Swift 4(Xcode 9 beta 6).
  • v3.0.3 Changes

    • Prevent upload requests from being sent using performMultipart method if they are not of .multipartFormData type and vice versa, add specific assertions and error messages.
    • โž• Added isMultipartRequest property on UploadRequestType.
  • v3.0.2 Changes

    • ๐Ÿ‘Œ Improved SPM integration and CI scripts
    • โž• Added validationClosure properties on APIRequest, DownloadAPIRequest and UploadAPIRequest that allow customizing validation behaviour. Default behaviour, as before, is calling validate() method on Request.
  • v3.0.1 Changes

    • Constructors on APIRequest, UploadAPIRequest, APIStub are made public to allow overriding in subclasses.
  • v3.0.0 Changes

    ๐Ÿ’ฅ Breaking changes

    • ๐Ÿ”€ dispatchQueue property was removed from Plugin protocol. All Plugin events are now called synchronously to allow write access to objects, expecially requests. If Plugin requires any specific dispatch queue to run on, it must implement this logic itself.

    ๐Ÿ›  Bugfixes

    • ๐Ÿ— APIStub will now print error to console, if it failed to build model from file.
    • ๐Ÿ”Œ NetworkLoggerPlugin will no longer double escape characters, when printing successful request cURL to console.
  • v2.0.1 Changes

    ๐Ÿš€ Lowers deployment targets to iOS 8 / macOS 10.10

    Required dependencies: Alamofire 4.1 and higher.

  • v2.0.0 Changes

    • ๐Ÿ”Œ NetworkLoggerPlugin now has logCancelledRequests property, that allows turning off logging of failing requests, that were explicitly cancelled by developer.
    • Ensures, that APIStub always calls completion blocks, even if response is not successfully created.