-
Notifications
You must be signed in to change notification settings - Fork 1.8k
fix(NODE-6743)!: add back missing opt deps aws4
#4408
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
Conversation
aws4
aws4
aws4
aws4
2eb49a4
to
4acc93a
Compare
@@ -13,6 +13,3 @@ source ./.evergreen/prepare-shell.sh # should not run git clone | |||
|
|||
# load node.js | |||
source $DRIVERS_TOOLS/.evergreen/init-node-and-npm-env.sh | |||
|
|||
# run the tests | |||
npm install aws4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure whether it's ok to remove this command.
@@ -23,8 +23,6 @@ cd $DRIVERS_TOOLS/.evergreen/auth_aws | |||
|
|||
cd $BEFORE | |||
|
|||
npm install --no-save aws4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one too, seems like no longer needed.
a: `${options.headers?.Authorization ?? ''}`, | ||
d: `${options.headers?.['X-Amz-Date'] ?? ''}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after using the typings from @types/aws4
, options.headers
becomes optional. converting those values to hard-coded string type.
Hi @mr-pinzhang, we would prefer to remove our dependence on this package as the logic contained within We have https://jira.mongodb.org/browse/NODE-5393 to track the removal if you're interested in contributing; otherwise, we intend to work on it soon. Thanks for reaching out and taking the time to lend a hand here, we appreciate it! |
Thanks for the heads up! Yeah, I agree we are going to move Anyway, my concern might make no sense. Let me know if you guys need any help, thanks! |
Your concern totally makes sense and it is a point of friction for us to address. We intend to get to it in a few months, which sounds long but scaled against this being an untracked peer dependency since at least 3.6.0 feels pretty soon. Introducing the real peer dep tracking comes with a degree of complexity we will just end up removing soon. It isn't a great experience and we're sorry you hit this snag, it'll be better soon :) |
Description
https://jira.mongodb.org/browse/NODE-6743
What is changing?
the original PR is #2606, but seems like opt dep
aws4
is getting lost sincev3
. starting fromv4
, there is no stricted opt dep underpackage.json
. this PR is to add it back.this issue affects all
mongodb
versions after v4, which might need to be patched to:v6.13.0
,v5.9.2
,v4.17.2
Is there new documentation needed for these changes?
n/a
What is the motivation for this change?
make developers life easier, since people might don't know what's happening until they see the error message on production env when using mongo aws.
Release Highlight
Fill in title or leave empty for no highlight
Double check the following
npm run check:lint
scripttype(NODE-xxxx)[!]: description
feat(NODE-1234)!: rewriting everything in coffeescript