René's URL Explorer Experiment


Title: fix(nextjs): Skip NextResponse normalization in mergeResponses if possible by LekoArts · Pull Request #2244 · clerk/javascript · GitHub

Open Graph Title: fix(nextjs): Skip NextResponse normalization in mergeResponses if possible by LekoArts · Pull Request #2244 · clerk/javascript

X Title: fix(nextjs): Skip NextResponse normalization in mergeResponses if possible by LekoArts · Pull Request #2244 · clerk/javascript

Description: Official JavaScript repository for Clerk authentication - fix(nextjs): Skip NextResponse normalization in mergeResponses if possible by LekoArts · Pull Request #2244 · clerk/javascript

Open Graph Description: Description In the mergeResponses helper inside nextjs we normalize the incoming responses (which can be NextResponse or Response) by passing through the res to a new NextResponse(). In that proces...

X Description: Description In the mergeResponses helper inside nextjs we normalize the incoming responses (which can be NextResponse or Response) by passing through the res to a new NextResponse(). In that proces...

Opengraph URL: https://github.com/clerk/javascript/pull/2244

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:207a75b2-c2bc-d6fc-2383-4c7a61adeb9a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAB0E:115673:897031:B7FBDD:6AFA6BD6
html-safe-noncef0d02ef42e25adc8a937153e891924fa2dbb444c3e3fd480693186f281a1ddb2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjBFOjExNTY3Mzo4OTcwMzE6QjdGQkREOjZBRkE2QkQ2IiwidmlzaXRvcl9pZCI6IjM5MTc3MzA2MzkzMzA4MzEzMTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1de8c44fe375c08647499882c062899d6093b5b05a87297840809692d445f5f3
hovercard-subject-tagpull_request:1625432581
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/clerk/javascript/2244/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/ee83339c45ac7170a5cf3c9f22e30fa460ef23bba8f2de7e1ce6b056904b5325/clerk/javascript/pull/2244
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ee83339c45ac7170a5cf3c9f22e30fa460ef23bba8f2de7e1ce6b056904b5325/clerk/javascript/pull/2244
og:image:altDescription In the mergeResponses helper inside nextjs we normalize the incoming responses (which can be NextResponse or Response) by passing through the res to a new NextResponse(). In that proces...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameLekoArts
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-cache
go-importgithub.com/clerk/javascript git https://github.com/clerk/javascript.git
octolytics-dimension-user_id49538330
octolytics-dimension-user_loginclerk
octolytics-dimension-repository_id438331492
octolytics-dimension-repository_nwoclerk/javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id438331492
octolytics-dimension-repository_network_root_nwoclerk/javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/clerk/javascript/pull/2244#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F2244
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F2244
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=clerk%2Fjavascript
Reloadhttps://github.com/clerk/javascript/pull/2244
Reloadhttps://github.com/clerk/javascript/pull/2244
Reloadhttps://github.com/clerk/javascript/pull/2244
clerkhttps://github.com/clerk
javascripthttps://github.com/clerk/javascript
Codehttps://github.com/clerk/javascript
Issues44 (44)https://github.com/clerk/javascript/issues
Pull requests109 (109)https://github.com/clerk/javascript/pulls
Discussionshttps://github.com/clerk/javascript/discussions
Actionshttps://github.com/clerk/javascript/actions
Security and quality6 (6)https://github.com/clerk/javascript/security
Insightshttps://github.com/clerk/javascript/pulse
https://github.com/clerk/javascript
LekoArtshttps://github.com/LekoArts
mainhttps://github.com/clerk/javascript/tree/main
lekoarts/sdk-996-authmiddleware-corrupts-response-cookies-only-emits-firsthttps://github.com/clerk/javascript/tree/lekoarts/sdk-996-authmiddleware-corrupts-response-cookies-only-emits-first
Conversationhttps://github.com/clerk/javascript/pull/2244
Commits6 (6)https://github.com/clerk/javascript/pull/2244/commits
Checkshttps://github.com/clerk/javascript/pull/2244/checks
Files changedhttps://github.com/clerk/javascript/pull/2244/files
fix(nextjs): Skip NextResponse normalization in mergeResponses if possiblehttps://github.com/clerk/javascript/pull/2244#top
LekoArtshttps://github.com/LekoArts
mainhttps://github.com/clerk/javascript/tree/main
lekoarts/sdk-996-authmiddleware-corrupts-response-cookies-only-emits-firsthttps://github.com/clerk/javascript/tree/lekoarts/sdk-996-authmiddleware-corrupts-response-cookies-only-emits-first
https://github.com/LekoArts
LekoArtshttps://github.com/LekoArts
Dec 1, 2023https://github.com/clerk/javascript/pull/2244#issue-2020590501
Please reload this pagehttps://github.com/clerk/javascript/pull/2244
#1897https://github.com/clerk/javascript/issues/1897
JSDoc commentshttps://jsdoc.app/about-getting-started.html
Documentationhttps://github.com/clerk/clerk-docs
Please reload this pagehttps://github.com/clerk/javascript/pull/2244
LekoArtshttps://github.com/LekoArts
December 1, 2023 08:30https://github.com/clerk/javascript/pull/2244#commits-pushed-29eab33
https://github.com/LekoArts
fix(nextjs): If res is NextResponse just return ithttps://github.com/clerk/javascript/pull/2244/commits/29eab33026ed7a22f4bc6365ea71c087707473f5
29eab33https://github.com/clerk/javascript/pull/2244/commits/29eab33026ed7a22f4bc6365ea71c087707473f5
https://github.com/LekoArts
fix(nextjs): Support options when setting cookieshttps://github.com/clerk/javascript/pull/2244/commits/7ee4e4b7182ae46ab2d2ceadf07de795941116ca
7ee4e4bhttps://github.com/clerk/javascript/pull/2244/commits/7ee4e4b7182ae46ab2d2ceadf07de795941116ca
https://github.com/LekoArts
chore(repo): Add initial next middleware testhttps://github.com/clerk/javascript/pull/2244/commits/b63d2763f938d52ce53a5114f161a1081b2b5824
b63d276https://github.com/clerk/javascript/pull/2244/commits/b63d2763f938d52ce53a5114f161a1081b2b5824
https://github.com/apps/changeset-bot
changeset-bothttps://github.com/apps/changeset-bot
Dec 1, 2023https://github.com/clerk/javascript/pull/2244#issuecomment-1835855438
Please reload this pagehttps://github.com/clerk/javascript/pull/2244
18ae827https://github.com/clerk/javascript/commit/18ae827f816304ea13f9c7dee7f75885e42c4eaa
Click here to learn what changesets arehttps://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md
Click here if you're a maintainer who wants to add another changeset to this PRhttps://github.com/clerk/javascript/new/lekoarts/sdk-996-authmiddleware-corrupts-response-cookies-only-emits-first?filename=.changeset/nine-shoes-vanish.md&value=---%0A%22%40clerk%2Fnextjs%22%3A%20patch%0A---%0A%0Afix(nextjs)%3A%20Skip%20NextResponse%20normalization%20in%20mergeResponses%20if%20possible%0A
Please reload this pagehttps://github.com/clerk/javascript/pull/2244
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
nextjs https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Anextjs
integration https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Aintegration
Dec 1, 2023https://github.com/clerk/javascript/pull/2244#event-11120500370
LekoArtshttps://github.com/LekoArts
December 4, 2023 09:55https://github.com/clerk/javascript/pull/2244#commits-pushed-8f05c68
https://github.com/LekoArts
chore(repo): Make test workhttps://github.com/clerk/javascript/pull/2244/commits/8f05c681542733c3c218183f08fbd595cc5735f3
8f05c68https://github.com/clerk/javascript/pull/2244/commits/8f05c681542733c3c218183f08fbd595cc5735f3
https://github.com/LekoArts
chore(repo): Add changesethttps://github.com/clerk/javascript/pull/2244/commits/b34f243c6a460735630d2d0a08877b0b3547a54b
b34f243https://github.com/clerk/javascript/pull/2244/commits/b34f243c6a460735630d2d0a08877b0b3547a54b
https://github.com/LekoArts
LekoArtshttps://github.com/LekoArts
Dec 4, 2023 https://github.com/clerk/javascript/pull/2244#pullrequestreview-1761901623
View reviewed changes https://github.com/clerk/javascript/pull/2244/files/b34f243c6a460735630d2d0a08877b0b3547a54b
integration/tests/next-middleware.test.tshttps://github.com/clerk/javascript/pull/2244/files/b34f243c6a460735630d2d0a08877b0b3547a54b#diff-2fff6fa2272adf5fc90e39dd1c119efc90944bceec6098dafd74b2c7b3d59871
LekoArtshttps://github.com/LekoArts
Dec 4, 2023https://github.com/clerk/javascript/pull/2244#discussion_r1413565777
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/clerk/javascript/pull/2244
packages/nextjs/src/utils/response.test.tshttps://github.com/clerk/javascript/pull/2244/files/b34f243c6a460735630d2d0a08877b0b3547a54b#diff-77cce4648133e3bd7ecd752e545f56147c31b05bee0fb51a230e432919665f01
LekoArtshttps://github.com/LekoArts
Dec 4, 2023https://github.com/clerk/javascript/pull/2244#discussion_r1413566774
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/clerk/javascript/pull/2244
https://github.com/LekoArts
LekoArtshttps://github.com/LekoArts
December 4, 2023 09:09https://github.com/clerk/javascript/pull/2244#event-11136089673
https://github.com/tmilewski
tmilewskihttps://github.com/tmilewski
Dec 4, 2023 https://github.com/clerk/javascript/pull/2244#pullrequestreview-1762761482
View reviewed changes https://github.com/clerk/javascript/pull/2244/files/b34f243c6a460735630d2d0a08877b0b3547a54b
tmilewskihttps://github.com/tmilewski
https://github.com/clerk/javascript/pull/2244#pullrequestreview-1762761482
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@LekoArtshttps://github.com/LekoArts
Please reload this pagehttps://github.com/clerk/javascript/pull/2244
packages/nextjs/src/utils/response.test.tshttps://github.com/clerk/javascript/pull/2244/files/b34f243c6a460735630d2d0a08877b0b3547a54b#diff-77cce4648133e3bd7ecd752e545f56147c31b05bee0fb51a230e432919665f01
Please reload this pagehttps://github.com/clerk/javascript/pull/2244
https://github.com/LekoArts
https://github.com/tmilewski
Update packages/nextjs/src/utils/response.test.tshttps://github.com/clerk/javascript/pull/2244/commits/18ae827f816304ea13f9c7dee7f75885e42c4eaa
18ae827https://github.com/clerk/javascript/pull/2244/commits/18ae827f816304ea13f9c7dee7f75885e42c4eaa
https://github.com/LekoArts
LekoArtshttps://github.com/LekoArts
December 5, 2023 07:33https://github.com/clerk/javascript/pull/2244#event-11148917549
https://github.com/LekoArts
LekoArtshttps://github.com/LekoArts
Dec 5, 2023https://github.com/clerk/javascript/pull/2244#event-11148972296
b892ac6https://github.com/clerk/javascript/commit/b892ac6cb8c0e2d5fc159a6ba3151c93716700f6
Dec 5, 2023https://github.com/clerk/javascript/pull/2244#event-11149052815
https://github.com/LekoArts
LekoArtshttps://github.com/LekoArts
December 5, 2023 07:42https://github.com/clerk/javascript/pull/2244#event-11149052957
Version Packages (alpha-v5) #2238 https://github.com/clerk/javascript/pull/2238
fix(nextjs): Skip NextResponse normalization in mergeResponses if possible (#2244) #2260 https://github.com/clerk/javascript/pull/2260
LekoArtshttps://github.com/LekoArts
Dec 5, 2023 https://github.com/clerk/javascript/pull/2244#ref-commit-33404c7
https://github.com/LekoArts
https://github.com/tmilewski
fix(nextjs): Skip NextResponse normalization in mergeResponses if pos…https://github.com/clerk/javascript/commit/33404c7fa818eb7fb6be58db78907723d39e485f
33404c7https://github.com/clerk/javascript/commit/33404c7fa818eb7fb6be58db78907723d39e485f
#2244https://github.com/clerk/javascript/pull/2244
b892ac6https://github.com/clerk/javascript/commit/b892ac6cb8c0e2d5fc159a6ba3151c93716700f6
github-merge-queuehttps://github.com/apps/github-merge-queue
Dec 5, 2023 https://github.com/clerk/javascript/pull/2244#ref-commit-fc43f12
https://github.com/clerk-cookie
https://github.com/LekoArts
fix(nextjs): Skip NextResponse normalization in mergeResponses if pos…https://github.com/clerk/javascript/commit/fc43f129c11743f10b58e87618020218bf17e993
fc43f12https://github.com/clerk/javascript/commit/fc43f129c11743f10b58e87618020218bf17e993
#2244https://github.com/clerk/javascript/pull/2244
#2260https://github.com/clerk/javascript/pull/2260
b892ac6https://github.com/clerk/javascript/commit/b892ac6cb8c0e2d5fc159a6ba3151c93716700f6
tmilewskihttps://github.com/tmilewski
Dec 6, 2023 https://github.com/clerk/javascript/pull/2244#ref-commit-ebc25b6
https://github.com/LekoArts
https://github.com/tmilewski
fix(nextjs): Skip NextResponse normalization in mergeResponses if pos…https://github.com/clerk/javascript/commit/ebc25b60de79fdcaf6abafade1f849f3e3ad2b1b
ebc25b6https://github.com/clerk/javascript/commit/ebc25b60de79fdcaf6abafade1f849f3e3ad2b1b
#2244https://github.com/clerk/javascript/pull/2244
https://github.com/dimkl
dimklhttps://github.com/dimkl
LekoArtshttps://github.com/LekoArts
Dec 7, 2023https://github.com/clerk/javascript/pull/2244#event-11180830747
https://github.com/LekoArts
LekoArtshttps://github.com/LekoArts
Mar 13, 2024 https://github.com/clerk/javascript/pull/2244#ref-pullrequest-2183445819
fix(themes): Add tslib and @clerk/types as dependencies to @clerk/themes (#2665) #2987 https://github.com/clerk/javascript/pull/2987
https://github.com/LekoArts
LekoArtshttps://github.com/LekoArts
Aug 2, 2024 https://github.com/clerk/javascript/pull/2244#ref-pullrequest-2444224984
chore(repo): Correct changeset #3883 https://github.com/clerk/javascript/pull/3883
https://github.co/hiddenchars
https://github.com/clerk/javascript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F2244
https://github.com/tmilewski
tmilewski https://github.com/tmilewski
https://github.com/clerk/javascript/pull/2244/files/b34f243c6a460735630d2d0a08877b0b3547a54b
Please reload this pagehttps://github.com/clerk/javascript/pull/2244
https://github.com/LekoArts
LekoArts https://github.com/LekoArts
integration https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Aintegration
nextjs https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Anextjs
authMiddleware() corrupts response cookies, only emits first one in local dev https://github.com/clerk/javascript/issues/1897
Please reload this pagehttps://github.com/clerk/javascript/pull/2244
https://github.com/LekoArts
https://github.com/tmilewski
https://github.com/clerk-cookie
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.