@clerk/astro
4.1.27 · 18 Nov 2026MIT46.5k / weekRepositoryHomepagenpmAtom feed
4.1.30 is the newest release of 4.x.
In short
2 fixed2 internal
Release note
Patch Changes
Fix
$billingStoreso it emits the billing namespace only after Clerk has loaded. Before, it could emit whileclerk.load()was still running, so a call likegetPlans()in a subscriber could fail with adev_browser_unauthenticatederror on development instances.Fix
clerkMiddlewareso it inserts Clerk's tags only before the document's real</head>tag. It no longer matches</head>inside attribute values, comments, or the text of elements likescript,style,textarea,title, andnoscript, and it now finds a</head>tag that is split across streamed chunks. The server data now goes in<meta>tags, and clerk-js is preloaded with a<link>tag and loaded by the integration's page script.
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.