Releases: MrSkwiggs/Netswift
Netswift v1.1.1 - Better error logs
Netswift v1.1.0 - MacOS 12 support
Netswift v1.0.1
Netswift v1.0.0 - Request Body
This version introduces breaking changes.
Body
NetswiftRequest now introduces a Body
associated type which can then be used for encoding. This removes the need for implementing func body(encodedBy encoder: Encoder) -> Data?
and instead replaces it with a var body: Body?
requirement (which is nil
by default).
When Body conforms to Codable
, default implementations have been implemented with JSONEncoder
URLQueryItems
NetswiftRoute now replaces the var query: String?
requirement with var queryItems: [URLQueryItems]?
instead. This should hopefully reduce friction as most real life implementations deferred to URLQueryItem anyways.
What's Changed
- 💥 Add Body & use URLQueryItems instead of String? query by @MrSkwiggs in #45
Full Changelog: 0.9.0...1.0.0
Netswift v0.9.0 - Linux
This version introduces changes that should allow compatibility with building Netswift on Linux
What's Changed
- 🐛 Fix Linux compilation issues by @MrSkwiggs in #44
Full Changelog: 0.8.0...0.9.0
Netswift v0.8.0 - Sanitized Version Requirements
There were some discrepancies with how Async/Await related parts of the codebase required minimum versions. This has now been fixed.
What's Changed
- ♻️ Sanitize miminum versions by @MrSkwiggs in #43
Full Changelog: 0.7.1...0.8.0
Netswift v0.7.1 - Error debug description
What's Changed
- ♻️ Print error.payload in debug description by @MrSkwiggs in #42
Full Changelog: 0.7.0...0.7.1
Netswift v0.7.0 - Platforms
Added
- Support for macOS 12.0, iOS 15.0, tvOS 15.0 & watchOS 8.0
- NetswiftHeaders type, consolidates headers definition
Basic token
& custom Auth typeshook(into: URLRequest)
onNetswiftPerformer
port
can now be specified on routesscheme
now usesNetswiftScheme
type, with support for custom schemes- Added 422 status code handling
Changed
- URL instantiation now uses
URLComponents
- Request Headers are now handled as a
Set
History
- Release/v0.7.0 - Platforms! by @MrSkwiggs in #41
Full Changelog: 0.6.2...0.7.0
Netswift v0.6.2
What's Changed
- Made variables under NetswiftNetworkPerformer & NetswiftHTTPPerformer public
- 🚀 Release/v0.6.2 by @MrSkwiggs in #40
Full Changelog: 0.6.1...0.6.2
Netswift v0.6.1 - Renamed timeOut to deadline
What's Changed
- 🚚 Rename timeOut to deadline by @MrSkwiggs in #37
- Release/v0.6.1 by @MrSkwiggs in #38
Full Changelog: 0.6.0...0.6.1