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(server): Response meta headers type #5074

Merged
merged 4 commits into from
Nov 21, 2023
Merged

fix(server): Response meta headers type #5074

merged 4 commits into from
Nov 21, 2023

Conversation

AlexXanderGrib
Copy link
Contributor

🎯 Changes

  • Changes type of ResponseMeta['headers'] from Record<string, string> to HTTPHeaders
  • This allows for multiple headers setting. My use case: setting cookies with it.

✅ Checklist

  • I have followed the steps listed in the Contributing guide.
  • If necessary, I have added documentation related to the changes made. (Not nescessary)
  • I have added or updated the tests related to the changes made.

@AlexXanderGrib AlexXanderGrib requested a review from a team as a code owner November 21, 2023 12:33
Copy link

vercel bot commented Nov 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
trpc-next-app-dir ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 21, 2023 5:18pm
www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 21, 2023 5:18pm

Copy link

vercel bot commented Nov 21, 2023

@AlexXanderGrib is attempting to deploy a commit to the trpc Team on Vercel.

A member of the Team first needs to authorize it.

@KATT KATT enabled auto-merge (squash) November 21, 2023 17:11
@KATT KATT merged commit d2972f0 into trpc:main Nov 21, 2023
renovate bot referenced this pull request in ettorepuccetti/terrarossa Nov 21, 2023
[![Mend Renovate logo
banner](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@trpc/client](https://trpc.io)
([source](https://togithub.com/trpc/trpc)) | [`10.43.7` ->
`10.44.0`](https://renovatebot.com/diffs/npm/@trpc%2fclient/10.43.7/10.44.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@trpc%2fclient/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@trpc%2fclient/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@trpc%2fclient/10.43.7/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@trpc%2fclient/10.43.7/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@trpc/next](https://trpc.io)
([source](https://togithub.com/trpc/trpc)) | [`10.43.7` ->
`10.44.0`](https://renovatebot.com/diffs/npm/@trpc%2fnext/10.43.7/10.44.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@trpc%2fnext/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@trpc%2fnext/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@trpc%2fnext/10.43.7/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@trpc%2fnext/10.43.7/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@trpc/react-query](https://trpc.io)
([source](https://togithub.com/trpc/trpc)) | [`10.43.7` ->
`10.44.0`](https://renovatebot.com/diffs/npm/@trpc%2freact-query/10.43.7/10.44.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@trpc%2freact-query/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@trpc%2freact-query/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@trpc%2freact-query/10.43.7/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@trpc%2freact-query/10.43.7/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@trpc/server](https://trpc.io)
([source](https://togithub.com/trpc/trpc)) | [`10.43.7` ->
`10.44.0`](https://renovatebot.com/diffs/npm/@trpc%2fserver/10.43.7/10.44.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@trpc%2fserver/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@trpc%2fserver/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@trpc%2fserver/10.43.7/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@trpc%2fserver/10.43.7/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>trpc/trpc (@&#8203;trpc/client)</summary>

### [`v10.44.0`](https://togithub.com/trpc/trpc/releases/tag/v10.44.0)

[Compare
Source](https://togithub.com/trpc/trpc/compare/v10.43.7...v10.44.0)

#### What's Changed

- fix(client+server): non-records inferred as records when serializing
as json by [@&#8203;jussisaurio](https://togithub.com/jussisaurio) in
[https://github.com/trpc/trpc/pull/5077](https://togithub.com/trpc/trpc/pull/5077)
- fix(server): Response meta headers type by
[@&#8203;AlexXanderGrib](https://togithub.com/AlexXanderGrib) in
[https://github.com/trpc/trpc/pull/5074](https://togithub.com/trpc/trpc/pull/5074)
- feat(react): allow conditional ssr based on context by
[@&#8203;jonluca](https://togithub.com/jonluca) in
[https://github.com/trpc/trpc/pull/4997](https://togithub.com/trpc/trpc/pull/4997)
- fix(server): constrain the IsRecord utility type to objects by
[@&#8203;jussisaurio](https://togithub.com/jussisaurio) in
[https://github.com/trpc/trpc/pull/5081](https://togithub.com/trpc/trpc/pull/5081)

#### New Contributors

- [@&#8203;jonluca](https://togithub.com/jonluca) made their first
contribution in
[https://github.com/trpc/trpc/pull/4997](https://togithub.com/trpc/trpc/pull/4997)

**Full Changelog**:
trpc/trpc@v10.43.7...v10.44.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 3am,before 9am" (UTC),
Automerge - "after 3am,before 9am" (UTC).

🚦 **Automerge**: Enabled.

♻ **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.

---

- [ ] <!-- 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/ettorepuccetti/terrarossa).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy41OS44IiwidXBkYXRlZEluVmVyIjoiMzcuNTkuOCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
kodiakhq bot referenced this pull request in weareinreach/TransMascFutures Nov 22, 2023
[![Mend Renovate logo banner](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@tabler/icons-react](https://tabler-icons.io) ([source](https://togithub.com/tabler/tabler-icons)) | [`2.41.0` -> `2.42.0`](https://renovatebot.com/diffs/npm/@tabler%2ficons-react/2.41.0/2.42.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@tabler%2ficons-react/2.42.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@tabler%2ficons-react/2.42.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@tabler%2ficons-react/2.41.0/2.42.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@tabler%2ficons-react/2.41.0/2.42.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [@trpc/client](https://trpc.io) ([source](https://togithub.com/trpc/trpc)) | [`10.43.7` -> `10.44.0`](https://renovatebot.com/diffs/npm/@trpc%2fclient/10.43.7/10.44.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@trpc%2fclient/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@trpc%2fclient/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@trpc%2fclient/10.43.7/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@trpc%2fclient/10.43.7/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [@trpc/next](https://trpc.io) ([source](https://togithub.com/trpc/trpc)) | [`10.43.7` -> `10.44.0`](https://renovatebot.com/diffs/npm/@trpc%2fnext/10.43.7/10.44.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@trpc%2fnext/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@trpc%2fnext/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@trpc%2fnext/10.43.7/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@trpc%2fnext/10.43.7/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [@trpc/react-query](https://trpc.io) ([source](https://togithub.com/trpc/trpc)) | [`10.43.7` -> `10.44.0`](https://renovatebot.com/diffs/npm/@trpc%2freact-query/10.43.7/10.44.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@trpc%2freact-query/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@trpc%2freact-query/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@trpc%2freact-query/10.43.7/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@trpc%2freact-query/10.43.7/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [@trpc/server](https://trpc.io) ([source](https://togithub.com/trpc/trpc)) | [`10.43.7` -> `10.44.0`](https://renovatebot.com/diffs/npm/@trpc%2fserver/10.43.7/10.44.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@trpc%2fserver/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@trpc%2fserver/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@trpc%2fserver/10.43.7/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@trpc%2fserver/10.43.7/10.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [@types/react-dom](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) | [`18.2.16` -> `18.2.17`](https://renovatebot.com/diffs/npm/@types%2freact-dom/18.2.16/18.2.17) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2freact-dom/18.2.17?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2freact-dom/18.2.17?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2freact-dom/18.2.16/18.2.17?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2freact-dom/18.2.16/18.2.17?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>tabler/tabler-icons (@&#8203;tabler/icons-react)</summary>

### [`v2.42.0`](https://togithub.com/tabler/tabler-icons/releases/tag/v2.42.0): Release 2.42.0

[Compare Source](https://togithub.com/tabler/tabler-icons/compare/v2.41.0...v2.42.0)

<img src="https://github.com/tabler/tabler-icons/assets/1282324/00856af9-841d-4aa9-995d-121c7ddcc005" width="584" alt="" />

##### 18 new icons:

-   `calendar-dot`
-   `copy-check`
-   `copy-minus`
-   `copy-plus`
-   `copy-x`
-   `folder-root`
-   `gymnastics`
-   `layout-bottombar-inactive`
-   `layout-navbar-inactive`
-   `layout-sidebar-inactive`
-   `layout-sidebar-right-inactive`
-   `library-minus`
-   `library-photo`
-   `library-plus`
-   `library`
-   `message-reply`
-   `scuba-diving`
-   `snowboarding`

Fixed icons: `copy`, `message-chatbot`, `message-forward`, `message-report`

</details>

<details>
<summary>trpc/trpc (@&#8203;trpc/client)</summary>

### [`v10.44.0`](https://togithub.com/trpc/trpc/releases/tag/v10.44.0)

[Compare Source](https://togithub.com/trpc/trpc/compare/v10.43.7...v10.44.0)

#### What's Changed

-   fix(client+server): non-records inferred as records when serializing as json by [@&#8203;jussisaurio](https://togithub.com/jussisaurio) in [https://github.com/trpc/trpc/pull/5077](https://togithub.com/trpc/trpc/pull/5077)
-   fix(server): Response meta headers type by [@&#8203;AlexXanderGrib](https://togithub.com/AlexXanderGrib) in [https://github.com/trpc/trpc/pull/5074](https://togithub.com/trpc/trpc/pull/5074)
-   feat(react): allow conditional ssr based on context by [@&#8203;jonluca](https://togithub.com/jonluca) in [https://github.com/trpc/trpc/pull/4997](https://togithub.com/trpc/trpc/pull/4997)
-   fix(server): constrain the IsRecord utility type to objects by [@&#8203;jussisaurio](https://togithub.com/jussisaurio) in [https://github.com/trpc/trpc/pull/5081](https://togithub.com/trpc/trpc/pull/5081)

#### New Contributors

-   [@&#8203;jonluca](https://togithub.com/jonluca) made their first contribution in [https://github.com/trpc/trpc/pull/4997](https://togithub.com/trpc/trpc/pull/4997)

**Full Changelog**: trpc/trpc@v10.43.7...v10.44.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] 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/weareinreach/GLAAD).



PR-URL: #258
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants