diff --git a/.changeset/four-days-hammer.md b/.changeset/four-days-hammer.md new file mode 100644 index 00000000000..ed99930ea93 --- /dev/null +++ b/.changeset/four-days-hammer.md @@ -0,0 +1,15 @@ +--- +"@clerk/astro": patch +--- + +Simplify submodules and drop the `bunlded` variant. + +Moved +- `@clerk/astro/client/react` to `@clerk/astro/react` +- `@clerk/astro/client/stores` to `@clerk/astro/client` +Dropped +- `@clerk/astro/bundled` +- `@clerk/astro/client/bundled` +- `@clerk/astro/internal/bundled` +- `@clerk/astro/integration` +- `@clerk/astro/integration/bundled` diff --git a/integration/templates/astro-node/src/components/SignOutReact.tsx b/integration/templates/astro-node/src/components/SignOutReact.tsx index 19a2d1a7c4c..37f46e88367 100644 --- a/integration/templates/astro-node/src/components/SignOutReact.tsx +++ b/integration/templates/astro-node/src/components/SignOutReact.tsx @@ -1,4 +1,4 @@ -import { useAuth } from '@clerk/astro/client/react'; +import { useAuth } from '@clerk/astro/react'; import React from 'react'; import { type PropsWithChildren } from 'react'; diff --git a/integration/templates/astro-node/src/components/page-with-user.tsx b/integration/templates/astro-node/src/components/page-with-user.tsx index 547c01ee7b9..1650b626077 100644 --- a/integration/templates/astro-node/src/components/page-with-user.tsx +++ b/integration/templates/astro-node/src/components/page-with-user.tsx @@ -1,6 +1,6 @@ import React, { type PropsWithChildren, useSyncExternalStore } from 'react'; -import { UserProfile } from '@clerk/astro/client/react'; -import { $userStore } from '@clerk/astro/client/stores'; +import { UserProfile } from '@clerk/astro/react'; +import { $userStore } from '@clerk/astro/client'; export function PageWithUser({ children }: PropsWithChildren) { const user = useSyncExternalStore($userStore.listen, $userStore.get, $userStore.get); diff --git a/integration/templates/astro-node/src/layouts/react/Layout.astro b/integration/templates/astro-node/src/layouts/react/Layout.astro index 84f6aedcff8..2f076c64d38 100644 --- a/integration/templates/astro-node/src/layouts/react/Layout.astro +++ b/integration/templates/astro-node/src/layouts/react/Layout.astro @@ -5,7 +5,7 @@ interface Props { const { title } = Astro.props; -import { SignedIn, SignedOut, UserButton } from "@clerk/astro/client/react"; +import { SignedIn, SignedOut, UserButton } from "@clerk/astro/react"; import { LanguagePicker } from "../../components/LanguagePicker"; --- diff --git a/integration/templates/astro-node/src/lib/astro-components/SignOutButton.astro b/integration/templates/astro-node/src/lib/astro-components/SignOutButton.astro index 8a689d6858b..07371b385ac 100644 --- a/integration/templates/astro-node/src/lib/astro-components/SignOutButton.astro +++ b/integration/templates/astro-node/src/lib/astro-components/SignOutButton.astro @@ -12,7 +12,7 @@ interface Props extends SignOutOptions {