@clerk/astro
4.1.27 · 18 Nov 2026MIT46.5k / weekRepositoryHomepagenpmAtom feed
2.17.18 is the newest release of 2.x.
In short
1 deprecated3 internal
- Deprecated
Deprecate
@clerk/typesin favor of@clerk/shared/types
Security
2 advisories affect 2.14.3; 2.17.11 fixes them
- CriticalOfficial Clerk JavaScript SDKs: Middleware-based route protection bypassGHSA-vqx2-fgx2-5wq9 · 16 Apr 2026Fixed in 2.17.10
- HighClerk has an authorization bypass when combining organization, billing, or reverification checksGHSA-w24r-5266-9c3c · 30 Apr 2026Fixed in 2.17.11
Release note
Patch Changes
- Deprecated
Deprecate
@clerk/typesin favor of@clerk/shared/typesThe
@clerk/typespackage is now deprecated. All type definitions have been consolidated and moved to@clerk/shared/typesto improve consistency across the Clerk ecosystem.Backward Compatibility:
The
@clerk/typespackage will remain available and will continue to re-export all types from@clerk/shared/typesto ensure backward compatibility. Existing applications will continue to work without any immediate breaking changes. However, we strongly recommend migrating to@clerk/shared/typesas new type definitions and updates will only be added to@clerk/shared/typesstarting with the next major release.Migration Steps:
Please update your imports from
@clerk/typesto@clerk/shared/types:// Before import type { ClerkResource, UserResource } from '@clerk/types'; // After import type { ClerkResource, UserResource } from '@clerk/shared/types';What Changed:
All type definitions including:
Resource types (User, Organization, Session, etc.)
API response types
Configuration types
Authentication types
Error types
And all other shared types
Have been moved from
packages/types/srctopackages/shared/src/typesand are now exported via@clerk/shared/types.
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.