@clerk/shared
4.45.1 · 14 Nov 2026MIT11.8M / weekRepositorynpmAtom feed
4.48.3 is the newest release of 4.x.
In short
1 deprecated2 fixed
- Deprecated
Deprecate passing
unsafeMetadatatouser.update().
Release note
Patch Changes
Migrate the build pipeline to tsdown and TypeScript 6.0. This is an internal tooling change with no intended changes to the public API or runtime behavior.
- Deprecated
Deprecate passing
unsafeMetadatatouser.update().Use
user.updateMetadata()when you want to partially update unsafe metadata with deep-merge semantics:await user.updateMetadata({ unsafeMetadata: { onboardingComplete: true }, });user.update({ unsafeMetadata })continues to work for now and preserves its existing full-replacement behavior:await user.update({ unsafeMetadata: { theme: 'dark' }, });New code should prefer
user.updateMetadata({ unsafeMetadata })for metadata-only updates. Restore resolvable TypeScript declarations. Type declarations are now emitted per-module at stable public paths instead of being bundled into content-hashed internal chunk files. This fixes type resolution failures (or silent
anydegradation) in packages whose declarations reference@clerk/sharedtypes, such as@clerk/vue,@clerk/react,@clerk/ui, and@clerk/testing, which previously pointed at unresolvable@clerk/shared/_chunks/*specifiers.
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.