fix(deps): update dependency @clerk/clerk-js to v5 #96
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 contains the following updates:
^4.54.2
->^5.0.0
Release Notes
clerk/javascript (@clerk/clerk-js)
v5.31.2
Compare Source
Patch Changes
ClerkProvider
props change in@clerk/clerk-react
(#4498) by @nikosdouvlisv5.31.1
Compare Source
Patch Changes
Fix an issue where protocol relative URLs were not properly detected as non-relative. (#4483) by @BRKalow
Updated dependencies [
8a04ae47b8305f994b348301fd8134d5baf02943
]:v5.31.0
Compare Source
Minor Changes
New Feature: Introduce the
<Waitlist />
component and thewaitlist
sign up mode. (#4376) by @nikospapcom<Waitlist />
component.Join waitlist
prompt from<SignIn />
component when mode iswaitlist
.waitlist
.joinWaitlist()
method inClerk
singleton.redirectToWaitlist()
method inClerk
singleton to allow user to redirect to waitlist page.Patch Changes
Expose internal
__internal_getOption
method from Clerk. (#4456) by @alexcarpenterUpdated dependencies [
d74a6a7c0f291104c6bba722a8c432814d7b336e
,1a0c8fe665869e732d3c800bde0f5219fce54301
,0800fc3f1f4e1b6a1d13f5c02557001a283af6e8
]:v5.30.3
Compare Source
Patch Changes
clerk-js
is now built with Rspack instead of Webpack. This is an internal tooling change that shouldn't affect consumers. by @nikosdouvlisRefactor imports from @clerk/shared to improve treeshaking support by @nikosdouvlis
Updated dependencies [
a7726cc12a824b278f6d2a37cb1901c38c5f70dc
,a7726cc12a824b278f6d2a37cb1901c38c5f70dc
]:v5.30.2
Compare Source
v5.30.1
Compare Source
v5.30.0
Compare Source
Minor Changes
Introduce
redirectUrl
property onsetActive
as a replacement forbeforeEmit
. (#4312) by @issuedatDeprecates
beforeEmit
property onsetActive
.Patch Changes
Experimental:
asStandalone
now accepts a callback that notifies if the standalone popover needs to unmount. (#4423) by @panteliselefImprove checkbox label alignment to account for wrapping labels. (#4426) by @alexcarpenter
Remove unused
fitTextInOneLine
andtextWidthForCurrentSize
(#4407) by @zythosecChore: Replace beforeEmit with an explicit call after
setActive
, inside the experimental UserVerification. (#4362) by @panteliselefChanged
__experimental_legalAccepted
checkbox Indicator element descriptor and element id (#4427) by @octoperChanged
__experimental_legalAccepted
checkbox Label element descriptor and element idAdded two new element descriptors
formFieldCheckboxInput
,formFieldCheckboxLabel
.Updated dependencies [
f875463da
,5be7ca9fd
,c2f5071be
,08c5a2add
,ae0621972
,cd2189ac8
,159877be0
,434b432f8
]:v5.29.1
Compare Source
Patch Changes
Move
@clerk/ui
todevDependencies
(#4399) by @dstaleyShow an error on
<UserProfile />
if the Web3 wallet is already claimed. (#4389) by @EmmanouelaPothitouFix for legal consent rendered on the component when only social sign up is enabled (#4403) by @octoper
v5.29.0
Compare Source
Minor Changes
<SignUp/>
component (#4337) by @octoperPatch Changes
3fdcdbf88
,f9d53fe34
]:v5.28.0
Compare Source
Minor Changes
Patch Changes
Bug fix: Always receive a new session verification object when UserVerification component mounts. (#4359) by @panteliselef
Updated dependencies [
3b50b67bd
,3b50b67bd
]:v5.27.0
Compare Source
Minor Changes
Drop
maxAgeMinutes
from__experimental_startVerification
. (#4338) by @panteliselefDrop types
__experimental_SessionVerificationConfig
and__experimental_SessionVerificationMaxAgeMinutes
.The "Restricted access" screen has been improved for visual consistency and the ability to contact support. The displayed texts have been made more clear and the sign-in button has been moved to the bottom. (#4335) by @nikospapcom
Add experimental standalone mode for
<UserButton />
and<OrganizationSwitcher />
. (#4042) by @panteliselefWhen
__experimental_asStandalone: true
the component will not render its trigger, and instead it will render only the contents of the popover in place.APIs that changed:
__experimental_prefetchOrganizationSwitcher
as a way to mount an internal component that will render theuseOrganizationList()
hook and prefetch the necessary data for the popover of<OrganizationSwitcher />
. This enhances the UX since no loading state will be visible and keeps CLS to the minimum.mountOrganizationSwitcher(node, { __experimental_asStandalone: true })
mountUserButton(node, { __experimental_asStandalone: true })
Use EIP-4361 message spec for Web3 wallets sign in signature requests (#4334) by @chanioxaris
Patch Changes
Retry with exponential backoff if loadScript fails to load the script (#4349) by @nikosdouvlis
Add the
?render=explicit
query parameter to the Turnstile script. (#4332) by @anagstefUpdated dependencies [
e81d45b72
,752ce9bfa
,0a9bf8ef4
,99cdf9b67
,ce40ff6f0
,2102052c0
]:v5.26.5
Compare Source
Patch Changes
Only retry the OAuth flow if the captcha check failed. (#4329) by @nikosdouvlis
Improve bot detection by loading the Turnstile SDK directly from CloudFlare. (#4321) by @anagstef
If loading fails due to CSP rules, load it through FAPI instead.
Bypass captcha for providers dynamically provided in environment (#4322) by @nikosdouvlis
Updated dependencies [
d64e54c40
,2ba2fd148
]:v5.26.4
Compare Source
Patch Changes
v5.26.3
Compare Source
Patch Changes
OrganizationSwitcher
popover action to include label (#4304) by @LauraBeatrisv5.26.2
Compare Source
Patch Changes
Handle gracefully Coinbase Wallet use of existing Passkey (#4302) by @chanioxaris
Updates webpack to address CVE-2024-43788. (#4287) by @dependabot
Updated dependencies [
e29a8061d
,00a9ddb5b
]:v5.26.1
Compare Source
Patch Changes
v5.26.0
Compare Source
Minor Changes
Rename
__experimental_assurance
to__experimental_reverification
. (#4268) by @panteliseleffirstFactor
,secondFactor
,multiFactor
.____experimental_SessionVerificationTypes
that abstracts away the level and maxAgePatch Changes
fb932e5cf
]:v5.24.1
Compare Source
Patch Changes
v5.24.0
Compare Source
Minor Changes
Handle
sign_up_mode_restricted
error encountered in an oauth flow (#4232) by @nikospapcomRender "Restricted access" screen in
<SignUp />
component whensignup.mode
inuserSettings
isrestricted
(#4220) by @nikospapcomPatch Changes
Correctly pass
defaultOpen
prop toOrganizationSwitcher
popover instance. (#4233) by @alexcarpenterConditionally renders identification sections on
UserProfile
based on the SAML connection configuration for disabling additional identifiers. (#4211) by @NicolasLopes7Updated dependencies [
4749ed4c5
,f1f17eaab
,2e35ac538
]:v5.23.0
Compare Source
Minor Changes
<SignIn />
component when mode isrestricted
(#4206) by @nikospapcomPatch Changes
Handle gracefully Coinbase Wallet initial configuration (#4218) by @chanioxaris
Supports default role on
OrganizationProfile
invitations. When inviting a member, the default role will be automatically selected, otherwise it falls back to the only available role. (#4210) by @LauraBeatrisAdd type for __internal_country (#4215) by @dstaley
Updated dependencies [
c9063853e
,19d3808d4
,737bcbb0f
]:v5.22.4
Compare Source
Patch Changes
Fix UserProfile and OrganizationProfile wrong padding on footer for small screens when Development notice is enabled (#4191) by @octoper
Internal change to move
iconImageUrl
util toshared
package. (#4188) by @alexcarpenterOnly render the Sign out of all accounts action within
<UserButton />
when there are multiple sessions. (#4200) by @alexcarpenterUpdated dependencies [
cb32aaf59
,2e5c550e4
,6275c242c
,f9faaf031
]:v5.22.3
Compare Source
Patch Changes
Restore behavior of MetaMask compatible Web3 wallets. Before, even if a user didn't use the MetaMask browser extension but a compatible one, such as Rabby Wallet, it was possible to use it as they share the same API to authenticate themselves. This behavior stopped working when we added support for EIP6963 regarding handling multiple injected providers. This commit restores the previous behavior by using the existing injected provider if there is a single one (#4185) by @chanioxaris
Updated dependencies [
5dde18f6b
]:v5.22.2
Compare Source
Patch Changes
Add color to phone input select options to fix rendering within dark and shadesOfPurple themes. (#4176) by @alexcarpenter
Updated dependencies [
3743eb911
]:v5.22.1
Compare Source
Patch Changes
2d8e6e9d0
,bcc5eba39
]:v5.22.0
Compare Source
Minor Changes
Experimental support for
has()
with assurance. (#4118) by @panteliselefExample usage:
Created a shared utility called
createCheckAuthorization
exported from@clerk/shared
Patch Changes
Moves
fastDeepMerge
utils to@clerk/shared
package. (#4056) by @alexcarpenterAdds translation keys for error messages from the organizations API. (#4123) by @LauraBeatris
Updated dependencies [
23b850f5f
,ace56babd
,ba19be354
,248142a6d
,1189f71f8
,de1ba10b4
]:v5.21.2
Compare Source
Patch Changes
be3b119f8
]:v5.21.1
Compare Source
Patch Changes
Update type of
__experimental_factorVerificationAge
to be[number, number] | null
. (#4135) by @panteliselefUpdated dependencies [
8c6909d46
]:v5.21.0
Compare Source
Minor Changes
fva
that tracks the age of verified factor groups. (#4061) by @panteliselefServer side
This can be applied to any helper that returns the auth object
Nextjs example
Client side
React example
Patch Changes
Fix bug where session.getToken() was reading a stale organization ID. (#4112) by @BRKalow
Drop support for deprecated Coinbase Web3 provider (#4092) by @chanioxaris
Ensure we don't access
window.addEventListener()
andwindow.dispatchEvent
in non-browser environments. (#4095) by @wobsorianoSupport
phone_code
as first factor for the experimental UserVerification component. (#4085) by @panteliselefUpdated dependencies [
c63a5adf0
,8823c21a2
,95ac67a14
,a0cb062fa
,746b4ed5e
,feb9e14d4
]:v5.20.0
Compare Source
Minor Changes
Add support for the Coinbase Wallet web3 provider and authentication strategy. The Coinbase Wallet provider handles both Coinbase Wallet extension and Smart Wallet (#4082) by @chanioxaris
Experimental: Persist the Clerk client after signing out a user. (#3941) by @panteliselef
This allows for matching a user's device with a client. To try out this new feature, enable it in your
<ClerkProvider />
orclerk.load()
call.Patch Changes
8a3b9f079
,e95c28196
]:v5.19.0
Compare Source
Minor Changes
Add new
UserVerification
component (experimental feature). This UI component allows for a user to "re-enter" their credentials (first factor and/or second factor) which results in them being re-verified. (#4016) by @panteliselefNew methods have been added:
__experimental_openUserVerification()
__experimental_closeUserVerification()
__experimental_mountUserVerification(targetNode: HTMLDivElement)
__experimental_unmountUserVerification(targetNode: HTMLDivElement)
Move SessionVerification methods from UserResource to SessionResource: (#4073) by @panteliselef
user.__experimental_verifySession
->session.__experimental_startVerification
user.__experimental_verifySessionPrepareFirstFactor
->session.__experimental_prepareFirstFactorVerification
user.__experimental_verifySessionAttemptFirstFactor
->session.__experimental_attemptFirstFactorVerification
user.__experimental_verifySessionPrepareSecondFactor
->session.__experimental_prepareSecondFactorVerification
user.__experimental_verifySessionAttemptSecondFactor
->session.__experimental_attemptSecondFactorVerification
Patch Changes
Bug fix: Use the EIP-6963 standard to get a Web3 provider when more than one provider is injected. (#4059) by @EmmanouelaPothitou
chore(clerk-js): Display shortened web3 wallet address on user profile (#4074) by @EmmanouelaPothitou
chore(clerk-js): Add 'Unverified' or 'Primary' tag next to the Web3 wallet address on the user profile. (#4077) by @EmmanouelaPothitou
Updated dependencies [
afad9af89
,82593173a
,afad9af89
]:v5.18.0
Compare Source
Minor Changes
Patch Changes
Tidy up and improve README (#4053) by @LekoArts
Updated dependencies [
58e6754ad
,13693018f
,3aa63dc5a
,3304dcc0b
]:v5.17.0
Compare Source
Minor Changes
Patch Changes
Fix 404s after signing out in NextJS apps by keeping the session cookie while cache is being invalidated (#4001) by @nikosdouvlis
Updated dependencies [
7ca43acae
,c1389492d
]:v5.16.1
Compare Source
Patch Changes
Remove sessionId parameter from all experimental verify session methods. (#4026) by @panteliselef
Introduce Coinbase Wallet Web3 provider types (#4028) by @chanioxaris
Change the webpackChunkName of GoogleOneTap from
"oneTap"
to"onetap"
for consistency. (#4036) by @panteliselefFixes issue where
createFlexGapPropertyIosCompat
was incorrectly detecting a modern Chrome for iOS user agent. (#4034) by @alexcarpenterIntroduce support for the Hugging Face OAuth Provider. (#4021) by @Nikpolik
Updated dependencies [
0158c774a
,8be1a7abc
]:v5.16.0
Compare Source
Minor Changes
Expose
SessionVerification
as an experimental resource. (#4011) by @panteliselefUpdate
UserResource
with 5 new experimental methods:experimental_verifySession
for creating a new SessionVerification record and initiating a new flow.experimental_verifySessionPrepareFirstFactor
for preparing a supported first factor likephone_code
experimental_verifySessionAttemptFirstFactor
for attempting a supported first factor likepassword
experimental_verifySessionPrepareSecondFactor
for preparing a supported second factor likephone_code
experimental_verifySessionAttemptSecondFactor
for attempting a supported second factor liketotp
Fixes a bug where multiple tabs with different active organizations would not always respect the selected organization. Going forward, when a tab is focused the active organization will immediately be updated to the tab's last active organization. (#3786) by @BRKalow
Additionally,
Clerk.session.getToken()
now accepts anorganizationId
option. The provided organization ID will be used to set organization-related claims in the generated session token.Patch Changes
Fixes an issue in Connected Accounts menu that was related to Custom OAuth Providers: (#4014) by @nikospapcom
Resolves undefined properties error that occurred when a Custom OAuth Provider was
enabled
butauthenticatable
was set tofalse
.Fix issue where MFA two-factor UI was incorrectly rendering set default action in SMS code when TOTP strategy was defined. (#4003) by @alexcarpenter
Updated dependencies [
247b3fd75
]:v5.15.1
Compare Source
Patch Changes
Improve the Smart CAPTCHA widget console error. (#3989) by @agis
Updated dependencies [
c81785972
,05198fd17
,5818ca8bd
]:v5.15.0
Compare Source
Minor Changes
windowNavigate
through router functions. (#3922) by @panteliselefPatch Changes
Fixes an issue where the application logo would render smaller then intended (#3959) by @alexcarpenter
Updated dependencies [
77cdf7611
,3de0a1b7e
,ec6bfb5b1
,dc0e1c33d
,e5491facc
,072667043
]:v5.14.1
Compare Source
Patch Changes
Add development mode warning in the browser console when
load()
happens. Companion PR for Add dev mode warning to components. (#3930) by @LekoArtsFix unresponsive behavior when clicking placeholder logo in the
<CreateOrganization />
component (#3921) by @wobsorianoIn certain situations the Frontend API response contains
supported_first_factors
with anull
value while the current code always assumed to receive an array.SignInResource['supportedFirstFactors']
has been updated to account for that and any code accessing this value has been made more resilient againstnull
values. (#3938) by @dstaleyUpdated dependencies [
7e0ced3da
,b6f0613dc
]:v5.14.0
Compare Source
Minor Changes
Add a
nonce
to clerk-js' script loading options. Also adds anonce
prop toClerkProvider
. This can be used to thread a nonce value through to the clerk-js script load to support apps using astrict-dynamic
content security policy. For next.js applications, the nonce will be automatically pulled from the CSP header and threaded through without needing any props so long as the provider is server-rendered. (#3858) by @jescalanIntroduce
transferable
prop for<SignIn />
to disable the automatic transfer of a sign in attempt to a sign up attempt when attempting to sign in with a social provider when the account does not exist. Also adds atransferable
option toClerk.handleRedirectCallback()
with the same functionality. (#3845) by @BRKalowPatch Changes
59d5f19d3
,4e6c94e3f
]:v5.13.2
Compare Source
Patch Changes
Add option to hide the slug field in the
<CreateOrganization />
,<OrganizationSwitcher />
, and<OrganizationList />
components (#3882) by @wobsorianoUpdated dependencies [
9b2aeacb3
]:v5.13.1
Compare Source
Patch Changes
<UserButton />
. (#3903) by @alexcarpenterv5.13.0
Compare Source
Minor Changes
Add
createOrganizationsLimit
param in@clerk/backend
methodUser.updateUser()
(#3823) by @NicolasLopes7Example:
Patch Changes
7e94fcf0f
]:v5.12.0
[Compare Source](https://redirect.github.
Configuration
📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - "after 9am and before 5pm Monday" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.