Skip to content

Commit

Permalink
feat(nextjs): Export MultisessionAppSupport from @clerk/nextjs/internal
Browse files Browse the repository at this point in the history
  • Loading branch information
nikosdouvlis committed Jan 11, 2024
1 parent 36b03dd commit 110ef9a
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/wild-emus-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/nextjs': patch
---

Export MultisessionAppSupport from @clerk/nextjs/internal
5 changes: 5 additions & 0 deletions packages/nextjs/internal/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"main": "../dist/cjs/internal.js",
"module": "../dist/esm/internal.js",
"types": "../dist/types/internal.d.ts"
}
5 changes: 5 additions & 0 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
"types": "./dist/types/errors.d.ts",
"import": "./dist/esm/errors.js",
"require": "./dist/cjs/errors.js"
},
"./internal": {
"types": "./dist/types/internal.d.ts",
"import": "./dist/esm/internal.js",
"require": "./dist/cjs/internal.js"
}
},
"types": "./dist/types/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions packages/nextjs/src/client-boundary/controlComponents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ export {
RedirectToCreateOrganization,
RedirectToOrganizationProfile,
} from '@clerk/clerk-react';

export { MultisessionAppSupport } from '@clerk/clerk-react/internal';
5 changes: 5 additions & 0 deletions packages/nextjs/src/internal.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/**
* These need to be explicitly listed. Do not use an * here.
* If you do, app router will break.
*/
export { MultisessionAppSupport } from './client-boundary/controlComponents';

0 comments on commit 110ef9a

Please sign in to comment.