Alamofire v5.0.0.beta 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 withresponseDecodable
. - 👌 Support for Brotli
Content-Encoding
in Alamofire's default headers. HTTPHeaders
type and convenience APIs.- 👌 Support for
Encodable
parameter types withJSONParameterEncoder
andURLEncodedFormParameterEncoder
. - Customizable empty reponse handling in response serializers.
EventMonitor
protocol, to tap in to internal Alamofire lifetime events.ServerTrustFailureReason
toAFError
.- Asynchronous request creation.
⚡️ Updated
ResponseSerializer
and associated protocols' requirements and implementations.RequestAdapter
to allow for asynchronous adaptation.SessionManager
toSession
, with rewritten implementation and API.Request
,DataRequest
,UploadRequest
, andDownloadRequest
with rewritten implementation and API.- Top level
request
API to be inside a realAF
namespace enum rather than unnecessaryAlamofire.
usage.
✂ Removed
- 👌 Support for iOS < 10, macOS < 10.12, tvOS < 10, watchOS < 3.
- 👌 Support for
PropertyListSerialization
andresponsePropertyList
. - 👌 Support for
URLSessionStreamTask
. - Closure override and customization API.
Timeline
type, as Alamofire now gathersURLSessionTaskMetrics
for every request.
- 👌 Support for