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

feat(aws-lambda): add support for alb multiValueQueryStringParameters #2751

Merged

Conversation

yiss
Copy link
Contributor

@yiss yiss commented May 20, 2024

When working on #2626, I realized that when multiValueHeaders is enabled, the query string parameters are passed as an array as well. More info : https://docs.aws.amazon.com/elasticloadbalancing/latest/application/lambda-functions.html#multi-value-headers

If you enable multi-value headers, the load balancer uses both key values sent by the client and sends you an event that includes query string parameters using multiValueQueryStringParameters. For example:
"multiValueQueryStringParameters": { "myKey": ["val1", "val2"] },

This PR adds support for multiValueQueryStringParameters when it's available on the event

  • Add tests
  • Run tests
  • bun denoify to generate files for Deno
  • bun run format:fix && bun run lint:fix to format the code

Copy link
Member

@yusukebe yusukebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@yusukebe
Copy link
Member

Hi! @yiss

Thanks for the PR. I'll merge it now and soon release a patch version that includes this change.

@yusukebe yusukebe merged commit a437161 into honojs:main May 20, 2024
10 checks passed
@yiss
Copy link
Contributor Author

yiss commented May 21, 2024

@yusukebe great thank you

nicolewhite referenced this pull request in autoblocksai/cli May 29, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [hono](https://hono.dev/) ([source](https://github.com/honojs/hono))
| [`4.3.8` ->
`4.4.0`](https://renovatebot.com/diffs/npm/hono/4.3.8/4.4.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/hono/4.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/hono/4.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/hono/4.3.8/4.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/hono/4.3.8/4.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>honojs/hono (hono)</summary>

###
[`v4.4.0`](https://github.com/honojs/hono/compare/v4.3.11...v4.4.0)

[Compare
Source](https://github.com/honojs/hono/compare/v4.3.11...v4.4.0)

### [`v4.3.11`](https://github.com/honojs/hono/releases/tag/v4.3.11)

[Compare
Source](https://github.com/honojs/hono/compare/v4.3.10...v4.3.11)

#### What's Changed

- fix(middleware/jwt): fix incorrect assumption in jwt impl by
[@&#8203;boehs](https://github.com/boehs) in
[https://github.com/honojs/hono/pull/2775](https://github.com/honojs/hono/pull/2775)

#### New Contributors

- [@&#8203;boehs](https://github.com/boehs) made their first
contribution in
[https://github.com/honojs/hono/pull/2775](https://github.com/honojs/hono/pull/2775)

**Full Changelog**:
honojs/hono@v4.3.10...v4.3.11

### [`v4.3.10`](https://github.com/honojs/hono/releases/tag/v4.3.10)

[Compare
Source](https://github.com/honojs/hono/compare/v4.3.9...v4.3.10)

#### What's Changed

- fix(secure-header): Replace NodeJS Buffer API by
[@&#8203;watany-dev](https://github.com/watany-dev) in
[https://github.com/honojs/hono/pull/2761](https://github.com/honojs/hono/pull/2761)
- fix(http-exception): prioritize the status code by
[@&#8203;yusukebe](https://github.com/yusukebe) in
[https://github.com/honojs/hono/pull/2767](https://github.com/honojs/hono/pull/2767)
- feat(etag): export `RETAINED_304_HEADERS` by
[@&#8203;yusukebe](https://github.com/yusukebe) in
[https://github.com/honojs/hono/pull/2763](https://github.com/honojs/hono/pull/2763)

**Full Changelog**:
honojs/hono@v4.3.9...v4.3.10

### [`v4.3.9`](https://github.com/honojs/hono/releases/tag/v4.3.9)

[Compare
Source](https://github.com/honojs/hono/compare/v4.3.8...v4.3.9)

#### What's Changed

- fix(factory): export `CreateHandlersInterface` by
[@&#8203;yusukebe](https://github.com/yusukebe) in
[https://github.com/honojs/hono/pull/2752](https://github.com/honojs/hono/pull/2752)
- feat(aws-lambda): add support for alb multiValueQueryStringParameters
by [@&#8203;yiss](https://github.com/yiss) in
[https://github.com/honojs/hono/pull/2751](https://github.com/honojs/hono/pull/2751)

**Full Changelog**:
honojs/hono@v4.3.8...v4.3.9

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" in timezone
America/Chicago, 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 this update
again.

---

- [ ] <!-- rebase-check -->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/autoblocksai/cli).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzcuOCIsInVwZGF0ZWRJblZlciI6IjM3LjM3Ny44IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants