Skip to content

fix: update middy types to be aligned with 7.1.2 update#5100

Open
willfarrell wants to merge 2 commits intoaws-powertools:mainfrom
middyjs:feature/middy-types
Open

fix: update middy types to be aligned with 7.1.2 update#5100
willfarrell wants to merge 2 commits intoaws-powertools:mainfrom
middyjs:feature/middy-types

Conversation

@willfarrell
Copy link

@willfarrell willfarrell commented Mar 17, 2026

Summary

Type improvements in @middy/core 7.1.2 caused a type miss-match with powertools.

Changes

allow undefined in response / error

Closes middyjs/middy#1599
Fixes #5102

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

Clsoes middyjs/middy#1599

Signed-off-by: will Farrell <willfarrell@proton.me>
@pull-request-size pull-request-size bot added the size/XS PR between 0-9 LOC label Mar 17, 2026
@boring-cyborg
Copy link

boring-cyborg bot commented Mar 17, 2026

Thanks a lot for your first contribution! Please check out our contributing guidelines and don't hesitate to ask whatever you need.
In the meantime, check out the #typescript channel on our Powertools for AWS Lambda Discord: Invite link

@sdangol
Copy link
Contributor

sdangol commented Mar 17, 2026

Hi @willfarrell, could you create an issue for this in this repo and link it to the PR.

@dreamorosi
Copy link
Contributor

Hi @willfarrell, could you create an issue for this in this repo and link it to the PR.

I got my agent to copy the Middy.js issue and incorporate it into an issue for this repo - thanks for the bias for action of creating a PR here - only one small comment picked up from the SAST.

Signed-off-by: will Farrell <willfarrell@proton.me>
@sonarqubecloud
Copy link

@willfarrell
Copy link
Author

@tstephen-nhs, can you talk a look at this and confirm if it resolves the root issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS PR between 0-9 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maintenance: Fix type compatibility with Middy 7.1.3+ Compatibility with lambda powertools broken since 7.1.3 (inc. 7.1.7)

3 participants