This pull request migrates the S3 client implementation from AWS SDK v2 to v3.
Changes
Initialization: Updated the S3 client initialization to use S3Client from @aws-sdk/client-s3 package.
Commands: Replaced v2 commands (getObject, putObject, etc.) with their v3 equivalents (GetObjectCommand, PutObjectCommand, etc.).
Response Handling: Modified response handling to accommodate changes in the v3 API, particularly in how streams and buffers are managed.
Testing: Added unit tests to cover new functionality and ensure compatibility with the existing codebase. Implemented mocks for offline testing using Jasmine.
Release Dependency
This pull request is intended for after the release of the asynchronous getFileLocation function on the parse-server repository. Please ensure that this dependency is met before merging.
The relevant pull request for adding support of asynchronous getFileLocation in adapters can be found here: parse-server PR #9271.
Summary
This pull request migrates the S3 client implementation from AWS SDK v2 to v3.
Changes
S3Client
from@aws-sdk/client-s3
package.getObject
,putObject
, etc.) with their v3 equivalents (GetObjectCommand
,PutObjectCommand
, etc.).Release Dependency
This pull request is intended for after the release of the asynchronous
getFileLocation
function on theparse-server
repository. Please ensure that this dependency is met before merging.The relevant pull request for adding support of asynchronous
getFileLocation
in adapters can be found here: parse-server PR #9271.References
Please review the changes and provide feedback. Thank you for your time and consideration.
Closes: #197