Alamofire v5.0.0-beta.3 Release Notes

Release Date: 2019-03-08 // about 1 year ago
  • Released on 2019-01-07. All issues associated with this milestone can be found using this filter. Note: Alamofire will not be following semantic versioning during the beta process. There may be breaking changes until 5.0.0 is released.

    ➕ Added

    • The EmptyResponse protocol, to allow any type to provides values to stand in for an empty response.
    • Request and response bodies to Request's debugDescription.

    ⚡️ Updated

    • 📦 Package.swift for Swift 5 support, moving Swift 4.2 support to Package@swift-4.2.swift.
    • 0️⃣ Use of Array to Range in Request's default acceptableResponseCodes.
    • RetryPolicy to allow subclasses to override retry(_:, for: Session, dueTo:, completion:).
    • Alamofire's didResume notification to didFinish, which is now called when a Request finished, not when tasks resume.

    🛠 Fixed

    • Requests not finishing when their controlling Session is deinitd or invalidated.
    • Memory leak when using validate() due to reference cycle from implicit self capture when using an @autoclosure.
    • 📜 Crash when using requestDidParseAnyResponse when using ClosureEventMonitor.
    • RetryPolicy to properly conform to RequestInterceptor.
    • 📚 Typos in documentation.