File tree Expand file tree Collapse file tree
upgrade/src/versions/core-3/changes Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " @clerk/expo " : major
3+ ---
4+
5+ Move ` useSignInWithApple ` and ` useSignInWithGoogle ` to dedicated entry points to avoid bundling optional dependencies.
6+
7+ ** Breaking Change:** Import paths have changed:
8+
9+ ``` typescript
10+ // Before
11+ import { useSignInWithApple } from ' @clerk/expo' ;
12+ import { useSignInWithGoogle } from ' @clerk/expo' ;
13+
14+ // After
15+ import { useSignInWithApple } from ' @clerk/expo/apple' ;
16+ import { useSignInWithGoogle } from ' @clerk/expo/google' ;
17+ ```
18+
19+ This change prevents ` expo-crypto ` and ` expo-apple-authentication ` from being bundled when not using native sign-in hooks.
Original file line number Diff line number Diff line change 4848 "types" : " ./dist/token-cache/index.d.ts" ,
4949 "default" : " ./dist/token-cache/index.js"
5050 },
51+ "./google" : {
52+ "types" : " ./dist/google/index.d.ts" ,
53+ "default" : " ./dist/google/index.js"
54+ },
55+ "./apple" : {
56+ "types" : " ./dist/apple/index.d.ts" ,
57+ "default" : " ./dist/apple/index.js"
58+ },
5159 "./resource-cache" : {
5260 "types" : " ./dist/resource-cache/index.d.ts" ,
5361 "default" : " ./dist/resource-cache/index.js"
7078 " dist" ,
7179 " android" ,
7280 " ios" ,
81+ " google" ,
82+ " apple" ,
7383 " expo-module.config.json" ,
7484 " app.plugin.js"
7585 ],
Original file line number Diff line number Diff line change 1+ export { useSignInWithApple } from '../hooks/useSignInWithApple' ;
2+ export type {
3+ StartAppleAuthenticationFlowParams ,
4+ StartAppleAuthenticationFlowReturnType ,
5+ } from '../hooks/useSignInWithApple' ;
Original file line number Diff line number Diff line change 1+ export { useSignInWithGoogle } from '../hooks/useSignInWithGoogle' ;
2+ export type {
3+ StartGoogleAuthenticationFlowParams ,
4+ StartGoogleAuthenticationFlowReturnType ,
5+ } from '../hooks/useSignInWithGoogle.types' ;
Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ export {
1212 useReverification ,
1313} from '@clerk/react' ;
1414
15- export * from './useSignInWithApple' ;
16- export * from './useSignInWithGoogle' ;
1715export * from './useSSO' ;
1816export * from './useOAuth' ;
1917export * from './useAuth' ;
Original file line number Diff line number Diff line change 1+ ---
2+ title : ' `useSignInWithApple` and `useSignInWithGoogle` moved to separate entry points'
3+ packages : ['expo']
4+ matcher : " import\\ s+\\ {[^}]*\\ b(useSignInWithApple|useSignInWithGoogle)\\ b[^}]*\\ }\\ s+from\\ s+['\" ]@clerk/expo['\" ]"
5+ matcherFlags : ' m'
6+ category : ' breaking'
7+ ---
8+
9+ The ` useSignInWithApple ` and ` useSignInWithGoogle ` hooks have been moved to dedicated entry points to avoid bundling optional dependencies.
10+
11+ Update your imports:
12+
13+ ``` diff
14+ - import { useSignInWithApple } from '@clerk/expo';
15+ + import { useSignInWithApple } from '@clerk/expo/apple';
16+
17+ - import { useSignInWithGoogle } from '@clerk/expo';
18+ + import { useSignInWithGoogle } from '@clerk/expo/google';
19+ ```
20+
21+ This change prevents ` expo-crypto ` and ` expo-apple-authentication ` from being bundled when not using native sign-in hooks.
You can’t perform that action at this time.
0 commit comments