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

Typo in middleware upgrade guide #40963

Merged
merged 2 commits into from Sep 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 8 additions & 8 deletions errors/middleware-upgrade-guide.md
Expand Up @@ -177,11 +177,11 @@ export default async function handler(req: NextRequest) {

### Summary of changes

| Added | Removed |
| ----------------------- | ------------- |
| `cookie.set` | `cookie` |
| `cookie.delete` | `clearCookie` |
| `cookie.getWithOptions` | `cookies` |
| Added | Removed |
| ------------------------ | ------------- |
| `cookies.set` | `cookie` |
| `cookies.delete` | `clearCookie` |
| `cookies.getWithOptions` | `cookies` |

### Explanation

Expand All @@ -191,9 +191,9 @@ Based on beta feedback, we are changing the Cookies API in `NextRequest` and `Ne

`NextResponse` now has a `cookies` instance with:

- `cookie.delete`
- `cookie.set`
- `cookie.getWithOptions`
- `cookies.delete`
- `cookies.set`
- `cookies.getWithOptions`

As well as other extended methods from `Map`.

Expand Down