JavaScript SDK
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
-
Updated dependencies [
cdb940a,b5fa9f6,f046c49,b5fa9f6,3d5b2fe]:- @clerk/backend@3.7.0
- @clerk/shared@4.17.1
- @clerk/react@6.9.1
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
unsafeMetadatatouser.update(). (#8587) by @brunol95Use
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. (#8811) by @jacekradko
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
-
Updated dependencies [
cdb940a,b5fa9f6,f046c49,b5fa9f6,3d5b2fe]:- @clerk/backend@3.7.0
- @clerk/shared@4.17.1
- @clerk/react@6.9.1
Minor Changes
-
Add
clerkClient.organizations.replaceOrganizationMetadata(organizationId, params)for replacing an organization's metadata fields in full. (#8787) by @brunol95Use
replaceOrganizationMetadatawhen the provided metadata should become the complete value for that metadata field:await clerkClient.organizations.replaceOrganizationMetadata(organizationId, { publicMetadata: { plan: 'pro' }, });Use
clerkClient.organizations.updateOrganizationMetadata(organizationId, params)when you want to partially update metadata with deep-merge semantics:await clerkClient.organizations.updateOrganizationMetadata(organizationId, { publicMetadata: { onboardingComplete: true }, });The
publicMetadataandprivateMetadataparameters onclerkClient.organizations.updateOrganization()are now deprecated. They continue to work, but new code should useupdateOrganizationMetadata()for partial updates orreplaceOrganizationMetadata()for full replacement. -
Add
clerkClient.users.replaceUserMetadata(userId, params)for replacing a user's metadata fields in full. (#8587) by @brunol95Use
replaceUserMetadatawhen the provided metadata should become the complete value for that metadata field:await clerkClient.users.replaceUserMetadata(userId, { publicMetadata: { plan: 'pro' }, });Use
clerkClient.users.updateUserMetadata(userId, params)when you want to partially update metadata with deep-merge semantics:await clerkClient.users.updateUserMetadata(userId, { publicMetadata: { onboardingComplete: true }, });The
publicMetadata,privateMetadata, andunsafeMetadataparameters onclerkClient.users.updateUser()are now deprecated. They continue to work, but new code should useupdateUserMetadata()for partial updates orreplaceUserMetadata()for full replacement.
Patch Changes
Patch Changes
-
Bump the bundled
clerk-iosSDK from1.2.1to1.2.2. See the Clerk iOS release: https://github.com/clerk/clerk-ios/releases/tag/1.2.2. (#8826) by @clerk-cookie -
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
-
Updated dependencies [
f046c49,b5fa9f6,3d5b2fe]:- @clerk/clerk-js@6.16.1
- @clerk/shared@4.17.1
- @clerk/react@6.9.1
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
-
Updated dependencies [
cdb940a,b5fa9f6,f046c49,b5fa9f6,3d5b2fe]:- @clerk/backend@3.7.0
- @clerk/shared@4.17.1
- @clerk/vue@2.4.2
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
-
Updated dependencies [
d0ed42f,f046c49,b5fa9f6,3d5b2fe]:- @clerk/ui@1.16.1
- @clerk/clerk-js@6.16.1
- @clerk/shared@4.17.1
- @clerk/react@6.9.1
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
-
Updated dependencies [
cdb940a,b5fa9f6,f046c49,b5fa9f6,3d5b2fe]:- @clerk/backend@3.7.0
- @clerk/shared@4.17.1
- @clerk/react@6.9.1
Patch Changes
-
Fix checkout button label showing "Start free trial" when adding seats during a free trial period (#8829) by @mauricioabreu
-
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
-
Updated dependencies [
f046c49,b5fa9f6,3d5b2fe]:- @clerk/localizations@4.8.1
- @clerk/shared@4.17.1
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
unsafeMetadatatouser.update(). (#8587) by @brunol95Use
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. -
Updated dependencies [
f046c49,b5fa9f6,3d5b2fe]:- @clerk/shared@4.17.1
Minor Changes
- Add support for Clerk Billing plans with per-seat costs. (#8629) by @dstaley
- New invite-to-checkout flow when inviting members while on a plan that uses per-seat costs.
- New localization values to support UI additions.
- Support for the
orgIdandminSeatsparameters togetPlans(). - Support for the
seatsQuantityandpriceIdparameters to checkout creation. - New
totalsfield on payments. - New
availablePricesfield on plans. - New
nextPaymentfield on subscription items. - New
discountsfield on checkouts. - Additional fields on
nextPaymentfor more granularity.
Patch Changes
- Updated dependencies [
a5c7bc7]:- @clerk/shared@4.17.0
