Alamofire v5.0.0-beta.1 Release Notes

Release Date: 2018-12-07 // over 5 years ago
  • Released on 2018-12-06. 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

    • ๐Ÿ‘Œ Support for Decodable response serialization with responseDecodable.
    • ๐Ÿ‘Œ Support for Brotli Content-Encoding in Alamofire's default headers.
    • HTTPHeaders type and convenience APIs.
    • ๐Ÿ‘Œ Support for Encodable parameter types with JSONParameterEncoder and URLEncodedFormParameterEncoder.
    • Customizable empty response handling in response serializers.
    • EventMonitor protocol, to tap in to internal Alamofire lifetime events.
    • ServerTrustFailureReason to AFError.
    • Asynchronous request creation.

    โšก๏ธ Updated

    • ResponseSerializer and associated protocols' requirements and implementations.
    • RequestAdapter to allow for asynchronous adaptation.
    • SessionManager to Session, with rewritten implementation and API.
    • Request, DataRequest, UploadRequest, and DownloadRequest with rewritten implementation and API.
    • Top level request API to be inside a real AF namespace enum rather than unnecessary Alamofire. usage.

    โœ‚ Removed

    • ๐Ÿ‘Œ Support for iOS < 10, macOS < 10.12, tvOS < 10, watchOS < 3.
    • ๐Ÿ‘Œ Support for PropertyListSerialization and responsePropertyList.
    • ๐Ÿ‘Œ Support for URLSessionStreamTask.
    • Closure override and customization API.
    • Timeline type, as Alamofire now gathers URLSessionTaskMetrics for every request.