@clerk/astro
4.1.27 · 18 Nov 2026MIT46.5k / weekRepositoryHomepagenpmAtom feed
Upgrading @clerk/astro From 2.17.13 to 4.1.27
108 releases in betweenevery note read
Reading releases, release notes and advisories…
- 11
- changes to make
- 0
- advisories fixed
- 15
- new
- 23
- fixes
Start here
Before you upgrade
Tick each one off as you go- Breaking4.0.0
- Breaking4.0.0
- Breaking3.4.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
Security
- 4.0.21
Bump
nanoidto 5.1.16 to pick up an upstream security fix. - 3.4.19
Escape
<,>, and/when serializing the Clerk auth state into SSR<script>tags, preventing a</script>sequence inside user-controllable session claims from breaking out of the script element (stored XSS). The embedded JSON still parses to identical values on the client. - 3.0.13
Bump
astrodevDependency floor to5.18.1to pick up an upstream security fix.
Release by release
4.1.27nothing new or fixed in the note
- Fixed
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. - Fixed
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.
- Fixed
4.1.2 – 4.1.2524 releases, nothing new or fixed in the notes
- Fixed
Update the
nanostoresdependency to 1.5.1.
- Fixed
- New
Add an authenticated OAuth device verification component and workflow hook for approving or denying OAuth Device Authorization Grant requests.
- New
- Security
Bump
nanoidto 5.1.16 to pick up an upstream security fix.
- Security
4.0.15 – 4.0.206 releases, nothing new or fixed in the notes
- Fixed
Remove the Vite
optimizeDepstarget override, which is no longer needed and logged a deprecation warning on Astro 7.
- Fixed
2 other lines we could not sort, mostly version bumps
- 3.0.0
Renamed all
__unstable_*methods to__internal_*(for internal APIs) - 3.0.0
Renamed all
experimental__*andexperimental_*methods to__experimental_*(for beta features)
201 internal lines (docs, tests, tooling) left out.
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.