Releases: richardpiazza/SessionPlus
SessionPlus 3.0.0 (Beta 1)
What's Changed
- Cleanup Deprecations by @richardpiazza in #8
- Simplified Client by @richardpiazza in #9
- Structured Logging by @richardpiazza in #10
- Swift 6.2 Toolchain by @richardpiazza in #11
- Swift Testing by @richardpiazza in #12
Full Changelog: 2.2.0...3.0.0-beta.1
SessionPlus 2.2.0
This release introduces an async/await compatible WebSockets implementation. (The implementation is currently limited to Apple platforms.)
let socket = try AbsoluteURLWebSocket(baseURL: url)
try await socket.start()
for try await message in socket.receive() {
processWebSocketMessage(message)
}SessionPlus 2.1.0
Modifications to better support using absolute URLs.
The primary intent of the framework is to interact with JSON apis, but another very-common need is the ability to download random data or images from URLs outside of a primary API. This is what the deprecated Downloader was focused on.
The ability to interact with non-base URLs has been brought forward and integrated into the overall solution. Request now has an Address enum which determines the type of addressing that will be used. The URLSessionClient has been renamed to BaseURLSessionClient to better indicate its usage, and a AbsoluteURLSessionClient implementation is now available.
SessionPlus 2.0.1
2.0.1
Fixes an issues where a URLSessionDataTask was not automatically .resume() 🤦♂️
2.0.0
- Shifts the interaction model from being task/execution based to being request/response based.
- Request and Response are protocols which represent the required parameters needs to respectively query and process a response from an api.
- All of the older HTTPClient protocols and implementations are deprecated and will be removed in future versions of the framework.
SessionPlus 2.0.0
Shifts the interaction model from being task/execution based to being request/response based.
Request and Response are protocols which represent the required parameters needs to respectively query and process a response from an api.
All of the older HTTPClient protocols and implementations are deprecated and will be removed in future versions of the framework.
SessionPlus 1.2.0
Swift 5.5 Concurrency Support. This release adds support for async/await support for Apple systems.
The FoundationNetworking module that provides URLSession on non-Apple platforms does not yet support async request method.
SessionPlus 1.1.0
Replaced Header, MIMEType, and RequestMethod enums with structs for greater flexibility.
Opened encoding/decoding methods to public for implementing in additional convenience methods.
SessionPlus 1.0.0
1.0 release of SessionPlus 🎉.