-
Notifications
You must be signed in to change notification settings - Fork 579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes to @aws-sdk/signature-v4-multi-region
used by S3 MRAP and EventBridge
#5229
Comments
September 25th, 2023: a warning is now emitted when the This warning will become an error going forward from the date the announced change is finalized. |
We're expecting to finalize this change on or soon after October 25, 2023. |
Could this be added to the documentation? |
This change has been merged and will be in the next release. |
@aws-sdk/signature-v4-multi-region
used by S3 MRAP and EventBridge@aws-sdk/signature-v4-multi-region
used by S3 MRAP and EventBridge
Is it posible to use an MRAP endpoint with amplify-js?
https://docs.amplify.aws/javascript/tools/libraries/configure-categories/#storage-amazon-s3 |
|
Announcement
In an upcoming release for the AWS SDK for JavaScript v3, version TBD, the usage of the
@aws-sdk/signature-v4-crt
package will change.*** this has been merged will be released on Oct 26, 2023.
See PR: #5225
Who is affected?
Users of
@aws-sdk/signature-v4-crt
. This is an optional package used by the S3 MRAP feature and EventBridge clients.https://www.npmjs.com/package/@aws-sdk/signature-v4-crt
What is changing and why?
Currently, this package is imported dynamically by SDK code calling the Node.js
require
global function.Because this is disruptive to bundlers both in the browser and server-side, and because it is difficult to analyze statically, the dynamic import is being removed.
Users will need to make an explicit call or import statement to register the functionality of the optional package. Instructions from the PR are duplicated here:
Code example (ESM):
Code example (CJS):
You can make this change to your code in any SDK version, ahead of time, to prepare for the change.
After it is released, an error will be thrown if the import is missing. It will say:
and the docs in our readme will be updated to the same.
The text was updated successfully, but these errors were encountered: