Skip to content
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: updated dynamo unmarshall object reducer to mutate instead of spread #1065

Conversation

ykageyama-mondo
Copy link
Contributor

The event normalizer middleware was doing a spread inside the reducer for dynamo db object unmarshalling.

Replaced with mutation to reduce time complexity.

@willfarrell willfarrell merged commit 9b08d04 into middyjs:main Jun 15, 2023
@willfarrell
Copy link
Member

Good catch, thanks!

mergify bot referenced this pull request in SvenKirschbaum/share.kirschbaum.cloud Jun 18, 2023
[![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)) | [`4.5.1` -> `4.5.2`](https://renovatebot.com/diffs/npm/@middy%2fcore/4.5.1/4.5.2) | [![age](https://badges.renovateapi.com/packages/npm/@middy%2fcore/4.5.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@middy%2fcore/4.5.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@middy%2fcore/4.5.2/compatibility-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@middy%2fcore/4.5.2/confidence-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) |
| [@middy/error-logger](https://middy.js.org) ([source](https://togithub.com/middyjs/middy)) | [`4.5.1` -> `4.5.2`](https://renovatebot.com/diffs/npm/@middy%2ferror-logger/4.5.1/4.5.2) | [![age](https://badges.renovateapi.com/packages/npm/@middy%2ferror-logger/4.5.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@middy%2ferror-logger/4.5.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@middy%2ferror-logger/4.5.2/compatibility-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@middy%2ferror-logger/4.5.2/confidence-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) |
| [@middy/http-content-negotiation](https://middy.js.org) ([source](https://togithub.com/middyjs/middy)) | [`4.5.1` -> `4.5.2`](https://renovatebot.com/diffs/npm/@middy%2fhttp-content-negotiation/4.5.1/4.5.2) | [![age](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-content-negotiation/4.5.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-content-negotiation/4.5.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-content-negotiation/4.5.2/compatibility-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-content-negotiation/4.5.2/confidence-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) |
| [@middy/http-error-handler](https://middy.js.org) ([source](https://togithub.com/middyjs/middy)) | [`4.5.1` -> `4.5.2`](https://renovatebot.com/diffs/npm/@middy%2fhttp-error-handler/4.5.1/4.5.2) | [![age](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-error-handler/4.5.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-error-handler/4.5.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-error-handler/4.5.2/compatibility-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-error-handler/4.5.2/confidence-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) |
| [@middy/http-header-normalizer](https://middy.js.org) ([source](https://togithub.com/middyjs/middy)) | [`4.5.1` -> `4.5.2`](https://renovatebot.com/diffs/npm/@middy%2fhttp-header-normalizer/4.5.1/4.5.2) | [![age](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-header-normalizer/4.5.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-header-normalizer/4.5.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-header-normalizer/4.5.2/compatibility-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-header-normalizer/4.5.2/confidence-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) |
| [@middy/http-json-body-parser](https://middy.js.org) ([source](https://togithub.com/middyjs/middy)) | [`4.5.1` -> `4.5.2`](https://renovatebot.com/diffs/npm/@middy%2fhttp-json-body-parser/4.5.1/4.5.2) | [![age](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-json-body-parser/4.5.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-json-body-parser/4.5.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-json-body-parser/4.5.2/compatibility-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-json-body-parser/4.5.2/confidence-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) |
| [@middy/http-response-serializer](https://middy.js.org) ([source](https://togithub.com/middyjs/middy)) | [`4.5.1` -> `4.5.2`](https://renovatebot.com/diffs/npm/@middy%2fhttp-response-serializer/4.5.1/4.5.2) | [![age](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-response-serializer/4.5.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-response-serializer/4.5.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-response-serializer/4.5.2/compatibility-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-response-serializer/4.5.2/confidence-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) |
| [@middy/validator](https://middy.js.org) ([source](https://togithub.com/middyjs/middy)) | [`4.5.1` -> `4.5.2`](https://renovatebot.com/diffs/npm/@middy%2fvalidator/4.5.1/4.5.2) | [![age](https://badges.renovateapi.com/packages/npm/@middy%2fvalidator/4.5.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@middy%2fvalidator/4.5.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@middy%2fvalidator/4.5.2/compatibility-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@middy%2fvalidator/4.5.2/confidence-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>middyjs/middy</summary>

### [`v4.5.2`](https://togithub.com/middyjs/middy/releases/tag/4.5.2)

[Compare Source](https://togithub.com/middyjs/middy/compare/4.5.1...4.5.2)

##### What's Changed

-   fix: updated dynamo unmarshall object reducer to mutate instead of spread by [@&#8203;ykageyama-mondo](https://togithub.com/ykageyama-mondo) in [https://github.com/middyjs/middy/pull/1065](https://togithub.com/middyjs/middy/pull/1065)

##### New Contributors

-   [@&#8203;ykageyama-mondo](https://togithub.com/ykageyama-mondo) made their first contribution in [https://github.com/middyjs/middy/pull/1065](https://togithub.com/middyjs/middy/pull/1065)

**Full Changelog**: middyjs/middy@4.5.1...4.5.2

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 5am on sunday" (UTC), 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://app.renovatebot.com/dashboard#github/fallobst22/share.kirschbaum.cloud).
mergify bot referenced this pull request in SvenKirschbaum/aws-utils Jun 18, 2023
[![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)) | [`4.5.1` -> `4.5.2`](https://renovatebot.com/diffs/npm/@middy%2fcore/4.5.1/4.5.2) | [![age](https://badges.renovateapi.com/packages/npm/@middy%2fcore/4.5.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@middy%2fcore/4.5.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@middy%2fcore/4.5.2/compatibility-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@middy%2fcore/4.5.2/confidence-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) |
| [@middy/error-logger](https://middy.js.org) ([source](https://togithub.com/middyjs/middy)) | [`4.5.1` -> `4.5.2`](https://renovatebot.com/diffs/npm/@middy%2ferror-logger/4.5.1/4.5.2) | [![age](https://badges.renovateapi.com/packages/npm/@middy%2ferror-logger/4.5.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@middy%2ferror-logger/4.5.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@middy%2ferror-logger/4.5.2/compatibility-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@middy%2ferror-logger/4.5.2/confidence-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) |
| [@middy/http-error-handler](https://middy.js.org) ([source](https://togithub.com/middyjs/middy)) | [`4.5.1` -> `4.5.2`](https://renovatebot.com/diffs/npm/@middy%2fhttp-error-handler/4.5.1/4.5.2) | [![age](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-error-handler/4.5.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-error-handler/4.5.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-error-handler/4.5.2/compatibility-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-error-handler/4.5.2/confidence-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) |
| [@middy/http-header-normalizer](https://middy.js.org) ([source](https://togithub.com/middyjs/middy)) | [`4.5.1` -> `4.5.2`](https://renovatebot.com/diffs/npm/@middy%2fhttp-header-normalizer/4.5.1/4.5.2) | [![age](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-header-normalizer/4.5.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-header-normalizer/4.5.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-header-normalizer/4.5.2/compatibility-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-header-normalizer/4.5.2/confidence-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) |
| [@middy/http-response-serializer](https://middy.js.org) ([source](https://togithub.com/middyjs/middy)) | [`4.5.1` -> `4.5.2`](https://renovatebot.com/diffs/npm/@middy%2fhttp-response-serializer/4.5.1/4.5.2) | [![age](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-response-serializer/4.5.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-response-serializer/4.5.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-response-serializer/4.5.2/compatibility-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@middy%2fhttp-response-serializer/4.5.2/confidence-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>middyjs/middy</summary>

### [`v4.5.2`](https://togithub.com/middyjs/middy/releases/tag/4.5.2)

[Compare Source](https://togithub.com/middyjs/middy/compare/4.5.1...4.5.2)

##### What's Changed

-   fix: updated dynamo unmarshall object reducer to mutate instead of spread by [@&#8203;ykageyama-mondo](https://togithub.com/ykageyama-mondo) in [https://github.com/middyjs/middy/pull/1065](https://togithub.com/middyjs/middy/pull/1065)

##### New Contributors

-   [@&#8203;ykageyama-mondo](https://togithub.com/ykageyama-mondo) made their first contribution in [https://github.com/middyjs/middy/pull/1065](https://togithub.com/middyjs/middy/pull/1065)

**Full Changelog**: middyjs/middy@4.5.1...4.5.2

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 5am on sunday" (UTC), 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://app.renovatebot.com/dashboard#github/fallobst22/aws-utils).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants