Skip to content

Commit 386612e

Browse files
authored
Merge branch 'main' into renovate/react-router-dev-minor
2 parents 2de07e1 + 0d99cdd commit 386612e

36 files changed

Lines changed: 3415 additions & 2820 deletions

.changeset/ci-ready-for-review.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@clerk/expo': patch
3+
---
4+
5+
Fix session loss on Expo JS reload (pressing R in dev)
6+
7+
`NativeSessionSync` was calling native `signOut()` during the loading phase when `isSignedIn` is `undefined`. On a JS reload, the native module persists from the previous session, so `signOut()` revokes the session server-side and clears all keychain items, forcing the user to log in again. This adds an `isLoaded` guard so native `signOut()` is only called when Clerk has confirmed the user is actually signed out.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@clerk/shared': patch
3+
'@clerk/clerk-js': patch
4+
'@clerk/react': patch
5+
---
6+
7+
Move ownership of the clerk-rq `QueryClient` from `@clerk/clerk-js` into `@clerk/shared`. The `QueryObserver` (constructed in `@clerk/shared`) and the `Query` objects it observes now always come from a single `@tanstack/query-core` resolution — the cross-bundle API contract that produced #8428 (`Query.isFetched is not a function`) no longer exists.
8+
9+
This removes the undocumented `clerk.__internal_queryClient` getter from both `@clerk/clerk-js` and `@clerk/react`'s `IsomorphicClerk`. The `QueryClient` is owned by an internal singleton in `@clerk/shared`, lazily instantiated on the browser only — server renders return `undefined`, preserving SSR safety and avoiding cross-request cache sharing.
10+
11+
`@tanstack/query-core` is no longer a direct dependency of `@clerk/clerk-js`; it remains a dep of `@clerk/shared` and resolves consumer-side as before.

.changeset/silver-gifts-kick.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@clerk/nuxt": patch
3+
---
4+
5+
Follow Nuxt module conventions for server-side imports.

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: CI
33
on:
44
merge_group:
55
pull_request:
6+
types: [opened, synchronize, reopened, ready_for_review]
67
branches:
78
- main
89
- release/v4

.typedoc/custom-plugin.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ const LINK_REPLACEMENTS = [
7474
['identification-link', '/docs/reference/backend/types/backend-identification-link'],
7575
['verification', '/docs/reference/backend/types/backend-verification'],
7676
['email-address', '/docs/reference/backend/types/backend-email-address'],
77+
['enterprise-account', '/docs/reference/backend/types/backend-enterprise-account'],
78+
['enterprise-account-connection', '/docs/reference/backend/types/backend-enterprise-account-connection'],
7779
['external-account', '/docs/reference/backend/types/backend-external-account'],
7880
['phone-number', '/docs/reference/backend/types/backend-phone-number'],
7981
['saml-account', '/docs/reference/backend/types/backend-saml-account'],
@@ -85,10 +87,15 @@ const LINK_REPLACEMENTS = [
8587
['billing-payment-method-resource', '/docs/reference/types/billing-payment-method-resource'],
8688
['billing-payer-resource', '/docs/reference/types/billing-payer-resource'],
8789
['billing-plan-resource', '/docs/reference/types/billing-plan-resource'],
90+
['billing-plan-unit-price', '/docs/reference/types/billing-plan-unit-price'],
91+
['billing-plan-unit-price-tier', '/docs/reference/types/billing-plan-unit-price-tier'],
8892
['billing-checkout-totals', '/docs/reference/types/billing-checkout-totals'],
8993
['billing-checkout-resource', '/docs/reference/types/billing-checkout-resource'],
9094
['billing-money-amount', '/docs/reference/types/billing-money-amount'],
95+
['billing-per-unit-total', '/docs/reference/types/billing-per-unit-total'],
96+
['billing-per-unit-total-tier', '/docs/reference/types/billing-per-unit-total-tier'],
9197
['billing-subscription-item-resource', '/docs/reference/types/billing-subscription-item-resource'],
98+
['billing-subscription-item-seats', '/docs/reference/types/billing-subscription-item-seats'],
9299
['feature-resource', '/docs/reference/types/feature-resource'],
93100
['billing-statement-group', '/docs/reference/types/billing-statement-group'],
94101
['billing-statement-resource', '/docs/reference/types/billing-statement-resource'],

integration/testUtils/machineAuthHelpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import type { ApplicationConfig } from '../models/applicationConfig';
1212
import type { EnvironmentConfig } from '../models/environment';
1313
import { appConfigs } from '../presets';
1414
import { instanceKeys } from '../presets/envs';
15-
import type { FakeAPIKey, FakeUser } from './usersService';
1615
import { createTestUtils } from './index';
16+
import type { FakeAPIKey, FakeUser } from './usersService';
1717

1818
export type FakeMachineNetwork = {
1919
primaryServer: Machine;

packages/astro/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
},
9898
"devDependencies": {
9999
"@clerk/ui": "workspace:^",
100-
"astro": "^5.18.1"
100+
"astro": "^6.0.0"
101101
},
102102
"peerDependencies": {
103103
"astro": "^4.15.0 || ^5.0.0 || ^6.0.0"

packages/clerk-js/bundlewatch.config.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
{ "path": "./dist/coinbase*.js", "maxSize": "36KB" },
1010
{ "path": "./dist/base-account-sdk*.js", "maxSize": "203KB" },
1111
{ "path": "./dist/stripe-vendors*.js", "maxSize": "1KB" },
12-
{ "path": "./dist/query-core-vendors*.js", "maxSize": "11KB" },
1312
{ "path": "./dist/zxcvbn-ts-core*.js", "maxSize": "12KB" },
1413
{ "path": "./dist/zxcvbn-common*.js", "maxSize": "226KB" }
1514
]

packages/clerk-js/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@
9191
"@solana/wallet-standard": "catalog:module-manager",
9292
"@stripe/stripe-js": "5.6.0",
9393
"@swc/helpers": "catalog:repo",
94-
"@tanstack/query-core": "catalog:repo",
9594
"@wallet-standard/core": "catalog:module-manager",
9695
"@zxcvbn-ts/core": "catalog:module-manager",
9796
"@zxcvbn-ts/language-common": "catalog:module-manager",

0 commit comments

Comments
 (0)