Skip to content

Releases: Alamofire/Alamofire

5.10.2

25 Nov 15:11
513364f
Compare
Choose a tag to compare

Released on 2024-11-24. All issues associated with this milestone can be found using this filter.

Fixed

  • Runtime crash when calling validate from a Swift 6-compiled target.
  • Swift 6.0 Package.swift deprecation warning.

5.10.1

19 Oct 19:29
e16d348
Compare
Choose a tag to compare

Released on 2024-10-19. All issues associated with this milestone can be found using this filter.

Fixed

  • @Sendable in AdaptHandler and RetryHandler types.
  • Downstream JSONResponseSerializer wrapper by reverting output type to just Any.
  • Missing @Sendable on Authenticator.refresh.

5.10.0

13 Oct 22:22
ea6a94b
Compare
Choose a tag to compare

Added

  • πŸ”₯ Full Swift concurrency support with Sendable requirements. Most APIs are also marked @preconcurrency, so there should be no breaking changes. Swift 5.9 now required to build.
  • Existential any now required internally by Alamofire.

Updated

  • πŸ”₯ Session.init(... eventMonitors:) to allow no EventMonitors at all, and CompositeEventMonitor to fix thread-safety. Potentially breaking if previously passing [] but still expecting Notifications to be posted. Pass [AlamofireNotifications()] if you need that behavior.
  • DownloadRequest.validate to read the fileSize rather than the whole file from disk.
  • Links to swiftlang repositories.

Fixed

  • Various documentation typos.
  • Passing queue parameter to DataStream serializers.
  • testThatDatesCanBeEncodedAsFormatted when running with a non-Gregorian calendar.

5.9.1

31 Mar 01:22
f455c29
Compare
Choose a tag to compare

Released on 2024-03-30. All issues associated with this milestone can be found using this filter.

Updated

  • HTTPHeaders and HTTPHeader to be Sendable.
  • HTTPMethod to be Sendable.

Fixed

5.9.0

04 Mar 02:19
723fa5a
Compare
Choose a tag to compare

Released on 2024-03-03. All issues associated with this milestone can be found using this filter.

Added

  • [πŸ”₯ Experimental πŸ”₯] WebSocketRequest, as a wrapper for URLSessionWebSocketTask. This preview release is undocumented behind @_spi(WebSocket). Its API will change in the future, especially to adopt typed throws, but it is largely feature complete, tested, and usable now. API feedback, missing use cases, and bug reports are much appreciated before it goes fully public.
  • PrivacyInfo.xcprivacy file and integration with SPM, CocoaPods, and Carthage.
  • AlamofireDynamic target, to force dynamic linking in Xcode when using SPM. Only use when you know you need it.
  • AFInfo enum and a public version value to get Alamofire's current version, AFInfo.version.

Updated

  • Alamofire to require Swift 5.7.1.
  • Project structure to break apart large Request.swift file and consolidate various Request subclasses into their own files.
  • Empty type to be Sendable.
  • .swiftformat to remove duplicate rules.

Fixed

  • Platform deprecation warnings in Package.swift in newer Xcode versions.
  • Alamofire.podspec after project restructuring.
  • Various documentation typos.

5.8.1

26 Oct 19:49
3dc6a42
Compare
Choose a tag to compare

Released on 2023-10-26. All issues associated with this milestone can be found using this filter.

Updated

  • Internal: Protected to no longer be a @propertyWrapper.

Fixed

  • URLEncodedFormEncoder encoding of Encodable values with optional properties using encodeIfPresent.
  • Missing "Skip Install" setting for visionOS target.

5.8.0

31 Aug 22:52
b2fa556
Compare
Choose a tag to compare

Released on 2023-08-31. All issues associated with this milestone can be found using this filter.

Added

Updated

Fixed

  • MultipartFormData stream to properly obey bodyContentLength.
  • Unnecessary call to empty init.
  • Documentation typos.

5.7.1

10 May 16:00
bc268c2
Compare
Choose a tag to compare

Released on 2023-05-10. All issues associated with this milestone can be found using this filter.

Updated

  • Deployment targets reverted to (macOS 10.12, iOS 10, tvOS 10, and watchOS 3)+

5.7.0

09 May 23:00
1342183
Compare
Choose a tag to compare

Released on 2023-05-09. All issues associated with this milestone can be found using this filter.

Added

  • Request body compression support. This is disabled by default.
  • ArrayEncoding.custom to URLEncodedFormEncoder and URLEncoding.
  • KeyPathEncoding to URLEncodedFormEncoder.
  • NilEncoding to URLEncodedFormEncoder.

Updated

  • Alamofire now requires Swift 5.5+ and (macOS 10.13, iOS 11, tvOS 11, and watchOS 4)+.
  • flatMap to map in HTTPHeaders.
  • Various CI integrations.

Fixed

5.6.4

22 Nov 03:23
78424be
Compare
Choose a tag to compare

Released on 2022-11-21. All issues associated with this milestone can be found using this filter.

Fixed

New Contributors

Full Changelog: 5.6.3...5.6.4