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

Extend Next.js 13 support #55

Merged
merged 6 commits into from
Nov 17, 2023

Conversation

greg2012201
Copy link
Contributor

@greg2012201 greg2012201 commented Oct 23, 2023

Hello!

I've extended support for Next.js 13+. Now it's possible to access and update cookies in various places. Here's what I've done in this pull request:

  • Added support for the cookies function exported from next/headers.
  • Renamed types.
  • Extended the documentation.

In summary, with the recent updates in this pull request and PR #51, you can perform the following actions in the new features of Next.js 13+:

  • Update cookies (set/delete): client components, middleware, route handlers, server actions.
  • Get/check cookies: server components, client components, middleware, route handlers, server actions.

NOTE: It is not possible to update cookies in the context of React Server Components.

Enjoy

This PR refers to: #44, #52 #57

@greg2012201 greg2012201 mentioned this pull request Oct 31, 2023
@samuhmatos
Copy link

I hope this PR pass.... This feature is VERY IMPORTANT

@andreizanik
Copy link
Owner

Sorry, I'm on vacation and don't have a chance to check this PR right now.
I hope it's not a big problem =)

@samuhmatos
Copy link

samuhmatos commented Nov 15, 2023

Any progress with review? @andreizanik

@RobertoSnap
Copy link

Also waiting for this :)

README.md Show resolved Hide resolved
@andreizanik andreizanik merged commit 3ac4bc1 into andreizanik:master Nov 17, 2023
@andreizanik
Copy link
Owner

andreizanik commented Nov 17, 2023

Thanks for your PR!
I published a new version v4.1.0

@greg2012201
Copy link
Contributor Author

You're welcome! 💪🏻

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.

4 participants