-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Deprecate
ClerkLayout
Astro component (#175)
- Loading branch information
1 parent
dbc696b
commit 211f86b
Showing
4 changed files
with
24 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"astro-clerk-auth": minor | ||
--- | ||
|
||
Deprecate `ClerkLayout` Astro component. It's usage it is no longer needed as this is now handled my `clerkMiiddleware`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 9 additions & 2 deletions
11
packages/astro-clerk-auth/src/astro-components/control/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
// The `ts-ignore` comments here are necessary because we're importing this file inside the `astro:components` | ||
// virtual module's types, which means that `tsc` will try to resolve these imports. Don't mind the editor errors. | ||
|
||
// @ts-ignore | ||
export { default as ClerkLayout } from './ClerkLayout.astro'; | ||
import { default as ClerkLayoutDeprecated } from './ClerkLayout.astro'; | ||
|
||
/** | ||
* @deprecated It's usage is no longer necessary, it can be safely removed. | ||
*/ | ||
const ClerkLayout = ClerkLayoutDeprecated; | ||
|
||
export { ClerkLayout }; | ||
// @ts-ignore | ||
export { default as SignedIn } from './SignedIn.astro'; | ||
// @ts-ignore | ||
export { default as SignedOut } from './SignedOut.astro'; | ||
// @ts-ignore | ||
export { default as Protect } from './Protect.astro'; | ||
|