Alamofire v4.0.0 Release Notes
-
π Released on 2016-09-11. All issues associated with this milestone can be found using this filter.
β Added
- Internal
DispatchQueue
extension set of convenience properties and methods.- Added by Christian Noon in Pull Request #1450.
RequestAdapter
andRequestRetrier
protocols allowing requests to be retried.- Added by Christian Noon in Pull Request #1450.
- β
RequestAdapter
tests on all testableSessionManager
request APIs.- Added by Christian Noon in Pull Request #1450.
- β Added an
Adapting and Retrying Requests
section to the README.- Added by Christian Noon in Pull Request #1450.
DataRequest
,DownloadRequest
,UploadRequest
andStreamRequest
subclasses.- Added by Christian Noon in Pull Request #1455.
- Top-level APIs for creating
StreamRequest
instances.- Added by Christian Noon in Pull Request #1455.
- Extra
responseToSelector
overrides for stream delegate APIs.- Added by Christian Noon in Pull Request #1455.
- π A new
syncResult
extension toDispatchQueue
to simplify thread-safe locking.- Added by Christian Noon in Pull Request #1455.
- π Two serialization failure reasons to support download response serializers.
- Added by Christian Noon in Pull Request #1457.
- β
Download response serialization tests for all serializer types.
- Added by Christian Noon in Pull Request #1457.
- The
dataFileNil
anddataFileReadFailed
cases toResponseValidationFailureReason
.- Added by Christian Noon in Pull Request #1461.
- The
isWildcard
property to MIMEType struct for convenience.- Added by Christian Noon in Pull Request #1461.
- Missing
CustomDebugStringCovertible
conformance toDownloadResponse
.- Added by Christian Noon in Pull Request #1462.
- β
URL variants to the
FileManager
extension in the test suite.- Added by Christian Noon in Pull Request #1462.
DownloadOptions
option set to make moving files more robust.- Added by Christian Noon in Pull Request #1462.
- β
Tests validating success and failure scenarios for
DownloadOptions
.- Added by Christian Noon in Pull Request #1462.
- π¨ Parameter encoding failure docstrings and refactored reasons to be consistent.
- Added by Christian Noon in Pull Request #1465.
- Safeguards to url parameter encoding when extracting the url requestβs url.
- Added by Christian Noon in Pull Request #1465.
- The new
URLSessionTaskMetrics
to allResponse types
.- Added by Christian Noon in Pull Request #1492.
- The Alamofire 4.0 Migration Guide to the README.
- Added by Christian Noon.
HTTPHeaders
typealias for top-level API convenience.- Added by Christian Noon.
- Complete safeguards to
URLStringConvertible
,URLRequestConvertible
andRequestAdapter
.- Added by Christian Noon in Pull Request #1505.
- β
Tests around invalidURL error cases for
Request
creation and adaptation.- Added by Christian Noon in Pull Request #1505.
β‘οΈ Updated
- The
authorizationHeader
static method over to returning optional tuple.- Updated by Christian Noon in Pull Request #1455.
SessionManager
queues to each have a unique name using a UUID suffix.- Updated by Christian Noon in Pull Request #1455.
- The progress tracking system across all
Request
subclasses to improve accuracy.- Updated by Christian Noon in Pull Request #1455.
- β
BaseTestCase
to delete contents of common directories at the start of each test.- Updated by Christian Noon in Pull Request #1457.
- Response handler extensions by moving them into
DataRequest
and added equivalents forDownloadRequest
.- Updated by Christian Noon in Pull Request #1457.
- The response serializer types to use the
Protocol
suffix.- Updated by Christian Noon in Pull Request #1457.
Validation
typealias to include response data in aDataRequest
type.- Updated by Christian Noon in Pull Request #1461.
Validation
typealias to include temporary and destination URLs in aDownloadRequest
type.- Updated by Christian Noon in Pull Request #1461.
SessionManager
APIs to all leverageTaskConvertible
conformance.- Updated by Christian Noon in Pull Request #1461.
DownloadFileDestination
closures to be optional on top-levelDownloadRequest
APIs.- Updated by Christian Noon in Pull Request #1462.
- 0οΈβ£ The
request
anddownload
APIs now default to.get
method andupload
defaults to.post
.- Updated by Christian Noon in Pull Request #1462.
- The
ParameterEncoding
encode API to throw instead of returning tuple.- Updated by Christian Noon in Pull Request #1465.
- The
TaskDelegate
to only store the url session task error iferror
isnil
.- Updated by Christian Noon in Pull Request #1465.
ParameterEncoding
enum by switching to a protocol backed by url, json and plist structs.- Updated by Christian Noon in Pull Request #1465.
- β‘οΈ Updated RequestRetrier completion to be escaping.
- Updated by Aron Cedercrantz in Pull Request #1489.
- β
Code signing to automatic with no team on framework, test and app targets.
- Updated by Christian Noon.
- README for Swift 3 and Alamofire 4 along with reorganization.
- Updated by Christian Noon.
- π README with improved
Error
examples as well as typo and whitespace fixes. Request
task property is now optional allowing errors to propagate through.- Updated by Christian Noon in Pull Request #1505.
- The Travis-CI device list in the yaml file.
- Updated by Christian Noon in Pull Request #1505.
- The top-level APIs by removing external
resource
parameter name.- Updated by Christian Noon in Pull Request #1505.
- π The
URLStringCovertible
by renaming toURLConvertible
and removed protocol property.- Updated by Christian Noon in Pull Request #1505.
- The README and migration guide with the
URLConvertible
and top-level API changes.- Updated by Christian Noon in Pull Request #1505.
β Removed
- Unnecessary
public
ACL declarations onAFError
extensions.- Removed by Christian Noon.
URLStringConvertible
conformance onURLRequest
.- Removed by Christian Noon in Pull Request #1491.
- β Removed
downloadProgress
anduploadProgress
Int64 variants.- Removed by Christian Noon in regards to Issue #1467 reported by thebluepotato.
- π² Duplicated change log message in the migration guide.
- Removed by Justin Jia in Pull Request #1503.
- β
Code coverage generation by default to improve test suite stability.
- Removed by Christian Noon.
π Fixed
- π Fixed
URLEncoding
issue aroundNSNumber
parameter encoding.- Fixed by Christian Noon in regards to Issue #1458 reported by Dhanush Balachandran.
- Issue where
MultipartFormData
temp directory creation needed to be done serially.- Fixed by Christian Noon in regards to Issue #1333 reported by Fernando Mazzon.
- β
Issue in resume data tests where request was being cancelled multiple times.
- Fixed by Christian Noon.
- Internal