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
fix: allow ALBEvent type in http-json-body-parser #1192
Conversation
@@ -8,6 +8,6 @@ interface Options { | |||
|
|||
export type VersionedApiGatewayEvent = APIGatewayEvent | APIGatewayProxyEventV2 |
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.
Should | ALBEvent
go here instead?
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.
I was thinking about that too, the only reason I added it like I did instead is that ALBEvent isn't technically an ApiGatewayEvent. Maybe we could rename VersionedApiGatewayEvent
:
export type RequestEvent = APIGatewayEvent | APIGatewayProxyEventV2 | ALBEvent
Or something along those lines. Let me know what you think!
`
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.
RequestEvent
Sounds good to me
Thanks for the PR! Just a quick question above before I merge it in. |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@middy/core](https://middy.js.org) ([source](https://togithub.com/middyjs/middy/tree/HEAD/packages/core)) | [`5.2.6` -> `5.3.2`](https://renovatebot.com/diffs/npm/@middy%2fcore/5.2.6/5.3.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@middy%2fcore/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@middy%2fcore/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@middy%2fcore/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@middy%2fcore/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@middy/error-logger](https://middy.js.org) ([source](https://togithub.com/middyjs/middy/tree/HEAD/packages/error-logger)) | [`5.2.6` -> `5.3.2`](https://renovatebot.com/diffs/npm/@middy%2ferror-logger/5.2.6/5.3.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@middy%2ferror-logger/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@middy%2ferror-logger/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@middy%2ferror-logger/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@middy%2ferror-logger/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@middy/http-content-negotiation](https://middy.js.org) ([source](https://togithub.com/middyjs/middy/tree/HEAD/packages/http-content-negotiation)) | [`5.2.6` -> `5.3.2`](https://renovatebot.com/diffs/npm/@middy%2fhttp-content-negotiation/5.2.6/5.3.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@middy%2fhttp-content-negotiation/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@middy%2fhttp-content-negotiation/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@middy%2fhttp-content-negotiation/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@middy%2fhttp-content-negotiation/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@middy/http-error-handler](https://middy.js.org) ([source](https://togithub.com/middyjs/middy/tree/HEAD/packages/http-error-handler)) | [`5.2.6` -> `5.3.2`](https://renovatebot.com/diffs/npm/@middy%2fhttp-error-handler/5.2.6/5.3.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@middy%2fhttp-error-handler/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@middy%2fhttp-error-handler/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@middy%2fhttp-error-handler/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@middy%2fhttp-error-handler/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@middy/http-header-normalizer](https://middy.js.org) ([source](https://togithub.com/middyjs/middy/tree/HEAD/packages/http-header-normalizer)) | [`5.2.6` -> `5.3.2`](https://renovatebot.com/diffs/npm/@middy%2fhttp-header-normalizer/5.2.6/5.3.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@middy%2fhttp-header-normalizer/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@middy%2fhttp-header-normalizer/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@middy%2fhttp-header-normalizer/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@middy%2fhttp-header-normalizer/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@middy/http-json-body-parser](https://middy.js.org) ([source](https://togithub.com/middyjs/middy/tree/HEAD/packages/http-json-body-parser)) | [`5.2.6` -> `5.3.2`](https://renovatebot.com/diffs/npm/@middy%2fhttp-json-body-parser/5.2.6/5.3.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@middy%2fhttp-json-body-parser/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@middy%2fhttp-json-body-parser/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@middy%2fhttp-json-body-parser/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@middy%2fhttp-json-body-parser/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@middy/http-response-serializer](https://middy.js.org) ([source](https://togithub.com/middyjs/middy/tree/HEAD/packages/http-response-serializer)) | [`5.2.6` -> `5.3.2`](https://renovatebot.com/diffs/npm/@middy%2fhttp-response-serializer/5.2.6/5.3.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@middy%2fhttp-response-serializer/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@middy%2fhttp-response-serializer/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@middy%2fhttp-response-serializer/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@middy%2fhttp-response-serializer/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>middyjs/middy (@​middy/core)</summary> ### [`v5.3.2`](https://togithub.com/middyjs/middy/compare/5.3.1...56b1431f6feeef398a85054691977ee5c0212f55) [Compare Source](https://togithub.com/middyjs/middy/compare/5.3.1...5.3.2) ### [`v5.3.1`](https://togithub.com/middyjs/middy/releases/tag/5.3.1) [Compare Source](https://togithub.com/middyjs/middy/compare/5.3.0...5.3.1) ##### What's Changed - fix: [#​1189](https://togithub.com/middyjs/middy/issues/1189) write prelude in streamifyResponse with string body by [@​mdenkinger](https://togithub.com/mdenkinger) in [middyjs/middy#1190 ##### New Contributors - [@​mdenkinger](https://togithub.com/mdenkinger) made their first contribution in [middyjs/middy#1190 **Full Changelog**: middyjs/middy@5.3.0...5.3.1 ### [`v5.3.0`](https://togithub.com/middyjs/middy/compare/5.2.6...5a6e7eddde70120080d5564b1b591eb8c60d210b) [Compare Source](https://togithub.com/middyjs/middy/compare/5.2.6...5.3.0) </details> <details> <summary>middyjs/middy (@​middy/error-logger)</summary> ### [`v5.3.2`](https://togithub.com/middyjs/middy/releases/tag/5.3.2) [Compare Source](https://togithub.com/middyjs/middy/compare/5.3.1...5.3.2) ##### What's Changed - fix: allow ALBEvent type in http-json-body-parser by [@​connorreitz](https://togithub.com/connorreitz) in [middyjs/middy#1192 ##### New Contributors - [@​connorreitz](https://togithub.com/connorreitz) made their first contribution in [middyjs/middy#1192 **Full Changelog**: middyjs/middy@5.3.1...5.3.2 ### [`v5.3.1`](https://togithub.com/middyjs/middy/releases/tag/5.3.1) [Compare Source](https://togithub.com/middyjs/middy/compare/5.3.0...5.3.1) ##### What's Changed - fix: [#​1189](https://togithub.com/middyjs/middy/issues/1189) write prelude in streamifyResponse with string body by [@​mdenkinger](https://togithub.com/mdenkinger) in [middyjs/middy#1190 ##### New Contributors - [@​mdenkinger](https://togithub.com/mdenkinger) made their first contribution in [middyjs/middy#1190 **Full Changelog**: middyjs/middy@5.3.0...5.3.1 ### [`v5.3.0`](https://togithub.com/middyjs/middy/releases/tag/5.3.0) [Compare Source](https://togithub.com/middyjs/middy/compare/5.2.6...5.3.0) ##### What's Changed - feat: `http-cors` now supports origin: null - fix: list [@​middy/util](https://togithub.com/middy/util) as dependency in [@​middy/http-json-body-parser](https://togithub.com/middy/http-json-body-parser) by [@​devrnt](https://togithub.com/devrnt) in [middyjs/middy#1187 ##### New Contributors - [@​devrnt](https://togithub.com/devrnt) made their first contribution in [middyjs/middy#1187 **Full Changelog**: middyjs/middy@5.2.6...5.3.0 </details> <details> <summary>middyjs/middy (@​middy/http-error-handler)</summary> ### [`v5.3.2`](https://togithub.com/middyjs/middy/compare/5.3.1...56b1431f6feeef398a85054691977ee5c0212f55) [Compare Source](https://togithub.com/middyjs/middy/compare/5.3.1...5.3.2) ### [`v5.3.1`](https://togithub.com/middyjs/middy/releases/tag/5.3.1) [Compare Source](https://togithub.com/middyjs/middy/compare/5.3.0...5.3.1) ##### What's Changed - fix: [#​1189](https://togithub.com/middyjs/middy/issues/1189) write prelude in streamifyResponse with string body by [@​mdenkinger](https://togithub.com/mdenkinger) in [middyjs/middy#1190 ##### New Contributors - [@​mdenkinger](https://togithub.com/mdenkinger) made their first contribution in [middyjs/middy#1190 **Full Changelog**: middyjs/middy@5.3.0...5.3.1 ### [`v5.3.0`](https://togithub.com/middyjs/middy/releases/tag/5.3.0) [Compare Source](https://togithub.com/middyjs/middy/compare/5.2.6...5.3.0) ##### What's Changed - feat: `http-cors` now supports origin: null - fix: list [@​middy/util](https://togithub.com/middy/util) as dependency in [@​middy/http-json-body-parser](https://togithub.com/middy/http-json-body-parser) by [@​devrnt](https://togithub.com/devrnt) in [middyjs/middy#1187 ##### New Contributors - [@​devrnt](https://togithub.com/devrnt) made their first contribution in [middyjs/middy#1187 **Full Changelog**: middyjs/middy@5.2.6...5.3.0 </details> <details> <summary>middyjs/middy (@​middy/http-json-body-parser)</summary> ### [`v5.3.2`](https://togithub.com/middyjs/middy/compare/5.3.1...56b1431f6feeef398a85054691977ee5c0212f55) [Compare Source](https://togithub.com/middyjs/middy/compare/5.3.1...5.3.2) ### [`v5.3.1`](https://togithub.com/middyjs/middy/releases/tag/5.3.1) [Compare Source](https://togithub.com/middyjs/middy/compare/5.3.0...5.3.1) ##### What's Changed - fix: [#​1189](https://togithub.com/middyjs/middy/issues/1189) write prelude in streamifyResponse with string body by [@​mdenkinger](https://togithub.com/mdenkinger) in [middyjs/middy#1190 ##### New Contributors - [@​mdenkinger](https://togithub.com/mdenkinger) made their first contribution in [middyjs/middy#1190 **Full Changelog**: middyjs/middy@5.3.0...5.3.1 ### [`v5.3.0`](https://togithub.com/middyjs/middy/releases/tag/5.3.0) [Compare Source](https://togithub.com/middyjs/middy/compare/5.2.6...5.3.0) ##### What's Changed - feat: `http-cors` now supports origin: null - fix: list [@​middy/util](https://togithub.com/middy/util) as dependency in [@​middy/http-json-body-parser](https://togithub.com/middy/http-json-body-parser) by [@​devrnt](https://togithub.com/devrnt) in [middyjs/middy#1187 ##### New Contributors - [@​devrnt](https://togithub.com/devrnt) made their first contribution in [middyjs/middy#1187 **Full Changelog**: middyjs/middy@5.2.6...5.3.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "on sunday" in timezone Europe/Berlin, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/SvenKirschbaum/aws-utils).
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@middy/core](https://middy.js.org) ([source](https://togithub.com/middyjs/middy/tree/HEAD/packages/core)) | [`5.2.6` -> `5.3.2`](https://renovatebot.com/diffs/npm/@middy%2fcore/5.2.6/5.3.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@middy%2fcore/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@middy%2fcore/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@middy%2fcore/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@middy%2fcore/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@middy/error-logger](https://middy.js.org) ([source](https://togithub.com/middyjs/middy/tree/HEAD/packages/error-logger)) | [`5.2.6` -> `5.3.2`](https://renovatebot.com/diffs/npm/@middy%2ferror-logger/5.2.6/5.3.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@middy%2ferror-logger/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@middy%2ferror-logger/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@middy%2ferror-logger/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@middy%2ferror-logger/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@middy/http-content-negotiation](https://middy.js.org) ([source](https://togithub.com/middyjs/middy/tree/HEAD/packages/http-content-negotiation)) | [`5.2.6` -> `5.3.2`](https://renovatebot.com/diffs/npm/@middy%2fhttp-content-negotiation/5.2.6/5.3.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@middy%2fhttp-content-negotiation/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@middy%2fhttp-content-negotiation/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@middy%2fhttp-content-negotiation/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@middy%2fhttp-content-negotiation/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@middy/http-error-handler](https://middy.js.org) ([source](https://togithub.com/middyjs/middy/tree/HEAD/packages/http-error-handler)) | [`5.2.6` -> `5.3.2`](https://renovatebot.com/diffs/npm/@middy%2fhttp-error-handler/5.2.6/5.3.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@middy%2fhttp-error-handler/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@middy%2fhttp-error-handler/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@middy%2fhttp-error-handler/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@middy%2fhttp-error-handler/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@middy/http-header-normalizer](https://middy.js.org) ([source](https://togithub.com/middyjs/middy/tree/HEAD/packages/http-header-normalizer)) | [`5.2.6` -> `5.3.2`](https://renovatebot.com/diffs/npm/@middy%2fhttp-header-normalizer/5.2.6/5.3.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@middy%2fhttp-header-normalizer/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@middy%2fhttp-header-normalizer/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@middy%2fhttp-header-normalizer/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@middy%2fhttp-header-normalizer/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@middy/http-json-body-parser](https://middy.js.org) ([source](https://togithub.com/middyjs/middy/tree/HEAD/packages/http-json-body-parser)) | [`5.2.6` -> `5.3.2`](https://renovatebot.com/diffs/npm/@middy%2fhttp-json-body-parser/5.2.6/5.3.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@middy%2fhttp-json-body-parser/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@middy%2fhttp-json-body-parser/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@middy%2fhttp-json-body-parser/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@middy%2fhttp-json-body-parser/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@middy/http-response-serializer](https://middy.js.org) ([source](https://togithub.com/middyjs/middy/tree/HEAD/packages/http-response-serializer)) | [`5.2.6` -> `5.3.2`](https://renovatebot.com/diffs/npm/@middy%2fhttp-response-serializer/5.2.6/5.3.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@middy%2fhttp-response-serializer/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@middy%2fhttp-response-serializer/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@middy%2fhttp-response-serializer/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@middy%2fhttp-response-serializer/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@middy/validator](https://middy.js.org) ([source](https://togithub.com/middyjs/middy/tree/HEAD/packages/validator)) | [`5.2.6` -> `5.3.2`](https://renovatebot.com/diffs/npm/@middy%2fvalidator/5.2.6/5.3.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@middy%2fvalidator/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@middy%2fvalidator/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@middy%2fvalidator/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@middy%2fvalidator/5.2.6/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>middyjs/middy (@​middy/core)</summary> ### [`v5.3.2`](https://togithub.com/middyjs/middy/compare/5.3.1...56b1431f6feeef398a85054691977ee5c0212f55) [Compare Source](https://togithub.com/middyjs/middy/compare/5.3.1...5.3.2) ### [`v5.3.1`](https://togithub.com/middyjs/middy/releases/tag/5.3.1) [Compare Source](https://togithub.com/middyjs/middy/compare/5.3.0...5.3.1) ##### What's Changed - fix: [#​1189](https://togithub.com/middyjs/middy/issues/1189) write prelude in streamifyResponse with string body by [@​mdenkinger](https://togithub.com/mdenkinger) in [middyjs/middy#1190 ##### New Contributors - [@​mdenkinger](https://togithub.com/mdenkinger) made their first contribution in [middyjs/middy#1190 **Full Changelog**: middyjs/middy@5.3.0...5.3.1 ### [`v5.3.0`](https://togithub.com/middyjs/middy/compare/5.2.6...5a6e7eddde70120080d5564b1b591eb8c60d210b) [Compare Source](https://togithub.com/middyjs/middy/compare/5.2.6...5.3.0) </details> <details> <summary>middyjs/middy (@​middy/error-logger)</summary> ### [`v5.3.2`](https://togithub.com/middyjs/middy/releases/tag/5.3.2) [Compare Source](https://togithub.com/middyjs/middy/compare/5.3.1...5.3.2) ##### What's Changed - fix: allow ALBEvent type in http-json-body-parser by [@​connorreitz](https://togithub.com/connorreitz) in [middyjs/middy#1192 ##### New Contributors - [@​connorreitz](https://togithub.com/connorreitz) made their first contribution in [middyjs/middy#1192 **Full Changelog**: middyjs/middy@5.3.1...5.3.2 ### [`v5.3.1`](https://togithub.com/middyjs/middy/releases/tag/5.3.1) [Compare Source](https://togithub.com/middyjs/middy/compare/5.3.0...5.3.1) ##### What's Changed - fix: [#​1189](https://togithub.com/middyjs/middy/issues/1189) write prelude in streamifyResponse with string body by [@​mdenkinger](https://togithub.com/mdenkinger) in [middyjs/middy#1190 ##### New Contributors - [@​mdenkinger](https://togithub.com/mdenkinger) made their first contribution in [middyjs/middy#1190 **Full Changelog**: middyjs/middy@5.3.0...5.3.1 ### [`v5.3.0`](https://togithub.com/middyjs/middy/releases/tag/5.3.0) [Compare Source](https://togithub.com/middyjs/middy/compare/5.2.6...5.3.0) ##### What's Changed - feat: `http-cors` now supports origin: null - fix: list [@​middy/util](https://togithub.com/middy/util) as dependency in [@​middy/http-json-body-parser](https://togithub.com/middy/http-json-body-parser) by [@​devrnt](https://togithub.com/devrnt) in [middyjs/middy#1187 ##### New Contributors - [@​devrnt](https://togithub.com/devrnt) made their first contribution in [middyjs/middy#1187 **Full Changelog**: middyjs/middy@5.2.6...5.3.0 </details> <details> <summary>middyjs/middy (@​middy/http-error-handler)</summary> ### [`v5.3.2`](https://togithub.com/middyjs/middy/compare/5.3.1...56b1431f6feeef398a85054691977ee5c0212f55) [Compare Source](https://togithub.com/middyjs/middy/compare/5.3.1...5.3.2) ### [`v5.3.1`](https://togithub.com/middyjs/middy/releases/tag/5.3.1) [Compare Source](https://togithub.com/middyjs/middy/compare/5.3.0...5.3.1) ##### What's Changed - fix: [#​1189](https://togithub.com/middyjs/middy/issues/1189) write prelude in streamifyResponse with string body by [@​mdenkinger](https://togithub.com/mdenkinger) in [middyjs/middy#1190 ##### New Contributors - [@​mdenkinger](https://togithub.com/mdenkinger) made their first contribution in [middyjs/middy#1190 **Full Changelog**: middyjs/middy@5.3.0...5.3.1 ### [`v5.3.0`](https://togithub.com/middyjs/middy/releases/tag/5.3.0) [Compare Source](https://togithub.com/middyjs/middy/compare/5.2.6...5.3.0) ##### What's Changed - feat: `http-cors` now supports origin: null - fix: list [@​middy/util](https://togithub.com/middy/util) as dependency in [@​middy/http-json-body-parser](https://togithub.com/middy/http-json-body-parser) by [@​devrnt](https://togithub.com/devrnt) in [middyjs/middy#1187 ##### New Contributors - [@​devrnt](https://togithub.com/devrnt) made their first contribution in [middyjs/middy#1187 **Full Changelog**: middyjs/middy@5.2.6...5.3.0 </details> <details> <summary>middyjs/middy (@​middy/http-json-body-parser)</summary> ### [`v5.3.2`](https://togithub.com/middyjs/middy/compare/5.3.1...56b1431f6feeef398a85054691977ee5c0212f55) [Compare Source](https://togithub.com/middyjs/middy/compare/5.3.1...5.3.2) ### [`v5.3.1`](https://togithub.com/middyjs/middy/releases/tag/5.3.1) [Compare Source](https://togithub.com/middyjs/middy/compare/5.3.0...5.3.1) ##### What's Changed - fix: [#​1189](https://togithub.com/middyjs/middy/issues/1189) write prelude in streamifyResponse with string body by [@​mdenkinger](https://togithub.com/mdenkinger) in [middyjs/middy#1190 ##### New Contributors - [@​mdenkinger](https://togithub.com/mdenkinger) made their first contribution in [middyjs/middy#1190 **Full Changelog**: middyjs/middy@5.3.0...5.3.1 ### [`v5.3.0`](https://togithub.com/middyjs/middy/releases/tag/5.3.0) [Compare Source](https://togithub.com/middyjs/middy/compare/5.2.6...5.3.0) ##### What's Changed - feat: `http-cors` now supports origin: null - fix: list [@​middy/util](https://togithub.com/middy/util) as dependency in [@​middy/http-json-body-parser](https://togithub.com/middy/http-json-body-parser) by [@​devrnt](https://togithub.com/devrnt) in [middyjs/middy#1187 ##### New Contributors - [@​devrnt](https://togithub.com/devrnt) made their first contribution in [middyjs/middy#1187 **Full Changelog**: middyjs/middy@5.2.6...5.3.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "on sunday" in timezone Europe/Berlin, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/SvenKirschbaum/share.kirschbaum.cloud).
Context
According to the docs for using middy with an ALBEvent, we can use the
httpJsonBodyParserMiddleware
to parse the body of anALBEvent
. However, theALBEvent
type isn't included in the type definition for thehttpJsonBodyParserMiddleware
function, so if we are using Typescript, the compiler will get mad. This update will allow us to.use(httpJsonBodyParserMiddleware)
onALBEvent
handlers :)