Skip to content

Commit 662422f

Browse files
authored
Merge branch 'main' into ds.feat/hooks-handle-sso-callback
2 parents b06d2e5 + 2790987 commit 662422f

File tree

113 files changed

+2239
-1120
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+2239
-1120
lines changed

.changeset/add-signin-reset.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
'@clerk/shared': patch
4+
---
5+
6+
Add `reset` method to the sign-in resource.

.changeset/cozy-webs-matter.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
'@clerk/shared': patch
4+
---
5+
6+
Add `reset` method to the new signUp resource.

.changeset/fifty-flies-repeat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/localizations': patch
3+
---
4+
5+
Update translations for locales: Spanish (es-ES) billing page improvements, Portuguese (pt-BR) enterprise connections and password errors, and comprehensive Finnish (fi-FI) updates across authentication, billing, and organization management

.changeset/fix-upgrade-typos.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/upgrade': patch
3+
---
4+
5+
Fix typos in core-3 upgrade guide change files

.changeset/full-parents-crash.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
'@clerk/nextjs': major
3+
'@clerk/shared': major
4+
'@clerk/react': major
5+
'@clerk/expo': major
6+
'@clerk/chrome-extension': major
7+
'@clerk/react-router': major
8+
'@clerk/clerk-js': minor
9+
'@clerk/tanstack-react-start': minor
10+
---
11+
12+
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.
13+
14+
Breaking changes:
15+
16+
* All `@clerk/react`-based packages: Removes ability to pass in `initialAuthState` to `useAuth`
17+
* This was added for internal use and is no longer needed
18+
* Instead pass in `initialState` to the `<ClerkProvider>`, or `dynamic` if using the Next package
19+
* See your specific SDK documentation for more information on Server Rendering
20+
* `@clerk/shared`: Removes now unused contexts `ClientContext`, `SessionContext`, `UserContext` and `OrganizationProvider`
21+
* We do not anticipate public use of these
22+
* If you were using any of these, file an issue to discuss a path forward as they are no longer available even internally
23+
24+
New features:
25+
26+
* `@clerk/clerk-js`: `addListener` now takes a `skipInitialEmit` option that can be used to avoid emitting immediately after subscribing
27+
28+
Fixes:
29+
30+
* A bug where `useAuth` would sometimes briefly return the `initialState` rather than `undefined`
31+
* This could in certain situations incorrectly lead to a brief `user: null` on the first page after signing in, indicating a signed out state
32+
* Hydration mismatches in certain rare scenarios where subtrees would suspend and hydrate only after `clerk-js` had loaded fully

.changeset/kadi-env-var-fix.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
"@clerk/expo": major
3+
---
4+
5+
The `publishableKey` prop is now required in `ClerkProvider`. Previously, the prop was optional and would fall back to `EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY` or `CLERK_PUBLISHABLE_KEY` environment variables.
6+
7+
Environment variables inside `node_modules` are not inlined during production builds in React Native/Expo, which could cause apps to crash in production when the publishable key is undefined.
8+
9+
You must now explicitly pass the `publishableKey` prop to `ClerkProvider`:
10+
11+
```tsx
12+
const publishableKey = process.env.EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY!;
13+
14+
<ClerkProvider publishableKey={publishableKey}>
15+
{/* Your app */}
16+
</ClerkProvider>

.changeset/light-drinks-grow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/nextjs': patch
3+
---
4+
5+
Fix race condition that could cause `__clerkSharedModules is not defined` error when using the shared React UI variant.

.changeset/slick-streets-stick.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
---
4+
5+
Fix issue where `signUp.password()` created a new sign-up when called after `signUp.create()`

.changeset/thirty-pianos-reply.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

.changeset/types-subpath-export.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@clerk/react': minor
3+
'@clerk/nextjs': minor
4+
'@clerk/tanstack-react-start': minor
5+
'@clerk/react-router': minor
6+
'@clerk/express': minor
7+
'@clerk/fastify': minor
8+
'@clerk/astro': minor
9+
'@clerk/nuxt': minor
10+
'@clerk/vue': minor
11+
'@clerk/expo': minor
12+
'@clerk/chrome-extension': minor
13+
---
14+
15+
Add `/types` subpath export to re-export types from `@clerk/shared/types` along 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/types` as a separate dependency.

0 commit comments

Comments
 (0)