Skip to content

Commit eed6aeb

Browse files
authored
Merge branch 'main' into feat/nextjs-cache-components-support
2 parents e4f48fb + 41ac43f commit eed6aeb

42 files changed

Lines changed: 1194 additions & 215 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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.

.changeset/fix-ui-min-version.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/ui': patch
3+
---
4+
5+
Fix MIN_CLERK_JS_VERSION to match current clerk-js version until major release

.changeset/quiet-doors-wave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/backend': patch
3+
---
4+
5+
Allow `null` for `period_end` in `BillingSubscriptionItemWebhookEventJSON`

.changeset/quiet-panthers-beam.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@clerk/backend": patch
3+
"@clerk/nextjs": patch
4+
---
5+
6+
fix: Update getAuthData to use isMachineToken

.changeset/wet-boxes-decide.md

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

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,9 @@ jobs:
324324
- test-name: "quickstart"
325325
test-project: "chrome"
326326
next-version: "16"
327+
- test-name: "cache-components"
328+
test-project: "chrome"
329+
next-version: "16"
327330

328331
steps:
329332
- name: Checkout Repo

integration/presets/longRunningApps.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ export const createLongRunningApps = () => {
3636
{ id: 'next.appRouter.withNeedsClientTrust', config: next.appRouter, env: envs.withNeedsClientTrust },
3737
{ id: 'next.appRouter.withSharedUIVariant', config: next.appRouter, env: envs.withSharedUIVariant },
3838

39+
/**
40+
* NextJS apps - cache components
41+
*/
42+
{ id: 'next.cacheComponents', config: next.cacheComponents, env: envs.withEmailCodes },
43+
3944
/**
4045
* Quickstart apps
4146
*/

integration/presets/next.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,23 @@ const appRouterAPWithClerkNextV6 = appRouterQuickstartV6
3636
.setName('next-app-router-ap-clerk-next-v6')
3737
.addDependency('@clerk/nextjs', '6');
3838

39+
const cacheComponents = applicationConfig()
40+
.setName('next-cache-components')
41+
.useTemplate(templates['next-cache-components'])
42+
.setEnvFormatter('public', key => `NEXT_PUBLIC_${key}`)
43+
.addScript('setup', constants.E2E_NPM_FORCE ? 'pnpm install --force' : 'pnpm install')
44+
.addScript('dev', 'pnpm dev')
45+
.addScript('build', 'pnpm build')
46+
.addScript('serve', 'pnpm start')
47+
.addDependency('@clerk/nextjs', constants.E2E_CLERK_JS_VERSION || linkPackage('nextjs'))
48+
.addDependency('@clerk/shared', linkPackage('shared'));
49+
3950
export const next = {
4051
appRouter,
4152
appRouterTurbo,
4253
appRouterQuickstart,
4354
appRouterAPWithClerkNextLatest,
4455
appRouterAPWithClerkNextV6,
4556
appRouterQuickstartV6,
57+
cacheComponents,
4658
} as const;

integration/templates/astro-node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@astrojs/tailwind": "^5.1.3",
1717
"@types/react": "18.3.7",
1818
"@types/react-dom": "18.3.0",
19-
"astro": "^5.0.3",
19+
"astro": "^5.15.9",
2020
"react": "18.3.1",
2121
"react-dom": "18.3.1",
2222
"tailwindcss": "^3.4.17",

integration/templates/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export const templates = {
55
// If /integration becomes a module in the future, use these helpers:
66
// 'next-app-router': fileURLToPath(new URL('./next-app-router', import.meta.url)),
77
'next-app-router': resolve(__dirname, './next-app-router'),
8+
'next-cache-components': resolve(__dirname, './next-cache-components'),
89
'next-app-router-quickstart': resolve(__dirname, './next-app-router-quickstart'),
910
'next-app-router-quickstart-v6': resolve(__dirname, './next-app-router-quickstart-v6'),
1011
'react-cra': resolve(__dirname, './react-cra'),

0 commit comments

Comments
 (0)