@clerk/astro
4.1.27 · 18 Nov 2026MIT46.5k / weekRepositoryHomepagenpmAtom feed
0.0.4 is the newest release of 0.0.x.
In short
3 new4 fixed4 internal
Security
1 advisory affects 0.0.3; 1.5.7 fixes them
- CriticalOfficial Clerk JavaScript SDKs: Middleware-based route protection bypassGHSA-vqx2-fgx2-5wq9 · 16 Apr 2026Fixed in 1.5.7
Release note
The section about @clerk/astro of a note shared by several packages.
Patch Changes
Update existing env variables that is still using
PUBLIC_ASTRO_APPprefix toPUBLIC_.Move
@clerk/astro/components/*to@clerk/astro/components- import { UserProfile } from "@clerk/astro/components/interactive" + import { UserProfile } from "@clerk/astro/components" - import { Protect } from "@clerk/astro/components/control" + import { Protect } from "@clerk/astro/components" - import { SignInButton } from "@clerk/astro/components/unstyled" + import { SignInButton } from "@clerk/astro/components"Simplify submodules and drop the
bundledvariant.Moved
@clerk/astro/client/reactto@clerk/astro/react@clerk/astro/client/storesto@clerk/astro/client
Dropped@clerk/astro/bundled@clerk/astro/client/bundled@clerk/astro/internal/bundled@clerk/astro/integration@clerk/astro/integration/bundled
Support
Astro.locals.auth().redirectToSignIn()This allows for redirectingToSignIn at the page level
Add a reusable ID generation function
Remove
@nanostores/reactfrom dependency.Introduce
<AuthenticateWithRedirectCallback/>as an Astro and as a React component
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.