Changelog History
Page 3
-
v5.0.1 Changes
February 23, 2020 -
v5.0.0 Changes
July 30, 2019Released on 2019-07-29. 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
URLEncodedFormEncoder.DataEncoding
andURLEncodedFormEncoder.KeyEncoding
to customize the encoding ofData
andCodingKeys
inURLEncodedFormEncoder
.- Asynchronous
cURLDescription
method to producecURL
commands forRequest
s which are in the process of creating their initialURLRequest
.
โก๏ธ Updated
- ๐ All inline API documentation.
- Handling of response serializers appended after a
Request
has completed. This no longer produces an error but will instead trigger the normalRequest
lifetime methods.- Updated by Christian Noon in Pull Request #2862.
๐ Fixed
- Empty parameters being encoded as an empty
String
instead ofnil
byURLEncodedFormEncoder
.- Fixed by David Barry in Pull Request #2818.
- Handling of
os_unfair_lock
to prevent rare crash.
-
v5.0.0-rc.3 Changes
October 27, 2019Released on 2019-10-26. All issues associated with this milestone can be found using this filter. Note: Alamofire 5 is now API stable.
โก๏ธ Updated
- Automatic
resume()
behavior to be called after the first response handler is added instead of immediately after task creation.
๐ Fixed
- ๐ Incorrect header convenience method in Usage documentation.
- Unstable parameter ordering in
URLEncodedFormEncoder
. - ๐ Xcode build issues and precompiled binary build issues by removing the dynamic bundle identifier.
- ๐ Build warnings for deprecated
SecTrust
API when building for Catalyst. - Regression from Alamofire 4 causing Alamofire to reject NTLM and Negotiate authentication methods.
- Fixed by Adrian Kashivskyy in Pull Request #2975.
- Automatic
-
v5.0.0-rc.2 Changes
September 08, 2019 -
v5.0.0-rc.1 Changes
September 04, 2019Released on 2019-09-04. All issues associated with this milestone can be found using this filter. Note: Alamofire 5 is now API stable.
โ Added
cancelAllRequests
method onSession
to cancel all in flight requests.- Ability to inject
FileManager
instance intoUploadRequest
. DataPreprocessor
protocol and implementations, allowing the preprocessing of data before serialization.- Internal
URLRequest
validation and error.GET
requests with body data will now produce an error. - Generic
Failure
constraint toDataResponse
andDownloadResponse
, making themDataResponse<Success, Failure: Error>
andDownloadResponse<Success, Failure: Error>
. - ๐ Precondition to ensure
Session
can't be used with backgroundURLSessionConfiguration
s. Alamofire will explicitly support such functionality at some point in the future. - โก๏ธ SwiftFormat configuration and updated styling.
AFDataResponse<Success>
andAFDownloadResponse<Success>
typealiases to help deal with the doubly generic responses.
โก๏ธ Updated
- All internal
Result
usage to use the fully qualified type instead ofAFResult
. DataRequest
andDownloadRequest
functional API, renamingflatMap
totryMap
.HTTPMethod
to be a struct rather than an enum.- 0๏ธโฃ All errors produced by Alamofire to be
AFError
by default. All responses will now start with anAFError
Failure
type. NetworkReachabilityManager
to simplify and modernize its API.- ๐
Usage.md
documentation to be fully up-to-date with Alamofire 5. - Bundle identifiers to include the platform name, fixing ITMS-90806.
๐ Fixed
-
v5.0.0-beta.7 Changes
July 30, 2019Released on 2019-07-29. 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
URLEncodedFormEncoder.DataEncoding
andURLEncodedFormEncoder.KeyEncoding
to customize the encoding ofData
andCodingKeys
inURLEncodedFormEncoder
.- Asynchronous
cURLDescription
method to producecURL
commands forRequest
s which are in the process of creating their initialURLRequest
.
โก๏ธ Updated
- ๐ All inline API documentation.
- Handling of response serializers appended after a
Request
has completed. This no longer produces an error but will instead trigger the normalRequest
lifetime methods.- Updated by Christian Noon in Pull Request #2862.
๐ Fixed
- Empty parameters being encoded as an empty
String
instead ofnil
byURLEncodedFormEncoder
.- Fixed by David Barry in Pull Request #2818.
- Handling of
os_unfair_lock
to prevent rare crash.
-
v5.0.0-beta.6 Changes
April 24, 2019Released on 2019-04-23. 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.
โก๏ธ Updated
ServerTrustEvaluation
logic by simplifying public key equality checks forSecKey
types.- Updated by Aleksandar Vaciฤ in Pull Request #2800.
- โก๏ธ
Request.State
access to lock access and task updates using internal locking API.
๐ Fixed
- Issues in
DownloadRequest
where some events were being duplicated and some were missing. - ๐ Issue with AppStore submissions where the pre-release version in the bundle short versions string was being rejected when built with Carthage or as a submodule.
- Fixed by Christian Noon in Pull Request #2808.
- Issue where response serializer completions were not called when appended to a completed
Request
.- Fixed by Christian Noon in Pull Request #2810.
-
v5.0.0-beta.5 Changes
April 13, 2019Released on 2019-04-12. 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
Request.didResumeTaskNotification
,Request.didSuspendTaskNotification
,Request.didCancelTaskNotification
, andRequest.didCompleteTaskNotification
notifications.- Added by Christian Noon in Pull Request #2803.
- Separate
URLSessionTask
lifetime events toEventMonitor
.
โก๏ธ Updated
SessionStateProvider
to no longer bepublic
and renamed the file it lives in.- Updated by Christian Noon in Pull Request #2801.
MultipartUpload
to no longer bepublic
.- Updated by Christian Noon in Pull Request #2805.
- ๐
Request
,DataRequest
,UploadRequest
, andDownloadRequest
to longer beopen
, as Alamofire does not support subclassing these types.- Updated by Christian Noon in Pull Request #2804.
- Names of the notifications posted by
Request
to includeNotification
.- Updated by Christian Noon in Pull Request #2803.
httpHeaders
extensions onURLRequest
,HTTPURLResponse
, andURLSessionConfiguration
to beheaders
instead.- Updated by Christian Noon in Pull Request #2802.
๐ Fixed
- Issue in
Request
where callingcancel()
inside a response serializer would result in the serializer running again.- Fixed by Christian Noon in Pull Request #2778.
- Issue in
Session
where the delegateprecondition
would be triggered when running with a swizzledURLSessionDelegate
.- Fixed by Christian Noon in Pull Request #2783.
- Compiler error in the example app.
- Fixed by Christian Noon in Pull Request #2786.
- Issues
Request
where certain lifetime events could be triggered more than once by repeatedly callingresume()
,suspend()
, orcancel()
. - ๐ Framework version string to be compatible with TestFlight and AppStore releases.
- Fixed by Christian Noon in Pull Request #2799 in Regards to Issue #2797.
-
v5.0.0-beta.4 Changes
March 29, 2019Released on 2019-03-29. 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
AlamofireExtended
protocol and used it to namespace all public extensions. - The ability to retry requests after encountering response serialization errors.
- Added by Christian Noon in Pull Request #2716.
โก๏ธ Updated
- The
switch
andDispatchQueue
logic throughout codebase to simplify usage patterns.- Updated by Joan Disho and Christian Noon in Pull Requests #2691 and #2765.
- The
MultipartFormData
data APIs by condensing them using optional parameters.- Updated by Ernesto Rivera in Pull Request #2766.
- ๐ The upload APIs for
MultipartFormData
to support custom boundaries.- Updated by Christian Noon in Pull Request #2764.
- ๐ฆ The Xcode project, source code, SPM package, and podspec to support Swift 5 only.
- Updated by Christian Noon in Pull Request #2771.
- ๐ The Alamofire
Result
type to be a newAFResult
typealias on the newSwift.Result
type in Swift 5 and removed all public extensions.- Updated by Dave Camp, Eric Jensen, and Christian Noon in Pull Requests #2769 and #2774.
๐ Fixed
- Issue in
RequestInterceptor
closures where callback arguments were not marked as@escaping
.- Fixed by Scott Talbot in Pull Request #2747.
- Issue in response serializers where
emptyResponseAllowed
logic was not working as expected.
- The
-
v5.0.0-beta.3 Changes
March 08, 2019Released 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