@clerk/upgrade 2.0.0-canary.v20260106195108 → 2.0.0-canary.v20260107174554

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,32 @@
1
+ ---
2
+ title: '`Clerk` export removed from `@clerk/expo`'
3
+ matcher: "import\\s+\\{[^}]*\\bClerk\\b[^}]*\\}\\s+from\\s+['\"]@clerk/(clerk-)?expo['\"]"
4
+ matcherFlags: 'm'
5
+ category: 'deprecation-removal'
6
+ ---
7
+
8
+ The deprecated `Clerk` export has been removed from `@clerk/expo`. Use `getClerkInstance()` instead.
9
+
10
+ ```diff
11
+ - import { Clerk } from '@clerk/clerk-expo';
12
+ + import { getClerkInstance } from '@clerk/expo';
13
+
14
+ - const token = await Clerk.session?.getToken();
15
+ + const token = await getClerkInstance().session?.getToken();
16
+ ```
17
+
18
+ If you need to create the instance before `ClerkProvider` renders, pass the `publishableKey`:
19
+
20
+ ```tsx
21
+ import { ClerkProvider, getClerkInstance } from '@clerk/expo';
22
+
23
+ const clerkInstance = getClerkInstance({ publishableKey: 'pk_xxx' });
24
+
25
+ // Use the instance outside of React
26
+ const token = await clerkInstance.session?.getToken();
27
+ ```
28
+
29
+ > [!NOTE]
30
+ >
31
+ > - Calling `getClerkInstance()` with different publishable keys will create a new Clerk instance.
32
+ > - If `getClerkInstance` is called without a publishable key, and `ClerkProvider` has not rendered yet, an error will be thrown.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerk/upgrade",
3
- "version": "2.0.0-canary.v20260106195108",
3
+ "version": "2.0.0-canary.v20260107174554",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/clerk/javascript.git",