Packages

@clerk/astro

4.1.27 · 18 Nov 2026MIT46.5k / weekRepositoryHomepagenpmAtom feed

Upgrading @clerk/astro From 3.0.23 to 4.1.27

82 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 3.0.23Newest 3.x3.4.20
  1. 3.0.23yours
  2. 12 releases
  3. 3.4.0breaking
  4. 18 releases
  5. 3.4.19security
  6. 1 release
  7. 4.0.0major
  8. 19 releases
  9. 4.0.21security
  10. 27 releases
  11. 4.1.27target
  12. 845 pre

Start here

Before you upgrade

Tick each one off as you go
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking3.4.0
  • Deprecated3.4.8

Security

  • Bump nanoid to 5.1.16 to pick up an upstream security fix.

    4.0.21
  • 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.4.19

Release by release

  1. 4.1.27nothing new or fixed in the note

  2. 4.1.26

    18 Nov 20262 fixes
    • Fixed

      Fix $billingStore so it emits the billing namespace only after Clerk has loaded. Before, it could emit while clerk.load() was still running, so a call like getPlans() in a subscriber could fail with a dev_browser_unauthenticated error on development instances.

    • Fixed

      Fix clerkMiddleware so 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 like script, style, textarea, title, and noscript, 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.

  3. 4.1.2 – 4.1.2524 releases, nothing new or fixed in the notes

  4. 4.1.1

    9 Sep 20261 fix
    • Fixed

      Update the nanostores dependency to 1.5.1.

  5. 4.1.0

    2 Sep 20261 new
    • New

      Add an authenticated OAuth device verification component and workflow hook for approving or denying OAuth Device Authorization Grant requests.

  6. 4.0.21

    Security fix1 Sep 2026
    • Security

      Bump nanoid to 5.1.16 to pick up an upstream security fix.

  7. 4.0.15 – 4.0.206 releases, nothing new or fixed in the notes

  8. 4.0.14

    18 Aug 20261 fix
    • Fixed

      Remove the Vite optimizeDeps target override, which is no longer needed and logged a deprecation warning on Astro 7.

153 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.