-
Notifications
You must be signed in to change notification settings - Fork 146
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
Bug: Peer Dependency Conflict with @middy/core
in Version 1.13.0
#1702
Comments
Thanks for opening your first issue here! We'll come back to you as soon as we can. |
Hey @domengabrovsek thanks for raising the issue and apologies for the failed build caused by the new version. We only support middy 3.x, and added only recently the peer dependency to make it explicit. As mentioned in #1694 we are very close to drop node14 support and can start moving to middy 4.x. in our major v2 release. |
Thank you @am29d for the explanation. It surprised me because the build started failing without any changes on my side and I didn't notice any breaking changes related to this. I have been using tracer, logger, and metrics with middy 4.x for some time now and it has worked well. I'll pin the versions for now so I can continue working. Thank you for everything you're doing with the powertools, it's a pleasure to use them! |
Hi @domengabrovsek, thank you for opening this issue. As Alex mentioned this is something that was already documented both our documentation(see callout titled "A note about Middy") and Middy's documentation (here), however we should not have made this change in a minor release like we did. We will make another emergency release today and remove the peer dependency. Then we'll revisit the topic in our next major version. |
Hey @domengabrovsek , it was great that it worked with 4.x before 😄 . @dreamorosi and I had a chat and we agreed that it'd be best to remove the upper bound on middy 4.x to unblock you and potentially many others. I will make a quick release soon. Thanks again for raising this issue, which helps us to address breaking builds quickly 🙏. |
Thank you @am29d and @dreamorosi for such a fast response! 🙏 |
This is pretty wholesome, how you guys have responded so rapidly and even offered to help the community with a new release. :) |
|
This is now released under v1.13.1 version! |
Expected Behaviour
This issue forces us to pin the logger version to 1.12.1 to avoid the build failure. It would be great if the peer dependencies could be aligned to support the latest versions of both packages.
npm install
should complete without errors.Current Behaviour
Up until now, I was using @aws-lambda-powertools/logger version ^1.12.1 and @middy/core version ^4.5.5 in my package.json. Since version 1.13.0 was released, my npm install fails with this error:
Upgrading to
@aws-lambda-powertools/logger@1.13.0
breaks the build due to a peer dependency conflict with@middy/core
.Code snippet
not applicable
Steps to Reproduce
package.json
in your project:npm install
OR
clone this repo
https://github.com/domengabrovsek/aws-powertools-repro
and runnpm install
Possible Solution
No response
Powertools for AWS Lambda (TypeScript) version
1.13.0
AWS Lambda function runtime
18.x
Packaging format used
npm
Execution logs
No response
The text was updated successfully, but these errors were encountered: