Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
main
is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exit
onmain
.Releases
@clerk/backend@1.0.0-alpha-v5.1
Major Changes
Drop default exports from all packages. Migration guide: (#2150) by @dimkl
import { Clerk } from '@clerk/backend';
import { clerkInstance } from '@clerk/clerk-sdk-node';
import { Clerk } from '@clerk/clerk-sdk-node';
import { Clerk } from '@clerk/clerk-js';
import { Clerk } from '@clerk/clerk-js/headless';
import { IsomorphicClerk } from '@clerk/clerk-react'
Change the response payload of Backend API requests to return
{ data, errors }
instead of return the data and throwing on error response. (#2126) by @dimklCode example to keep the same behavior:
Enforce passing
request
param toauthenticateRequest
method of@clerk/backend
(#2122) by @dimklinstead of passing each header or cookie related option that is used internally to
determine the request state.
Migration guide:
request
param inclerkClient.authenticateRequest()
instead of:origin
host
forwardedHost
forwardedProto
referrer
userAgent
cookieToken
clientUat
headerToken
searchParams
Example
Drop deprecated properties. Migration steps: (#1899) by @dimkl
createClerkClient
instead of__unstable_options
publishableKey
instead offrontendApi
clockSkewInMs
instead ofclockSkewInSeconds
apiKey
instead ofsecretKey
httpOptions
*.image
instead ofExternalAccount.picture
ExternalAccountJSON.avatar_url
Organization.logoUrl
OrganizationJSON.logo_url
User.profileImageUrl
UserJSON.profile_image_url
OrganizationMembershipPublicUserData.profileImageUrl
OrganizationMembershipPublicUserDataJSON.profile_image_url
pkgVersion
Organization.getOrganizationInvitationList
withstatus
instead ofgetPendingOrganizationInvitationList
orgs
claim (if required, can be manually added by usinguser.organizations
in a jwt template)localInterstitial
instead ofremotePublicInterstitial
/remotePublicInterstitialUrl
Internal changes:
SetClerkSecretKeyOrAPIKey
withSetClerkSecretKey
Patch Changes
Strip
experimental__has
from the auth object inmakeAuthObjectSerializable()
. This fixes an issue in Next.js where an error is being thrown when this function is passed to a client component as a prop. (#2101) by @BRKalowUpdated dependencies [
64d3763ec
,83e9d0846
,7f833da9e
,492b8a7b1
,0d1052ac2
,5471c7e8d
,e0e79b4fe
]:@clerk/chrome-extension@1.0.0-alpha-v5.1
Major Changes
Drop default exports from all packages. Migration guide: (#2150) by @dimkl
import { Clerk } from '@clerk/backend';
import { clerkInstance } from '@clerk/clerk-sdk-node';
import { Clerk } from '@clerk/clerk-sdk-node';
import { Clerk } from '@clerk/clerk-js';
import { Clerk } from '@clerk/clerk-js/headless';
import { IsomorphicClerk } from '@clerk/clerk-react'
Drop deprecations. Migration steps: (#2082) by @dimkl
publishableKey
instead offrontendApi
Clerk.handleEmailLinkVerification()
instead ofClerk.handleMagicLinkVerification()
isEmailLinkError
instead ofisMagicLinkError
EmailLinkErrorCode
instead ofMagicLinkErrorCode
useEmailLink
instead ofuseMagicLink
orgs
jwt claim from session tokenExternalAccount.imageUrl
instead ofExternalAccount.avatarUrl
Organization.imageUrl
instead ofOrganization.logoUrl
User.imageUrl
instead ofUser.profileImageUrl
OrganizationMembershipPublicUserData.imageUrl
instead ofOrganizationMembershipPublicUserData.profileImageUrl
useOrganizationList
instead ofuseOrganizations
userProfileProps
instead ofuserProfile
inAppearance
Clerk.setActive()
instead ofClerk.setSession()
password
param inUser.update()
afterSelectOrganizationUrl
instead ofafterSwitchOrganizationUrl
inOrganizationSwitcher
Clerk.experimental_canUseCaptcha
/Clerk.Clerk.experimental_captchaSiteKey
/Clerk.experimental_captchaURL
(were meant for internal use)User.getOrganizationMemberships()
instead ofClerk.getOrganizationMemberships()
lastOrganizationInvitation
/lastOrganizationMember
from Clerk emitted eventsClerk.__unstable__invitationUpdate
/Clerk.__unstable__membershipUpdate
Organization.create()
Organization.getInvitations()
instead ofOrganization.getPendingInvitations()
pageSize
instead oflimit
inOrganizationMembership.retrieve()
initialPage
instead ofoffset
inOrganizationMembership.retrieve()
lastOrganizationInvitation
/lastOrganizationMember
from ClerkProviderinvitations
instead ofinvitationList
inuseOrganization
memberships
instead ofmembershipList
inuseOrganization
redirectUrl
instead ofredirect_url
inUser.createExternalAccount()
signature
instead ofgeneratedSignature
inSignup.attemptWeb3WalletVerification()
Drop deprecations. Migration steps: (#1993) by @dimkl
setActive
instead ofsetSession
fromuseSessionList | useSignUp | useSignIn
hookspublishableKey
instead offrontendApi
handleEmailLinkVerification
instead ofhandleMagicLinkVerification
fromIsomorphicClerk
isEmailLinkError
instead ofisMagicLinkError
EmailLinkErrorCode
instead ofMagicLinkErrorCode
useEmailLink
instead ofuseMagicLink
Patch Changes
1ddffb67e
,64d3763ec
,deac67c1c
,034abeb76
,83e9d0846
,08dd88c4a
,5f49568f6
,e400fa9e3
,7f833da9e
,9e10d577e
,27052469e
,492b8a7b1
,d005992e0
,2a22aade8
,f77e8cdbd
,b0ca7b801
,d1b524ffb
,db3eefe8c
,0d1052ac2
,5471c7e8d
,477170962
,59336d3d4
,e0e79b4fe
,3c4209068
]:@clerk/clerk-js@5.0.0-alpha-v5.1
Major Changes
Drop default exports from all packages. Migration guide: (#2150) by @dimkl
import { Clerk } from '@clerk/backend';
import { clerkInstance } from '@clerk/clerk-sdk-node';
import { Clerk } from '@clerk/clerk-sdk-node';
import { Clerk } from '@clerk/clerk-js';
import { Clerk } from '@clerk/clerk-js/headless';
import { IsomorphicClerk } from '@clerk/clerk-react'
Drop deprecations. Migration steps: (#2082) by @dimkl
publishableKey
instead offrontendApi
Clerk.handleEmailLinkVerification()
instead ofClerk.handleMagicLinkVerification()
isEmailLinkError
instead ofisMagicLinkError
EmailLinkErrorCode
instead ofMagicLinkErrorCode
useEmailLink
instead ofuseMagicLink
orgs
jwt claim from session tokenExternalAccount.imageUrl
instead ofExternalAccount.avatarUrl
Organization.imageUrl
instead ofOrganization.logoUrl
User.imageUrl
instead ofUser.profileImageUrl
OrganizationMembershipPublicUserData.imageUrl
instead ofOrganizationMembershipPublicUserData.profileImageUrl
useOrganizationList
instead ofuseOrganizations
userProfileProps
instead ofuserProfile
inAppearance
Clerk.setActive()
instead ofClerk.setSession()
password
param inUser.update()
afterSelectOrganizationUrl
instead ofafterSwitchOrganizationUrl
inOrganizationSwitcher
Clerk.experimental_canUseCaptcha
/Clerk.Clerk.experimental_captchaSiteKey
/Clerk.experimental_captchaURL
(were meant for internal use)User.getOrganizationMemberships()
instead ofClerk.getOrganizationMemberships()
lastOrganizationInvitation
/lastOrganizationMember
from Clerk emitted eventsClerk.__unstable__invitationUpdate
/Clerk.__unstable__membershipUpdate
Organization.create()
Organization.getInvitations()
instead ofOrganization.getPendingInvitations()
pageSize
instead oflimit
inOrganizationMembership.retrieve()
initialPage
instead ofoffset
inOrganizationMembership.retrieve()
lastOrganizationInvitation
/lastOrganizationMember
from ClerkProviderinvitations
instead ofinvitationList
inuseOrganization
memberships
instead ofmembershipList
inuseOrganization
redirectUrl
instead ofredirect_url
inUser.createExternalAccount()
signature
instead ofgeneratedSignature
inSignup.attemptWeb3WalletVerification()
Minor Changes
Introducing sign out from all open tabs at once. (#2094) by @octoper
Introducing default values for
allowedRedirectOrigins
. If no value is provided, default values similar to the example below will apply. (#2128) by @octoperLet's assume the host of the application is
test.host
, the origins will behttps://test.host/
https://yourawesomeapp.clerk.accounts.dev/
https://*.yourawesomeapp.clerk.accounts.dev/
Increase the duration until data become stale for organization hooks. (#2093) by @panteliselef
Handle user_locked error encountered in an oauth flow by redirecting to /sign-up or /sign-in (#2019) by @yourtallness
Add a private __navigateWithError util function to clerk for use in User Lockout scenarios (#2043) by @yourtallness
Move and export the following from @clerk/clerk-js and @clerk/nextjs to @clerk/shared: (#2149) by @dimkl
Patch Changes
A bug fix for prefetching data for OrganizationSwitcher and correctly displaying a notification count in the switcher as well. (#2147) by @panteliselef
Fix incorrect pagination counters in data tables inside
<OrganizationProfile/>
. (#2056) by @panteliselefUse strict equality operator to check for lockout errors in handleRedirectCallback (#2072) by @yourtallness
Emit session when permissions or role of the active memberships change. (#2073) by @panteliselef
Return reject(err) in factor one & two code forms (#2080) by @yourtallness
Use
userMemberships
instead oforganizationList
inside<OrganizationSwitcher/>
. (#2118) by @panteliselefRequire role to be selected before sending organization invite, affects
<OrganizationProfile/>
and `. (#2129) by @panteliselefAdd Autocomplete TS generic for union literals (#2132) by @tmilewski
Refactor of internal input group, password field, and checkbox inputs in forms. (#2087) by @panteliselef
Refactor of internal radio input in forms. (#2034) by @panteliselef
Refresh invited members upon revocation (#2058) by @tmilewski
Updated dependencies [
64d3763ec
,83e9d0846
,7f833da9e
,492b8a7b1
,b473ad862
,2a22aade8
,f77e8cdbd
,0d1052ac2
,5471c7e8d
,477170962
,e0e79b4fe
]:@clerk/clerk-expo@1.0.0-alpha-v5.1
Major Changes
Drop default exports from all packages. Migration guide: (#2150) by @dimkl
import { Clerk } from '@clerk/backend';
import { clerkInstance } from '@clerk/clerk-sdk-node';
import { Clerk } from '@clerk/clerk-sdk-node';
import { Clerk } from '@clerk/clerk-js';
import { Clerk } from '@clerk/clerk-js/headless';
import { IsomorphicClerk } from '@clerk/clerk-react'
Drop deprecations. Migration steps: (#2082) by @dimkl
publishableKey
instead offrontendApi
Clerk.handleEmailLinkVerification()
instead ofClerk.handleMagicLinkVerification()
isEmailLinkError
instead ofisMagicLinkError
EmailLinkErrorCode
instead ofMagicLinkErrorCode
useEmailLink
instead ofuseMagicLink
orgs
jwt claim from session tokenExternalAccount.imageUrl
instead ofExternalAccount.avatarUrl
Organization.imageUrl
instead ofOrganization.logoUrl
User.imageUrl
instead ofUser.profileImageUrl
OrganizationMembershipPublicUserData.imageUrl
instead ofOrganizationMembershipPublicUserData.profileImageUrl
useOrganizationList
instead ofuseOrganizations
userProfileProps
instead ofuserProfile
inAppearance
Clerk.setActive()
instead ofClerk.setSession()
password
param inUser.update()
afterSelectOrganizationUrl
instead ofafterSwitchOrganizationUrl
inOrganizationSwitcher
Clerk.experimental_canUseCaptcha
/Clerk.Clerk.experimental_captchaSiteKey
/Clerk.experimental_captchaURL
(were meant for internal use)User.getOrganizationMemberships()
instead ofClerk.getOrganizationMemberships()
lastOrganizationInvitation
/lastOrganizationMember
from Clerk emitted eventsClerk.__unstable__invitationUpdate
/Clerk.__unstable__membershipUpdate
Organization.create()
Organization.getInvitations()
instead ofOrganization.getPendingInvitations()
pageSize
instead oflimit
inOrganizationMembership.retrieve()
initialPage
instead ofoffset
inOrganizationMembership.retrieve()
lastOrganizationInvitation
/lastOrganizationMember
from ClerkProviderinvitations
instead ofinvitationList
inuseOrganization
memberships
instead ofmembershipList
inuseOrganization
redirectUrl
instead ofredirect_url
inUser.createExternalAccount()
signature
instead ofgeneratedSignature
inSignup.attemptWeb3WalletVerification()
Patch Changes
1ddffb67e
,64d3763ec
,deac67c1c
,034abeb76
,83e9d0846
,08dd88c4a
,5f49568f6
,e400fa9e3
,7f833da9e
,9e10d577e
,27052469e
,492b8a7b1
,d005992e0
,2a22aade8
,f77e8cdbd
,b0ca7b801
,d1b524ffb
,db3eefe8c
,0d1052ac2
,5471c7e8d
,477170962
,59336d3d4
,e0e79b4fe
,3c4209068
]:gatsby-plugin-clerk@5.0.0-alpha-v5.1
Major Changes
Drop deprecations. Migration steps: (#2109) by @dimkl
orgs
jwt claim from session tokenauth
param ofwithServerAuth()
callback toAuthObject
fromServerSideAuth
ingatsby-clerk-plugin
auth.sessionClaims
instead ofauth.claims
AuthObject
properties fromauth
publishableKey
instead offrontendApi
ClerkProviderOptionsWrapper
type instead ofIsomorphicClerkOptions
Patch Changes
deac67c1c
,83e9d0846
,7f833da9e
,2a22aade8
,dd5703013
,ee432df4e
,9615e6cda
,cace85374
,477170962
,e0e79b4fe
,3c4209068
,a6451aece
]:@clerk/localizations@2.0.0-alpha-v5.1
Major Changes
Drop deprecations. Migration steps: (#2151) by @dimkl
formFieldLabel__emailAddress_phoneNumber
from localization keysformFieldLabel__phoneNumber_username
from localization keysformFieldLabel__emailAddress_phoneNumber_username
from localization keysformFieldInputPlaceholder__emailAddress_phoneNumber
from localization keysformFieldInputPlaceholder__phoneNumber_username
from localization keysformFieldInputPlaceholder__emailAddress_phoneNumber_username
from localization keystitle__connectionFailed
instead oftitle__conectionFailed
from localization keysactionLabel__connectionFailed
instead ofactionLabel__conectionFailed
from localization keysheaderTitle__members
instead ofheaderTitle__active
from localization keysheaderTitle__invitations
instead ofheaderTitle__invited
from localization keyscreateOrganization.subtitle
from localization keysdeDE
instead ofdeDe
localization from@clerk/localizations
Patch Changes
@clerk/nextjs@5.0.0-alpha-v5.1
Major Changes
Drop deprecations. Migration steps: (#2082) by @dimkl
publishableKey
instead offrontendApi
Clerk.handleEmailLinkVerification()
instead ofClerk.handleMagicLinkVerification()
isEmailLinkError
instead ofisMagicLinkError
EmailLinkErrorCode
instead ofMagicLinkErrorCode
useEmailLink
instead ofuseMagicLink
orgs
jwt claim from session tokenExternalAccount.imageUrl
instead ofExternalAccount.avatarUrl
Organization.imageUrl
instead ofOrganization.logoUrl
User.imageUrl
instead ofUser.profileImageUrl
OrganizationMembershipPublicUserData.imageUrl
instead ofOrganizationMembershipPublicUserData.profileImageUrl
useOrganizationList
instead ofuseOrganizations
userProfileProps
instead ofuserProfile
inAppearance
Clerk.setActive()
instead ofClerk.setSession()
password
param inUser.update()
afterSelectOrganizationUrl
instead ofafterSwitchOrganizationUrl
inOrganizationSwitcher
Clerk.experimental_canUseCaptcha
/Clerk.Clerk.experimental_captchaSiteKey
/Clerk.experimental_captchaURL
(were meant for internal use)User.getOrganizationMemberships()
instead ofClerk.getOrganizationMemberships()
lastOrganizationInvitation
/lastOrganizationMember
from Clerk emitted eventsClerk.__unstable__invitationUpdate
/Clerk.__unstable__membershipUpdate
Organization.create()
Organization.getInvitations()
instead ofOrganization.getPendingInvitations()
pageSize
instead oflimit
inOrganizationMembership.retrieve()
initialPage
instead ofoffset
inOrganizationMembership.retrieve()
lastOrganizationInvitation
/lastOrganizationMember
from ClerkProviderinvitations
instead ofinvitationList
inuseOrganization
memberships
instead ofmembershipList
inuseOrganization
redirectUrl
instead ofredirect_url
inUser.createExternalAccount()
signature
instead ofgeneratedSignature
inSignup.attemptWeb3WalletVerification()
Drop deprecations. Migration steps: (#2109) by @dimkl
orgs
jwt claim from session tokenauth
param ofwithServerAuth()
callback toAuthObject
fromServerSideAuth
ingatsby-clerk-plugin
auth.sessionClaims
instead ofauth.claims
AuthObject
properties fromauth
publishableKey
instead offrontendApi
ClerkProviderOptionsWrapper
type instead ofIsomorphicClerkOptions
Change the response payload of Backend API requests to return
{ data, errors }
instead of return the data and throwing on error response. (#2126) by @dimklCode example to keep the same behavior:
Minor Changes
Move and export the following from @clerk/clerk-js and @clerk/nextjs to @clerk/shared: (#2149) by @dimkl
Patch Changes
Fixes the docs link pointing to clerk.com/docs in the
authAuthHeaderMissing
error by removing the trailing.
(#2077) by @marcadrian-itAdd Autocomplete TS generic for union literals (#2132) by @tmilewski
Updated dependencies [
64d3763ec
,deac67c1c
,83e9d0846
,7f833da9e
,492b8a7b1
,2a22aade8
,dd5703013
,9615e6cda
,cace85374
,0d1052ac2
,5471c7e8d
,477170962
,e0e79b4fe
,3c4209068
,a6451aece
]:@clerk/clerk-react@5.0.0-alpha-v5.1
Major Changes
Drop default exports from all packages. Migration guide: (#2150) by @dimkl
import { Clerk } from '@clerk/backend';
import { clerkInstance } from '@clerk/clerk-sdk-node';
import { Clerk } from '@clerk/clerk-sdk-node';
import { Clerk } from '@clerk/clerk-js';
import { Clerk } from '@clerk/clerk-js/headless';
import { IsomorphicClerk } from '@clerk/clerk-react'
Drop deprecations. Migration steps: (#2102) by @dimkl
EmailLinkError
instead ofMagicLinkError
isEmailLinkError
instead ofisMagicLinkError
EmailLinkErrorCode
instead ofMagicLinkErrorCode
useEmailLink
instead ofuseMagicLink
buildRequestUrl
from@clerk/backend
instead ofgetRequestUrl
from@clerk/shared
OrganizationProvider
instead ofOrganizationContext
userMemberships
instead oforganizationList
fromuseOrganizationList
Drop deprecations. Migration steps: (#2082) by @dimkl
publishableKey
instead offrontendApi
Clerk.handleEmailLinkVerification()
instead ofClerk.handleMagicLinkVerification()
isEmailLinkError
instead ofisMagicLinkError
EmailLinkErrorCode
instead ofMagicLinkErrorCode
useEmailLink
instead ofuseMagicLink
orgs
jwt claim from session tokenExternalAccount.imageUrl
instead ofExternalAccount.avatarUrl
Organization.imageUrl
instead ofOrganization.logoUrl
User.imageUrl
instead ofUser.profileImageUrl
OrganizationMembershipPublicUserData.imageUrl
instead ofOrganizationMembershipPublicUserData.profileImageUrl
useOrganizationList
instead ofuseOrganizations
userProfileProps
instead ofuserProfile
inAppearance
Clerk.setActive()
instead ofClerk.setSession()
password
param inUser.update()
afterSelectOrganizationUrl
instead ofafterSwitchOrganizationUrl
inOrganizationSwitcher
Clerk.experimental_canUseCaptcha
/Clerk.Clerk.experimental_captchaSiteKey
/Clerk.experimental_captchaURL
(were meant for internal use)User.getOrganizationMemberships()
instead ofClerk.getOrganizationMemberships()
lastOrganizationInvitation
/lastOrganizationMember
from Clerk emitted eventsClerk.__unstable__invitationUpdate
/Clerk.__unstable__membershipUpdate
Organization.create()
Organization.getInvitations()
instead ofOrganization.getPendingInvitations()
pageSize
instead oflimit
inOrganizationMembership.retrieve()
initialPage
instead ofoffset
inOrganizationMembership.retrieve()
lastOrganizationInvitation
/lastOrganizationMember
from ClerkProviderinvitations
instead ofinvitationList
inuseOrganization
memberships
instead ofmembershipList
inuseOrganization
redirectUrl
instead ofredirect_url
inUser.createExternalAccount()
signature
instead ofgeneratedSignature
inSignup.attemptWeb3WalletVerification()
Drop deprecations. Migration steps: (#2109) by @dimkl
orgs
jwt claim from session tokenauth
param ofwithServerAuth()
callback toAuthObject
fromServerSideAuth
ingatsby-clerk-plugin
auth.sessionClaims
instead ofauth.claims
AuthObject
properties fromauth
publishableKey
instead offrontendApi
ClerkProviderOptionsWrapper
type instead ofIsomorphicClerkOptions
Drop deprecations. Migration steps: (#2151) by @dimkl
formFieldLabel__emailAddress_phoneNumber
from localization keysformFieldLabel__phoneNumber_username
from localization keysformFieldLabel__emailAddress_phoneNumber_username
from localization keysformFieldInputPlaceholder__emailAddress_phoneNumber
from localization keysformFieldInputPlaceholder__phoneNumber_username
from localization keysformFieldInputPlaceholder__emailAddress_phoneNumber_username
from localization keystitle__connectionFailed
instead oftitle__conectionFailed
from localization keysactionLabel__connectionFailed
instead ofactionLabel__conectionFailed
from localization keysheaderTitle__members
instead ofheaderTitle__active
from localization keysheaderTitle__invitations
instead ofheaderTitle__invited
from localization keyscreateOrganization.subtitle
from localization keysdeDE
instead ofdeDe
localization from@clerk/localizations
Drop deprecations. Migration steps: (#1993) by @dimkl
setActive
instead ofsetSession
fromuseSessionList | useSignUp | useSignIn
hookspublishableKey
instead offrontendApi
handleEmailLinkVerification
instead ofhandleMagicLinkVerification
fromIsomorphicClerk
isEmailLinkError
instead ofisMagicLinkError
EmailLinkErrorCode
instead ofMagicLinkErrorCode
useEmailLink
instead ofuseMagicLink
Patch Changes
Use the errorThrower shared utility when throwing errors (#1999) by @anagstef
Updated dependencies [
64d3763ec
,83e9d0846
,7f833da9e
,492b8a7b1
,2a22aade8
,f77e8cdbd
,0d1052ac2
,5471c7e8d
,477170962
,e0e79b4fe
]:@clerk/remix@4.0.0-alpha-v5.1
Major Changes
Drop deprecations. Migration steps: (#2109) by @dimkl
orgs
jwt claim from session tokenauth
param ofwithServerAuth()
callback toAuthObject
fromServerSideAuth
ingatsby-clerk-plugin
auth.sessionClaims
instead ofauth.claims
AuthObject
properties fromauth
publishableKey
instead offrontendApi
ClerkProviderOptionsWrapper
type instead ofIsomorphicClerkOptions
Patch Changes
64d3763ec
,deac67c1c
,83e9d0846
,7f833da9e
,492b8a7b1
,2a22aade8
,dd5703013
,9615e6cda
,cace85374
,0d1052ac2
,5471c7e8d
,477170962
,e0e79b4fe
,3c4209068
,a6451aece
]:@clerk/clerk-sdk-node@5.0.0-alpha-v5.1
Major Changes
Drop default exports from all packages. Migration guide: (#2150) by @dimkl
import { Clerk } from '@clerk/backend';
import { clerkInstance } from '@clerk/clerk-sdk-node';
import { Clerk } from '@clerk/clerk-sdk-node';
import { Clerk } from '@clerk/clerk-js';
import { Clerk } from '@clerk/clerk-js/headless';
import { IsomorphicClerk } from '@clerk/clerk-react'
Change the response payload of Backend API requests to return
{ data, errors }
instead of return the data and throwing on error response. (#2126) by @dimklCode example to keep the same behavior:
Drop deprecations. Migration steps: (#2021) by @dimkl
CLERK_SECRET_KEY
instead ofCLERK_API_KEY
env variablesecretKey
instead ofapiKey
CLERK_PUBLISHABLE_KEY
instead ofCLERK_FRONTEND_API
env variablepublishableKey
instead offrontendApi
createClerkClient
with options to create a new clerkClient instead of usingthe following setters:
setClerkApiVersion
setClerkHttpOptions
setClerkServerApiUrl
setClerkApiKey
@clerk/clerk-sdk-node
instead of@clerk/clerk-sdk-node/{cjs|esm}/instance
Extra:
Patch Changes
64d3763ec
,deac67c1c
,83e9d0846
,7f833da9e
,492b8a7b1
,dd5703013
,9615e6cda
,cace85374
,0d1052ac2
,5471c7e8d
,e0e79b4fe
,a6451aece
]:@clerk/shared@2.0.0-alpha-v5.1
Major Changes
Drop deprecations. Migration steps: (#2102) by @dimkl
EmailLinkError
instead ofMagicLinkError
isEmailLinkError
instead ofisMagicLinkError
EmailLinkErrorCode
instead ofMagicLinkErrorCode
useEmailLink
instead ofuseMagicLink
buildRequestUrl
from@clerk/backend
instead ofgetRequestUrl
from@clerk/shared
OrganizationProvider
instead ofOrganizationContext
userMemberships
instead oforganizationList
fromuseOrganizationList
Drop deprecations. Migration steps: (#2082) by @dimkl
publishableKey
instead offrontendApi
Clerk.handleEmailLinkVerification()
instead ofClerk.handleMagicLinkVerification()
isEmailLinkError
instead ofisMagicLinkError
EmailLinkErrorCode
instead ofMagicLinkErrorCode
useEmailLink
instead ofuseMagicLink
orgs
jwt claim from session tokenExternalAccount.imageUrl
instead ofExternalAccount.avatarUrl
Organization.imageUrl
instead ofOrganization.logoUrl
User.imageUrl
instead ofUser.profileImageUrl
OrganizationMembershipPublicUserData.imageUrl
instead ofOrganizationMembershipPublicUserData.profileImageUrl
useOrganizationList
instead ofuseOrganizations
userProfileProps
instead ofuserProfile
inAppearance
Clerk.setActive()
instead ofClerk.setSession()
password
param inUser.update()
afterSelectOrganizationUrl
instead ofafterSwitchOrganizationUrl
inOrganizationSwitcher
Clerk.experimental_canUseCaptcha
/Clerk.Clerk.experimental_captchaSiteKey
/Clerk.experimental_captchaURL
(were meant for internal use)User.getOrganizationMemberships()
instead ofClerk.getOrganizationMemberships()
lastOrganizationInvitation
/lastOrganizationMember
from Clerk emitted eventsClerk.__unstable__invitationUpdate
/Clerk.__unstable__membershipUpdate
Organization.create()
Organization.getInvitations()
instead ofOrganization.getPendingInvitations()
pageSize
instead oflimit
inOrganizationMembership.retrieve()
initialPage
instead ofoffset
inOrganizationMembership.retrieve()
lastOrganizationInvitation
/lastOrganizationMember
from ClerkProviderinvitations
instead ofinvitationList
inuseOrganization
memberships
instead ofmembershipList
inuseOrganization
redirectUrl
instead ofredirect_url
inUser.createExternalAccount()
signature
instead ofgeneratedSignature
inSignup.attemptWeb3WalletVerification()
Minor Changes
Increase the duration until data become stale for organization hooks. (#2093) by @panteliselef
Add a private __navigateWithError util function to clerk for use in User Lockout scenarios (#2043) by @yourtallness
Move and export the following from @clerk/clerk-js and @clerk/nextjs to @clerk/shared: (#2149) by @dimkl
Patch Changes
Fix incorrect pagination counters in data tables inside
<OrganizationProfile/>
. (#2056) by @panteliselefUse the errorThrower shared utility when throwing errors (#1999) by @anagstef
@clerk/types@4.0.0-alpha-v5.1
Major Changes
Drop deprecations. Migration steps: (#2082) by @dimkl
publishableKey
instead offrontendApi
Clerk.handleEmailLinkVerification()
instead ofClerk.handleMagicLinkVerification()
isEmailLinkError
instead ofisMagicLinkError
EmailLinkErrorCode
instead ofMagicLinkErrorCode
useEmailLink
instead ofuseMagicLink
orgs
jwt claim from session tokenExternalAccount.imageUrl
instead ofExternalAccount.avatarUrl
Organization.imageUrl
instead ofOrganization.logoUrl
User.imageUrl
instead ofUser.profileImageUrl
OrganizationMembershipPublicUserData.imageUrl
instead ofOrganizationMembershipPublicUserData.profileImageUrl
useOrganizationList
instead ofuseOrganizations
userProfileProps
instead ofuserProfile
inAppearance
Clerk.setActive()
instead ofClerk.setSession()
password
param inUser.update()
afterSelectOrganizationUrl
instead ofafterSwitchOrganizationUrl
inOrganizationSwitcher
Clerk.experimental_canUseCaptcha
/Clerk.Clerk.experimental_captchaSiteKey
/Clerk.experimental_captchaURL
(were meant for internal use)User.getOrganizationMemberships()
instead ofClerk.getOrganizationMemberships()
lastOrganizationInvitation
/lastOrganizationMember
from Clerk emitted eventsClerk.__unstable__invitationUpdate
/Clerk.__unstable__membershipUpdate
Organization.create()
Organization.getInvitations()
instead ofOrganization.getPendingInvitations()
pageSize
instead oflimit
inOrganizationMembership.retrieve()
initialPage
instead ofoffset
inOrganizationMembership.retrieve()
lastOrganizationInvitation
/lastOrganizationMember
from ClerkProviderinvitations
instead ofinvitationList
inuseOrganization
memberships
instead ofmembershipList
inuseOrganization
redirectUrl
instead ofredirect_url
inUser.createExternalAccount()
signature
instead ofgeneratedSignature
inSignup.attemptWeb3WalletVerification()
Drop deprecations. Migration steps: (#2109) by @dimkl
orgs
jwt claim from session tokenauth
param ofwithServerAuth()
callback toAuthObject
fromServerSideAuth
ingatsby-clerk-plugin
auth.sessionClaims
instead ofauth.claims
AuthObject
properties fromauth
publishableKey
instead offrontendApi
ClerkProviderOptionsWrapper
type instead ofIsomorphicClerkOptions
Drop deprecations. Migration steps: (#2151) by @dimkl
formFieldLabel__emailAddress_phoneNumber
from localization keysformFieldLabel__phoneNumber_username
from localization keysformFieldLabel__emailAddress_phoneNumber_username
from localization keysformFieldInputPlaceholder__emailAddress_phoneNumber
from localization keysformFieldInputPlaceholder__phoneNumber_username
from localization keysformFieldInputPlaceholder__emailAddress_phoneNumber_username
from localization keystitle__connectionFailed
instead oftitle__conectionFailed
from localization keysactionLabel__connectionFailed
instead ofactionLabel__conectionFailed
from localization keysheaderTitle__members
instead ofheaderTitle__active
from localization keysheaderTitle__invitations
instead ofheaderTitle__invited
from localization keyscreateOrganization.subtitle
from localization keysdeDE
instead ofdeDe
localization from@clerk/localizations
Patch Changes
@clerk/fastify@1.0.0-alpha-v5.1
Patch Changes
64d3763ec
,deac67c1c
,83e9d0846
,7f833da9e
,492b8a7b1
,2a22aade8
,dd5703013
,f77e8cdbd
,9615e6cda
,cace85374
,0d1052ac2
,5471c7e8d
,477170962
,e0e79b4fe
,a6451aece
]: