-
Type: Bug
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: 5.6.0
-
Component/s: None
What problem are you facing?
I work with lambda functions and I have a wrapper library for @aws-sdk packages. In it I pinned the @aws-sdk packages to version 3.188 that is the one contained in the node18 lambda runtime (https://docs.aws.amazon.com/lambda/latest/dg/lambda-nodejs.html) and defined them as peer dependencies.
Mongodb node driver has peerOptional @aws-sdk/credential-providers@"^3.201.0" that conflicts with 3.188.
Unless you really need something that was released in 3.201, I kindly ask you to move your peer dependency back to 3.188.0.
Aside from the conflicting peer dependency, there is another potential issue: since @aws-sdk packages are included in the runtime, it is common and recommended practice to remove them from lambda deployment. The 3.201.0 version that you think will be used, in reality will be 3.188.0.
What driver and relevant dependency versions are you using?
mongodb@"^5.6.0"
@aws-sdk/credential-providers@"3.188.0"
Steps to reproduce?
npm i
-------------------------------------------------------------
Acceptance Criteria
- Set @aws-sdk/credential-providers peer dependency to 3.188.0