Alamofire v5.0.0-beta.3 Release Notes
Release Date: 2019-03-08 // about 5 years 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.- Added by James Van Noord in Pull Request #2664.
- Request and response bodies to
Request
'sdebugDescription
.
⚡️ Updated
- 📦
Package.swift
for Swift 5 support, moving Swift 4.2 support to[email protected]
. - 0️⃣ Use of
Array
toRange
inRequest
's defaultacceptableResponseCodes
.- Updated by StevenArmandLee in Pull Request #2720.
RetryPolicy
to allow subclasses to overrideretry(_:, for: Session, dueTo:, completion:)
.- Updated by Christian Noon in Pull Request #2713.
- Alamofire's
didResume
notification todidFinish
, which is now called when aRequest
finished, not when tasks resume.
🛠 Fixed
Request
s not finishing when their controllingSession
isdeinit
d or invalidated.- Memory leak when using
validate()
due to reference cycle from implicitself
capture when using an@autoclosure
. - 📜 Crash when using
requestDidParseAnyResponse
when usingClosureEventMonitor
. RetryPolicy
to properly conform toRequestInterceptor
.- 📚 Typos in documentation.
- Fixed by Łukasz Mróz, Jacob Wood, Paulo Henrique, and Todd Lahtinen in Pull Requests #2715, #2725, #2729, and #2697.
- The