5.5.0
版本发布时间: 2021-12-14 07:57:17
Alamofire/Alamofire最新发布版本:5.10.2(2024-11-25 23:11:48)
Alamofire 5.5 is the first release where we're labeling features we consider experimental. These features, while fully designed and well tested, rely on language or framework features which may change or require breaking bug fixes, and we'd rather not have to make a major release in that case. So [🔥 Experimental 🔥] features may require breaking changes in minor, rather than major, releases. This will be rare and compatibility should be preserved in most cases, but cannot be guaranteed.
Released on 2021-12-13. All issues associated with this milestone can be found using this filter.
Added
- [🔥 Experimental 🔥] support for Swift Concurrency, including
async
-await
for requests andStreamOf
for streaming values. - Generic static accessors for various protocols types for Swift 5.5.
-
.indexInBrackets
options for array encoding in query parameters.- Added by Tiago Lopes in Pull Request #3516.
-
RequestAdapterState
and new protocol requirements forRequestAdapter
to allow for additional state to be available.- Added by Christian Noon in Pull Request #3504.
Updated
-
Session
to more safely target provided customDispatchQueue
s for internal use. -
AFError
message regarding unacceptableContent-Type
s to sort the types.- Updated by Timur Yusipov in Pull Request #3518.
- Base Swift language version requirement to 5.3.
- Sample app to show proper loading state for requests.
- Updated by Tiago Lopes in Pull Request #3514.
Deprecated
-
responseJSON
and associated methods, in preference toresponseDecodable
.
Fixed
- Use of
Protected
wrapper when accessing properties of the wrapped values to ensure proper thread-safety. - Various documentation typos.
- Fixed by Christos Koninis, Tiago Lopes, and Eugene Berdnikov in various Pull Requests.