-
Notifications
You must be signed in to change notification settings - Fork 406
feat(nextjs): Support async headers() #4278
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
Conversation
🦋 Changeset detectedLatest commit: ee76c39 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
4f0263d to
6c0eaa7
Compare
de0f2d2 to
11c15f3
Compare
|
!snapshot |
|
!snapshot |
|
Hey @jacekradko - the snapshot version command generated the following package versions:
Tip: Use the snippet copy button below to quickly install the required packages. npm i @clerk/astro@1.3.17-snapshot.vb87a27f --save-exact
npm i @clerk/backend@1.14.2-snapshot.vb87a27f --save-exact
npm i @clerk/chrome-extension@1.3.21-snapshot.vb87a27f --save-exact
npm i @clerk/clerk-js@5.28.0-snapshot.vb87a27f --save-exact
npm i @clerk/elements@0.17.0-snapshot.vb87a27f --save-exact
npm i @clerk/clerk-expo@2.2.27-snapshot.vb87a27f --save-exact
npm i @clerk/express@1.3.2-snapshot.vb87a27f --save-exact
npm i @clerk/fastify@2.0.4-snapshot.vb87a27f --save-exact
npm i @clerk/localizations@3.3.1-snapshot.vb87a27f --save-exact
npm i @clerk/nextjs@6.0.0-snapshot.vb87a27f --save-exact
npm i @clerk/clerk-react@5.12.1-snapshot.vb87a27f --save-exact
npm i @clerk/remix@4.2.40-snapshot.vb87a27f --save-exact
npm i @clerk/clerk-sdk-node@5.0.53-snapshot.vb87a27f --save-exact
npm i @clerk/shared@2.10.0-snapshot.vb87a27f --save-exact
npm i @clerk/tanstack-start@0.4.16-snapshot.vb87a27f --save-exact
npm i @clerk/testing@1.3.14-snapshot.vb87a27f --save-exact
npm i @clerk/themes@2.1.38-snapshot.vb87a27f --save-exact
npm i @clerk/types@4.27.0-snapshot.vb87a27f --save-exact
npm i @clerk/upgrade@1.1.0-snapshot.vb87a27f --save-exact |
|
!snapshot |
|
Hey @jacekradko - the snapshot version command generated the following package versions:
Tip: Use the snippet copy button below to quickly install the required packages. npm i @clerk/astro@1.3.17-snapshot.v49b6f8d --save-exact
npm i @clerk/backend@1.14.2-snapshot.v49b6f8d --save-exact
npm i @clerk/chrome-extension@1.3.21-snapshot.v49b6f8d --save-exact
npm i @clerk/clerk-js@5.28.0-snapshot.v49b6f8d --save-exact
npm i @clerk/elements@0.17.0-snapshot.v49b6f8d --save-exact
npm i @clerk/clerk-expo@2.2.27-snapshot.v49b6f8d --save-exact
npm i @clerk/express@1.3.2-snapshot.v49b6f8d --save-exact
npm i @clerk/fastify@2.0.4-snapshot.v49b6f8d --save-exact
npm i @clerk/localizations@3.3.1-snapshot.v49b6f8d --save-exact
npm i @clerk/nextjs@6.0.0-snapshot.v49b6f8d --save-exact
npm i @clerk/clerk-react@5.12.1-snapshot.v49b6f8d --save-exact
npm i @clerk/remix@4.2.40-snapshot.v49b6f8d --save-exact
npm i @clerk/clerk-sdk-node@5.0.53-snapshot.v49b6f8d --save-exact
npm i @clerk/shared@2.10.0-snapshot.v49b6f8d --save-exact
npm i @clerk/tanstack-start@0.4.16-snapshot.v49b6f8d --save-exact
npm i @clerk/testing@1.3.14-snapshot.v49b6f8d --save-exact
npm i @clerk/themes@2.1.38-snapshot.v49b6f8d --save-exact
npm i @clerk/types@4.27.0-snapshot.v49b6f8d --save-exact
npm i @clerk/upgrade@1.1.0-snapshot.v49b6f8d --save-exact |
|
!snapshot |
|
Hey @jacekradko - the snapshot version command generated the following package versions:
Tip: Use the snippet copy button below to quickly install the required packages. npm i @clerk/astro@1.4.0-snapshot.vfbd7c17 --save-exact
npm i @clerk/backend@1.14.2-snapshot.vfbd7c17 --save-exact
npm i @clerk/chrome-extension@1.3.21-snapshot.vfbd7c17 --save-exact
npm i @clerk/clerk-js@5.28.0-snapshot.vfbd7c17 --save-exact
npm i @clerk/elements@0.17.0-snapshot.vfbd7c17 --save-exact
npm i @clerk/clerk-expo@2.2.27-snapshot.vfbd7c17 --save-exact
npm i @clerk/express@1.3.2-snapshot.vfbd7c17 --save-exact
npm i @clerk/fastify@2.0.4-snapshot.vfbd7c17 --save-exact
npm i @clerk/localizations@3.3.1-snapshot.vfbd7c17 --save-exact
npm i @clerk/nextjs@6.0.0-snapshot.vfbd7c17 --save-exact
npm i @clerk/clerk-react@5.12.1-snapshot.vfbd7c17 --save-exact
npm i @clerk/remix@4.2.40-snapshot.vfbd7c17 --save-exact
npm i @clerk/clerk-sdk-node@5.0.53-snapshot.vfbd7c17 --save-exact
npm i @clerk/shared@2.10.0-snapshot.vfbd7c17 --save-exact
npm i @clerk/tanstack-start@0.4.16-snapshot.vfbd7c17 --save-exact
npm i @clerk/testing@1.3.14-snapshot.vfbd7c17 --save-exact
npm i @clerk/themes@2.1.38-snapshot.vfbd7c17 --save-exact
npm i @clerk/types@4.27.0-snapshot.vfbd7c17 --save-exact
npm i @clerk/upgrade@1.1.0-snapshot.vfbd7c17 --save-exact |
|
👀 |
brkalow
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Left some minor comments. Let's get it merged into the 15 branch 🚢
|
|
||
| const __dirname = dirname(fileURLToPath(import.meta.url)); | ||
|
|
||
| export async function runCodemod(transform = 'transform-async-request', glob, options) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] Do we need to make this the default value for transform? Feels a bit odd with the thought that we'll be adding more down the line.
| import transformer from '../transform-async-request.cjs'; | ||
| import { fixtures } from './__fixtures__/transform-async-request.fixtures'; | ||
|
|
||
| describe('transform-async-request', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice 👏
Co-authored-by: Bryce Kalow <bryce@clerk.dev>
Description
Related #4245
Tested the codemod in dashboard: https://github.com/clerk/dashboard/pull/3886
Checklist
npm testruns as expected.npm run buildruns as expected.Type of change