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 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 response 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