Moya v8.0.0-beta.1 Release Notes

  • 🔄 Changed

    • 💥 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.

    ➕ Added

    • ➕ Adds Download and Upload Task type support to Moya.
    • ➕ 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.

    🛠 Fixed

    • 👕 Corrects SwiftLint warnings.
    • Separates Moya.swift into multiple files.
    • ⚡️ Updated mapJSON API to include an optional named parameter failsOnEmptyData: that when overridden returns an empty NSNull() result instead of throwing an error when the response data is empty.