fix(deps): update dependency @clerk/nextjs to v7#266
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
1d7368b to
80c3339
Compare
a3ce101 to
3b949ec
Compare
402c781 to
7284400
Compare
f7623f6 to
9d5df31
Compare
9d5df31 to
f69f6d2
Compare
34d6939 to
e0beb70
Compare
e0beb70 to
c124414
Compare
cbc12bb to
34a054a
Compare
9a96f79 to
a026cda
Compare
d3fabfd to
cd575a5
Compare
03fd3c9 to
8b5596b
Compare
8b5596b to
3dd5720
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
6.39.3→7.5.1Release Notes
clerk/javascript (@clerk/nextjs)
v7.5.1Compare Source
Patch Changes
a5c7bc7]:v7.5.0Compare Source
Minor Changes
Remove the
<ConfigureSSO />component from the public API in favor of usage withinOrganizationProfile(#8779) by @LauraBeatrisRemoving these exports has no breaking changes impact on production applications, as was never released as a GA component
Patch Changes
Harden middleware debug log output: the formatter now recursively truncates known credential keys (
sessionToken,tokenInHeader,sessionTokenInCookie,secretKey,jwtKey) at any nesting depth, so a bearer token can no longer reach the logs even if a debug producer nests one. This is a defense-in-depth backstop alongside the source-level redaction in@clerk/backend. (#8744) by @jacekradkoAdd and improve JSDoc comments across public types and methods to support generated reference documentation for the
/objectsdocs section. Exports a few previously-internal types (OnEventListener,OffEventListener,ClerkOptionsNavigation) so they can be referenced from the generated docs. (#8276) by @alexisintechUpdated dependencies [
83f50f6,2d6670c,e7cb503,83f50f6,af706e3,48b187d,27c4d75,955e998,032632c,0fece6f,b295af3,0c854c3,27c4d75,8e1bd48]:v7.4.3Compare Source
Patch Changes
Prevent keyless mode from activating in CI and other automated environments in framework SDKs. (#8676) by @mwickett
Updated dependencies [
1c42351,1701e0f,afb75e6,c3df67a,ff0cfef,86fd38f,be55c4e,fb184de,8d6bb56,43dfefa,5fc7b21,c2ba134]:v7.4.2Compare Source
Patch Changes
79cdd1f,4d5027b,4e08924,bcf0e77]:v7.4.1Compare Source
Patch Changes
a036ce8]:v7.4.0Compare Source
Minor Changes
<ConfigureSSO />from experimental path (#8588) by @LauraBeatrisPatch Changes
6eaf4d6,1aab31e]:v7.3.7Patch Changes
3599747,95f6c2f]:v7.3.6Patch Changes
4fc38a0]:v7.3.5Compare Source
Patch Changes
Bump
nextdevDependency to15.5.18to pick up the fix for GHSA-26hh-7cqf-hhc6, a high-severity (CVSS 7.5) Middleware/Proxy bypass in App Router applications via segment-prefetch routes (incomplete-fix follow-up). If you use the Next.js App Router, we recommend upgrading to Next.js15.5.18,16.2.6, or a later patched release. The16.0.0through16.2.5versions are still affected. (#8547) by @jacekradkoUpdated dependencies [
9fa6642,930047f,b45777c,5441d86,5a7225e]:v7.3.4Compare Source
Patch Changes
1a4d7d1,a6916b1,1084180,ee25cf2,39099b6,2377305,18e0a1a]:v7.3.3Compare Source
Patch Changes
0ab09a8,6408ab6,5cda3ee]:v7.3.2Compare Source
Patch Changes
Improved
auth()error message whenclerkMiddleware()is not detected to mention that infrastructure issues (e.g. edge runtime errors or platform outages) can also cause this error. (#8007) by @jacekradkoUpdated dependencies [
7a5892f]:v7.3.1Compare Source
Patch Changes
Enforce middleware authorization during the keyless bootstrap window.
auth.protect()and custom authorization checks now fail closed instead of being bypassed while the publishable key is being provisioned. (#8369) by @jacekradkoUpdated dependencies [
9e9230c,68d32df,1c27d4d,1001193]:v7.3.0Compare Source
Minor Changes
Expose
OAuthConsentas a public component export across React-based SDKs. (#8381) by @wobsorianoExample:
Patch Changes
785f057,90beaeb,244920d]:v7.2.9Compare Source
Patch Changes
1bfd8ab]:v7.2.8Compare Source
Patch Changes
Use a constant-time comparison when validating the integrity signature on the middleware-to-origin auth header handoff (
assertTokenSignature). The previous!==compare was timing-variable; the new helper is synchronous and runtime-agnostic so it works in both Node and Edge Runtime. (#8411) by @jacekradkoAuto-proxy FAPI requests for
.vercel.appsubdomains. When deployed to a.vercel.appdomain without explicit proxy or domain configuration, the SDK automatically routes Frontend API requests through/__clerkon the app's own origin. This enables Clerk production mode on Vercel deployments without manual proxy setup. (#8035) by @brkalowUpdated dependencies [
9b57986,a9f9b29,e0a63f9]:v7.2.7Compare Source
Patch Changes
da76490]:v7.2.6Patch Changes
083c4c5,dcaf694,d9011b4]:v7.2.5Patch Changes
Refactor
clerkMiddlewareinternals to factor the post-authentication pipeline (handler invocation, CSP, redirects, response decoration) into a privaterunHandlerWithRequestStatehelper. Pure refactor — no behavioral change. (#8368) by @jacekradkoUpdated dependencies [
93855c2]:v7.2.4Patch Changes
Add helpful TypeScript error for incorrect
authimport path (#8358) by @jacekradkoFix an authorization bypass in
has(),auth.protect(), and related predicates when a single call combined conditions from more than one dimension (for example,{ permission, reverification }or{ feature, permission }). A dimension that should have denied the request was treated as indeterminate and ignored by the combining logic, allowing other passing dimensions to carry the result and authorize the call when it should have failed closed. (#8372) by @nikosdouvlisBehavior is now:
session.checkAuthorization()was building authorization options from the membership row id instead of the organization id.Single-condition role, permission, feature, and plan checks (
has({ permission }), etc.) are unchanged. Single-conditionreverificationchecks are unchanged on well-formed session data; calls with a missing or malformedfactorVerificationAgepayload now deny where they previously returned indeterminate. Callback-formauth.protect(has => ...)is unaffected unless the callback itself invokes the affected shapes.Separately,
auth.protect()in@clerk/nextjspreviously discarded authorization params (role,permission,feature,plan,reverification) whenever the same argument object also containedunauthenticatedUrl,unauthorizedUrl, ortoken. TypeScript's excess-property check caught this for inline object literals but did not apply once the argument was assigned to a variable, spread, or used from JavaScript. Mixed-shape calls likeauth.protect({ role: 'org:admin', unauthorizedUrl: '/denied' })orauth.protect({ permission: 'org:X', token: 'session_token' })now correctly enforce the authorization check instead of silently letting every authenticated caller through.Updated dependencies [
d52b311,abaa339]:v7.2.3Compare Source
Patch Changes
fcc6c0c]:v7.2.2Compare Source
Patch Changes
f800b4f,8ee6a32,c7b0f47,34762e8]:v7.2.1Patch Changes
Normalize URL paths in
createPathMatcherto prevent route protection bypass (#8311) by @nikosdouvlisUpdated dependencies [
b0b6675]:v7.2.0Minor Changes
Introduce internal
<OAuthConsent />component for rendering a zero-config OAuth consent screen on an OAuth authorize redirect page. (#8289) by @wobsorianoUsage example:
Patch Changes
dc2de16]:v7.1.0Compare Source
Minor Changes
useOAuthConsent()hook for fetching OAuth consent screen metadata for the signed-in user. (#8286) by @jfosheePatch Changes
Bump
nextdevDependency to15.5.15to pick up the fix for CVE-2026-23869, a high-severity (CVSS 7.5) denial-of-service vulnerability in React Server Components. If you use the Next.js App Router, we recommend upgrading to Next.js15.5.15or16.2.3. (#8257) by @renovateUpdated dependencies [
3fd586d,f9ff9e9]:v7.0.12Compare Source
Patch Changes
Re-exports
useAPIKeys()hook. (#8269) by @wobsorianoUsage example:
Updated dependencies [
fdac10e,4e3cb0a,aa32bbc]:v7.0.11Compare Source
Patch Changes
bedad42]:v7.0.8Compare Source
Patch Changes
9a00a1c,00715a6,39ee042,b8c73d3,1827b50,7707a31,849f198,7c7d025]:v7.0.7Compare Source
Patch Changes
7027e97,0288931,3efdd2c,486545c]:v7.0.6Compare Source
Patch Changes
f0533a2,e00ec97]:v7.0.5Compare Source
Patch Changes
b9cb6e5]:v7.0.4Compare Source
Patch Changes
1f43bf7,766ae5b,de1386f,02ff4f2]:v7.0.2Compare Source
Patch Changes
Fix build failures when using
cacheComponents: truewith dynamic routes (e.g.[id]) (#7989) by @jacekradkoUpdated dependencies [
a8c64cc,776ee1b,7fb870d,398b7f9,09cb6d4,09088ed]:v7.0.1Compare Source
Patch Changes
Update README prerequisites to match actual
package.jsonengine and peer dependency constraints. (#7972) by @jacekradkoUpdated dependencies [
55ece85]:v7.0.0Compare Source
Major Changes
Align experimental/unstable prefixes to use consistent naming: (#7361) by @brkalow
__unstable_*methods to__internal_*(for internal APIs)experimental__*andexperimental_*methods to__experimental_*(for beta features)__unstable_manageBillingUrl,__unstable_manageBillingLabel,__unstable_manageBillingMembersLimit) andexperimental__forceOauthFirstRenamed
__unstable_invokeMiddlewareOnAuthStateChangeto__internal_invokeMiddlewareOnAuthStateChange. (#7925) by @jacekradkouseAuth().getTokenis no longerundefinedduring server-side rendering, it is a function and calling it will throw. (#7730) by @EphemgetTokeninuseEffect, event handlers or with non-suspenseful data fetching libraries, no change is necessary as these only trigger on the client.getTokenalready, since this has never been possible.getToken === undefinedchecks to avoid calling it, know that it will now throw instead and you should catch and handle the error.To access auth data server-side, see the
Authobject reference doc.Refactor React SDK hooks to subscribe to auth state via
useSyncExternalStore. This is a mostly internal refactor to unlock future improvements, but includes a few breaking changes and fixes. (#7411) by @EphemBreaking changes:
initialAuthStatetouseAuthinitialStateto the<ClerkProvider>, ordynamicif using the Next packageFixes:
useAuthwould sometimes briefly return theinitialStaterather thanundefineduser: nullon the first page after signing in, indicating a signed out stateclerk-jshad loaded fullyUpdating minimum version of Node to v20.9.0 (#6936) by @jacekradko
Throw an error when an encryption key is missing when passing a secret key at runtime
clerkMiddleware(). To migrate, ensure your application specifies aCLERK_ENCRYPTION_KEYenvironment variable when passingsecretKeyas a runtime option. (#7360) by @brkalowReturn 401 instead of 404 for unauthenticated server action requests in
auth.protect()(#7820) by @jacekradkoRemove
clerkJSUrl,clerkJSVersion,clerkUIUrl, andclerkUIVersionprops from all SDKs. To pin a specific version of@clerk/clerk-js, import theClerkconstructor from@clerk/clerk-jsand pass it toClerkProvidervia theClerkprop. To pin a specific version of@clerk/ui, importuifrom@clerk/uiand pass it via theuiprop. This bundles the modules directly with your application instead of loading them from the CDN. (#7879) by @jacekradkoRemove all previously deprecated UI props across the Next.js, React and clerk-js SDKs. The legacy
afterSign(In|Up)Url/redirectUrlprops,UserButtonsign-out overrides, organizationhideSlugflags,OrganizationSwitcher'safterSwitchOrganizationUrl,Client.activeSessions,setActive({ beforeEmit }), and theClerkMiddlewareAuthObjecttype alias are no longer exported. Components now rely solely on the new redirect options and server-side configuration. (#7243) by @jacekradkoIntroduce
<Show when={...}>as the cross-framework authorization control component and remove<Protect>,<SignedIn>, and<SignedOut>in favor of<Show>. (#7373) by @jacekradkogetToken()now throwsClerkOfflineErrorinstead of returningnullwhen the client is offline. (#7598) by @bratsosThis makes it explicit that a token fetch failure was due to network conditions, not authentication state. Previously, returning
nullcould be misinterpreted as "user is signed out," potentially causing the cached token to be cleared.To handle this change, catch
ClerkOfflineErrorfromgetToken()calls:Drop support for
next@13andnext@14since they have reached EOL. Now>= next@15.2.3is required. (#7197) by @panteliselefMinor Changes
Add
unsafe_disableDevelopmentModeConsoleWarningoption to disable the development mode warning that's emitted to the console when Clerk is first loaded. (#7505) by @dstaleyAdd Frontend API proxy support via
frontendApiProxyoption inclerkMiddleware(#7602) by @brkalowIntroducing
setup_mfasession task (#7626) by @octoperRemove
clerkJSVariantoption and headless bundle. UseprefetchUI={false}instead. (#7629) by @jacekradkoAdd
uiprop toClerkProviderfor passing@clerk/ui(#7664) by @jacekradkoAdd standalone
getToken()function for retrieving session tokens outside of framework component trees. (#7325) by @bratsosThis function is safe to call from anywhere in the browser, such as API interceptors, data fetching layers (e.g., React Query, SWR), or vanilla JavaScript code. It automatically waits for Clerk to initialize before returning the token.
import { getToken } from '@clerk/nextjs'; // or any framework package
// Example: Axios interceptor
axios.interceptors.request.use(async (config) => {
const token = await getToken();
if (token) {
config.headers.Authorization =
Bearer ${token};}
return config;
});
Export
useOrganizationCreationDefaultshook to fetch suggested organization name and logo from default naming rules (#7694) by @LauraBeatrisAdd
/typessubpath export to re-export types from@clerk/shared/typesalong with SDK-specific types. This allows importing Clerk types directly from the SDK package (e.g.,import type { UserResource } from '@​clerk/react/types') without needing to install@clerk/typesas a separate dependency. (#7644) by @nikosdouvlisAdd
HandleSSOCallbackcomponent which handles the SSO callback during custom flows, including support for sign-in-or-up. (#7678) by @dstaleyIntroduce
<UNSAFE_PortalProvider>component which allows you to specify a custom container for Clerk floating UI elements (popovers, modals, tooltips, etc.) that use portals. Only Clerk components within the provider will be affected, components outside the provider will continue to use the default document.body for portals. (#7310) by @alexcarpenterThis is particularly useful when using Clerk components inside external UI libraries like Radix Dialog or React Aria Components, where portaled elements need to render within the dialog's container to remain interact-able.
Patch Changes
Fix an App Router navigation edge case where duplicate in-flight redirects to the same destination could leave Clerk's awaitable navigation pending indefinitely. (#7865) by @bratsos
Rename dev browser APIs to remove JWT terminology. The dev browser identifier is now a generic ID, so internal naming has been updated to reflect this. No runtime behavior changes. (#7930) by @brkalow
Wire
clerkUIVersionoption through all framework packages (#7740) by @nikosdouvlisFixed an issue where the CSP nonce generated by
clerkMiddleware({ contentSecurityPolicy: { strict: true } })was not forwarded as a request header. Server components can now access the nonce viaheaders(), allowingClerkProviderand Next.js to apply it to<script>tags. (#7828) by @jacekradkoFix Turbopack compatibility for
uiprop by addingturbopackIgnoremagic comment alongsidewebpackIgnoreon the dynamic@clerk/ui/entryimport. This prevents both bundlers from statically resolving the optional dependency at build time. (#7805) by @jacekradkoFix
@clerk/ui/entrybare specifier failing in browser when usinguiprop with RSC (#7809) by @jacekradkoAdd exports for
useWaitlisthook. (#7609) by @alexcarpenterUpdating peerDependency for CVE-2025-55182 (#7423) by @dominic-clerk
Fix race condition that could cause
__clerkSharedModules is not definederror when using the shared React UI variant. (#7685) by @bratsosAdd support for Next.js 16 cache components by improving error detection and providing helpful error messages when
auth()orcurrentUser()are called inside a"use cache"function. (#7595) by @jacekradkoAdd image CDNs to the
connect-srcContent Security Policy directive (#7610) by @LauraBeatrisfix: Update getAuthData to use isMachineToken (#7755) by @jeremy-clerk
Add
satelliteAutoSyncoption to optimize satellite app handshake behavior (#7597) by @nikosdouvlisSatellite apps currently trigger a handshake redirect on every first page load, even when no cookies exist. This creates unnecessary redirects to the primary domain for apps where most users aren't authenticated.
New option:
satelliteAutoSync(default:false)false(default): Skip automatic handshake if no session cookies exist, only trigger after explicit sign-in actiontrue: Satellite apps automatically trigger handshake on first load (previous behavior)New query parameter:
__clerk_sync__clerk_sync=1(NeedsSync): Triggers handshake after returning from primary sign-in__clerk_sync=2(Completed): Prevents re-sync loop after handshake completesBackwards compatible: Still reads legacy
__clerk_synced=trueparameter.SSR redirect fix: Server-side redirects (e.g.,
redirectToSignIn()from middleware) now correctly add__clerk_sync=1to the return URL for satellite apps. This ensures the handshake is triggered when the user returns from sign-in on the primary domain.CSR redirect fix: Client-side redirects now add
__clerk_sync=1to all redirect URL variants (forceRedirectUrl,fallbackRedirectUrl) for satellite apps, not just the defaultredirectUrl.v6.39.5Compare Source
Patch Changes
9d421ef,9d421ef]:v6.39.4Patch Changes
fbba78c]:Configuration
📅 Schedule: (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.