Skip to content

chore: move @types/cookie to dependencies #72

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

Merged
merged 1 commit into from
May 22, 2024

Conversation

ericsen-tsai
Copy link
Contributor

Refer to #71

Summary:
This PR addresses a type error that occurs when using NextApiRequest and NextApiResponse in a Next.js API route handler. The error is due to the incorrect type inference of cookies, which defaults to AppRouterOptions instead of DefaultOptions. This PR ensures that the type of cookies is correctly listed in the dependency, preventing the type error.

Code Changes:

  • move @types/cookies to dependency to prevent missing type

@andreizanik andreizanik merged commit 7008ec4 into andreizanik:master May 22, 2024
kodiakhq bot referenced this pull request in weareinreach/InReach May 22, 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 | Type |
Update | OpenSSF |
|---|---|---|---|---|---|---|---|---|
| [@snaplet/seed](https://snaplet.dev/seed) | [`0.97.18` ->
`0.97.19`](https://renovatebot.com/diffs/npm/@snaplet%2fseed/0.97.18/0.97.19)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@snaplet%2fseed/0.97.19?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@snaplet%2fseed/0.97.19?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@snaplet%2fseed/0.97.18/0.97.19?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@snaplet%2fseed/0.97.18/0.97.19?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| devDependencies | patch | |
| [@vercel/edge-config](https://vercel.com)
([source](https://togithub.com/vercel/storage/tree/HEAD/packages/edge-config))
| [`1.1.0` ->
`1.1.1`](https://renovatebot.com/diffs/npm/@vercel%2fedge-config/1.1.0/1.1.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@vercel%2fedge-config/1.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@vercel%2fedge-config/1.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@vercel%2fedge-config/1.1.0/1.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@vercel%2fedge-config/1.1.0/1.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| dependencies | patch | [![OpenSSF
Scorecard](https://api.securityscorecards.dev/projects/github.com/vercel/storage/badge)](https://securityscorecards.dev/viewer/?uri=github.com/vercel/storage)
|
| [chromatic](https://www.chromatic.com)
([source](https://togithub.com/chromaui/chromatic-cli)) | [`11.3.5` ->
`11.4.0`](https://renovatebot.com/diffs/npm/chromatic/11.3.5/11.4.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/chromatic/11.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/chromatic/11.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/chromatic/11.3.5/11.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/chromatic/11.3.5/11.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| devDependencies | minor | [![OpenSSF
Scorecard](https://api.securityscorecards.dev/projects/github.com/chromaui/chromatic-cli/badge)](https://securityscorecards.dev/viewer/?uri=github.com/chromaui/chromatic-cli)
|
| [chromatic](https://www.chromatic.com)
([source](https://togithub.com/chromaui/chromatic-cli)) | [`11.3.5` ->
`11.4.0`](https://renovatebot.com/diffs/npm/chromatic/11.3.5/11.4.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/chromatic/11.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/chromatic/11.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/chromatic/11.3.5/11.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/chromatic/11.3.5/11.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| dependencies | minor | [![OpenSSF
Scorecard](https://api.securityscorecards.dev/projects/github.com/chromaui/chromatic-cli/badge)](https://securityscorecards.dev/viewer/?uri=github.com/chromaui/chromatic-cli)
|
| [cookies-next](https://togithub.com/andreizanik/cookies-next) |
[`4.1.1` ->
`4.2.1`](https://renovatebot.com/diffs/npm/cookies-next/4.1.1/4.2.1) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/cookies-next/4.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/cookies-next/4.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/cookies-next/4.1.1/4.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/cookies-next/4.1.1/4.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| dependencies | minor | [![OpenSSF
Scorecard](https://api.securityscorecards.dev/projects/github.com/andreizanik/cookies-next/badge)](https://securityscorecards.dev/viewer/?uri=github.com/andreizanik/cookies-next)
|
| [lint-staged](https://togithub.com/okonet/lint-staged) | [`15.2.2` ->
`15.2.4`](https://renovatebot.com/diffs/npm/lint-staged/15.2.2/15.2.4) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/lint-staged/15.2.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/lint-staged/15.2.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/lint-staged/15.2.2/15.2.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/lint-staged/15.2.2/15.2.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| devDependencies | patch | [![OpenSSF
Scorecard](https://api.securityscorecards.dev/projects/github.com/okonet/lint-staged/badge)](https://securityscorecards.dev/viewer/?uri=github.com/okonet/lint-staged)
|
| [react-hook-form](https://www.react-hook-form.com)
([source](https://togithub.com/react-hook-form/react-hook-form)) |
[`7.51.4` ->
`7.51.5`](https://renovatebot.com/diffs/npm/react-hook-form/7.51.4/7.51.5)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/react-hook-form/7.51.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/react-hook-form/7.51.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/react-hook-form/7.51.4/7.51.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/react-hook-form/7.51.4/7.51.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| peerDependencies | patch | [![OpenSSF
Scorecard](https://api.securityscorecards.dev/projects/github.com/react-hook-form/react-hook-form/badge)](https://securityscorecards.dev/viewer/?uri=github.com/react-hook-form/react-hook-form)
|
| [react-hook-form](https://www.react-hook-form.com)
([source](https://togithub.com/react-hook-form/react-hook-form)) |
[`7.51.4` ->
`7.51.5`](https://renovatebot.com/diffs/npm/react-hook-form/7.51.4/7.51.5)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/react-hook-form/7.51.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/react-hook-form/7.51.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/react-hook-form/7.51.4/7.51.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/react-hook-form/7.51.4/7.51.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| devDependencies | patch | [![OpenSSF
Scorecard](https://api.securityscorecards.dev/projects/github.com/react-hook-form/react-hook-form/badge)](https://securityscorecards.dev/viewer/?uri=github.com/react-hook-form/react-hook-form)
|
| [react-hook-form](https://www.react-hook-form.com)
([source](https://togithub.com/react-hook-form/react-hook-form)) |
[`7.51.4` ->
`7.51.5`](https://renovatebot.com/diffs/npm/react-hook-form/7.51.4/7.51.5)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/react-hook-form/7.51.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/react-hook-form/7.51.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/react-hook-form/7.51.4/7.51.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/react-hook-form/7.51.4/7.51.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| dependencies | patch | [![OpenSSF
Scorecard](https://api.securityscorecards.dev/projects/github.com/react-hook-form/react-hook-form/badge)](https://securityscorecards.dev/viewer/?uri=github.com/react-hook-form/react-hook-form)
|

---

### Release Notes

<details>
<summary>vercel/storage (@&#8203;vercel/edge-config)</summary>

###
[`v1.1.1`](https://togithub.com/vercel/storage/blob/HEAD/packages/edge-config/CHANGELOG.md#111)

[Compare
Source](https://togithub.com/vercel/storage/compare/@vercel/edge-config@1.1.0...@vercel/edge-config@1.1.1)

##### Patch Changes

- [`585a753`](https://togithub.com/vercel/storage/commit/585a753):
Resolved bug where an unhandled promise rejection event may have been
triggered during development

</details>

<details>
<summary>chromaui/chromatic-cli (chromatic)</summary>

###
[`v11.4.0`](https://togithub.com/chromaui/chromatic-cli/blob/HEAD/CHANGELOG.md#v1140-Tue-May-21-2024)

[Compare
Source](https://togithub.com/chromaui/chromatic-cli/compare/v11.3.5...v11.4.0)

##### 🚀 Enhancement

- Use replacement build for baseline build with uncommitted changes
[#&#8203;988](https://togithub.com/chromaui/chromatic-cli/pull/988)
([@&#8203;ghengeveld](https://togithub.com/ghengeveld))

##### 🐛 Bug Fix

- Remove console log
[#&#8203;979](https://togithub.com/chromaui/chromatic-cli/pull/979)
([@&#8203;tevanoff](https://togithub.com/tevanoff))

##### Authors: 2

- Gert Hengeveld ([@&#8203;ghengeveld](https://togithub.com/ghengeveld))
-   Todd Evanoff ([@&#8203;tevanoff](https://togithub.com/tevanoff))

***

</details>

<details>
<summary>andreizanik/cookies-next (cookies-next)</summary>

###
[`v4.2.1`](https://togithub.com/andreizanik/cookies-next/releases/tag/v4.2.1)

[Compare
Source](https://togithub.com/andreizanik/cookies-next/compare/v4.2.0...v4.2.1)

hot fix bug with types

#### What's Changed

- chore: move [@&#8203;types/cookie](https://togithub.com/types/cookie)
to dependencies by
[@&#8203;ericsen-tsai](https://togithub.com/ericsen-tsai) in
[https://github.com/andreizanik/cookies-next/pull/72](https://togithub.com/andreizanik/cookies-next/pull/72)

#### New Contributors

- [@&#8203;ericsen-tsai](https://togithub.com/ericsen-tsai) made their
first contribution in
[https://github.com/andreizanik/cookies-next/pull/72](https://togithub.com/andreizanik/cookies-next/pull/72)

**Full Changelog**:
andreizanik/cookies-next@v4.2.0...v4.2.1

###
[`v4.2.0`](https://togithub.com/andreizanik/cookies-next/releases/tag/v4.2.0)

[Compare
Source](https://togithub.com/andreizanik/cookies-next/compare/v4.1.1...v4.2.0)

#### What's Changed

- move @&#8203;types/\* to devDependencies by
[@&#8203;mikelpr](https://togithub.com/mikelpr) in
[https://github.com/andreizanik/cookies-next/pull/67](https://togithub.com/andreizanik/cookies-next/pull/67)
- Consistent value type by
[@&#8203;greg2012201](https://togithub.com/greg2012201) in
[https://github.com/andreizanik/cookies-next/pull/69](https://togithub.com/andreizanik/cookies-next/pull/69)

#### New Contributors

- [@&#8203;mikelpr](https://togithub.com/mikelpr) made their first
contribution in
[https://github.com/andreizanik/cookies-next/pull/67](https://togithub.com/andreizanik/cookies-next/pull/67)

**Full Changelog**:
andreizanik/cookies-next@v4.1.1...v4.2.0

</details>

<details>
<summary>okonet/lint-staged (lint-staged)</summary>

###
[`v15.2.4`](https://togithub.com/okonet/lint-staged/blob/HEAD/CHANGELOG.md#1524)

[Compare
Source](https://togithub.com/okonet/lint-staged/compare/v15.2.2...v15.2.4)

##### Patch Changes

-
[`4f4537a`](https://togithub.com/lint-staged/lint-staged/commit/4f4537a75ebfba816826f6f67a325dbc7f25908a)
Thanks [@&#8203;iiroj](https://togithub.com/iiroj)! - Fix release issue
with previous version; update dependencies

</details>

<details>
<summary>react-hook-form/react-hook-form (react-hook-form)</summary>

###
[`v7.51.5`](https://togithub.com/react-hook-form/react-hook-form/compare/v7.51.4...6deae49068dc8ac056977d4def168a78968d9e61)

[Compare
Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.51.4...v7.51.5)

</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.

---

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

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

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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