Releases: MrSkwiggs/Netswift
Releases · MrSkwiggs/Netswift
Netswift v0.6.0 - Async/Await Support
What's Changed
- Feature/async await support by @Deco354 in #34
- Add requirement for requests with deadlines (time-out) by @MrSkwiggs in #35
- [BREAKING] NetswiftRequestPerformable now has an additional requirement so that they can be performed with a time-out.
NetswiftHTTPMethod.head
, a convenience accessor forHEAD
http methods.NetswiftRequest.curl
, a conveniencecURL
string generator for any request.
Full Changelog: 0.5.1...0.6.0
Netswift v0.5.1 - Patch
[0.5.1 (202108201]
Changed
- Marked
NetswiftRequest.body(_:)
asthrows -> Data?
Netswift v0.5.0 - Request Body
[0.5.0 (20210820)]
Added
- New
NetswiftEncoder
wrapper protocol for types such asJSONEncoder
orPropertyListEncoder
(those 2 are already made to conform toNetswiftEncoder
)
Changed
NetswiftRequest
now has new requirements:- A
bodyEncoder: NetswiftEncoder?
var, which can be used to encode any data into the request'shttpBody
; - A
body(encodedBy encoder: NetswiftEncoder?) -> Data?
function that uses the given encoder to returnData?
, if applicable.
- A
Netswift v0.4.0 - Update: HTTP Status Codes in NetswiftError.Category
Thanks to @goergisn for the contributions 🤝
Netswift v0.3.1 - Convenience
[0.3.1 (20200824)]
Changed
NetswiftError.Category
now conforms toCustomDebugStringConvertible
Netswift v0.3.0 - Update: NetswiftError refactor
[0.3.0 (20200225)]
Changed
NetswiftError
has been refactored to always keep track of a network task's response payload, if any is available.NetswiftRequest
are now given a chance to intercept and handle aNetswiftError
when performed.
Fixed
- Access control levels for
NetswiftHTTPPerformer
andNetswiftPerformer
have been set toopen
to allow for overriding and extending.
Netswift v0.2.1 - Update: Cleaning up
[0.2.1 (20200209)]
Added
- New Changelog file to keep track of updates!
- JPEG Mime Type
NetswiftError
now conforms toEquatable
Changed
- Updated Readme to remove some deprecated stuff
- Renamed
MimeType.plainText
toMimeType.text
Fixed
- Access control for several classes has been made public
- Fixed a typo for the
.mailto
Generic Scheme's rawValue - Added missing headers in default implementation of
NetswiftRequest.serialise()
Netswift v0.2.0 - Update: Use default SPM Platform requirements
🔀 Merge pull request #20 from MrSkwiggs/release/v0.2.0 🚀 Release Update v0.2.0
Netswift v0.1.7 - Update: Sensible Deployment Targets
This update brings sensible deployment targets requirements for Netswift, as iOS 13.3 was unnecessarily restrictive.
I've also fixed some of the examples which did not work as expected anymore.
Netswift v0.1.6 - Update: Now with SPM
This update brings support for SPM