You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Major changes
Soto: The rename to Soto is complete. The package name is "soto-core" and core library is now "SotoCore".
AWSClient has now been split from the service objects. So you can have one AWSClient that is used by many services.
HTTP Client: We are now using the swift server async-http-client instead of own custom http client. We also provide the ability for the user to replace this client with their own.
Credential providers: Abstracted credential acquisition to make it easier to write credential providers and control which credential providers you want to use.
Swift server eco-system: On top of using async-http-client we have added support for swift-log and swift-metrics.
Crypto: There is no dependency on openssl libraries anymore. Instead we use swift-crypto on Linux and CommonCrypto on macOS and iOS.
Request/Response encoding/decoding:
We have added a Codable based QueryEncoder so all protocols now use Codable for serialisation.
Added property wrappers for Collection types Array and Dictionary to define how they are serialised. We have also included property wrappers for Date which has allowed us to remove Timestamp and replace it with Date.
Fixed many serialisation bugs.
Request Signing: The V4 signer has been completely re-written and is available as a separate library. This also added support for signing streamed S3 requests.
Streaming: We have added support for both streaming of request data and streaming of response data thus allowing the uploading and downloading of large files without requiring a large memory footprint. Added AWSPayload for raw payloads. Allows the user to supply a payload as a String, Data, ByteBuffer or closure supplying a stream of ByteBuffers.
Retrying Requests: AWSClient now retries requests that have failed. You can define how the client does this using a RetryPolicy object.
Errors: Errors thrown by SotoCore are now structs and not enums. They also hold additional data like the response code and http headers returned.
Added AWSService protocol with support for signing URLs and creating edited versions of services.