megachangelog
Improvement4.17.1

@clerk/shared@4.17.1

Internal build pipeline migrated to tsdown and TypeScript 6.0 with no API changes. The unsafeMetadata parameter in user.update() is now deprecated in favor of user.updateMetadata() for partial metadata updates. TypeScript type declarations are now properly resolvable per-module instead of bundled in hashed chunks, fixing type resolution in dependent packages like @clerk/vue, @clerk/react, @clerk/ui, and @clerk/testing.

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. (#8177) by @dstaley

  • Deprecate passing unsafeMetadata to user.update(). (#8587) by @brunol95

    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 any degradation) in packages whose declarations reference @clerk/shared types, such as @clerk/vue, @clerk/react, @clerk/ui, and @clerk/testing, which previously pointed at unresolvable @clerk/shared/_chunks/* specifiers. (#8811) by @jacekradko

typescriptbuildapideprecationtypes

Source: original entry ↗

More from Clerk

Follow Clerk to get its new changes in your feed and email digest.

Improvement1.17.26

@clerk/vue 1.17.26

Updated @clerk/types dependency to version 4.101.28.

vuedependenciespatch
Improvement1.13.34

@clerk/nuxt@1.13.34

Updated internal dependencies for @clerk/types, @clerk/backend, and @clerk/vue to latest patch versions.

nuxtdependenciespatch
Improvement1.14.11

@clerk/testing dependencies updated

Updated @clerk/types to 4.101.28 and @clerk/backend to 2.33.8 to ensure compatibility and include latest improvements.

dependenciestestingpatch
See all Clerk changes →