From 994e7a6fefb23d286028ef1edf44ed5143172927 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 3 Apr 2025 12:59:56 +0000 Subject: [PATCH] ci(repo): Version packages --- .changeset/brave-turkeys-burn.md | 41 -------------- .changeset/bright-crabs-fold.md | 36 ------------ .changeset/bright-suits-cut.md | 2 - .changeset/chatty-loops-watch.md | 20 ------- .changeset/chubby-lies-report.md | 8 --- .changeset/cool-houses-bake.md | 5 -- .changeset/curly-chicken-lick.md | 38 ------------- .changeset/fair-ants-invent.md | 7 --- .changeset/five-towns-start.md | 5 -- .changeset/fluffy-tips-sort.md | 2 - .changeset/forty-radios-drive.md | 32 ----------- .changeset/fresh-clubs-carry.md | 5 -- .changeset/fresh-numbers-sink.md | 5 -- .changeset/fruity-ghosts-scream.md | 41 -------------- .changeset/new-showers-appear.md | 5 -- .changeset/old-roses-wave.md | 5 -- .changeset/olive-apples-return.md | 39 ------------- .changeset/poor-lights-look.md | 5 -- .changeset/quick-jars-give.md | 39 ------------- .changeset/rare-ladybugs-chew.md | 6 -- .changeset/ripe-books-unite.md | 6 -- .changeset/shaggy-garlics-remain.md | 6 -- .changeset/spicy-taxes-kick.md | 7 --- .changeset/spotty-schools-juggle.md | 7 --- .changeset/tall-needles-drive.md | 5 -- .changeset/tiny-planes-lead.md | 7 --- .changeset/tough-crabs-sit.md | 5 -- .changeset/twenty-views-allow.md | 6 -- .changeset/upset-vans-do.md | 38 ------------- .changeset/weak-laws-draw.md | 5 -- .changeset/wide-glasses-wink.md | 5 -- packages/agent-toolkit/CHANGELOG.md | 9 +++ packages/agent-toolkit/package.json | 2 +- packages/astro/CHANGELOG.md | 51 +++++++++++++++++ packages/astro/package.json | 2 +- packages/backend/CHANGELOG.md | 43 ++++++++++++++ packages/backend/package.json | 2 +- packages/chrome-extension/CHANGELOG.md | 9 +++ packages/chrome-extension/package.json | 2 +- packages/clerk-js/CHANGELOG.md | 43 ++++++++++++++ packages/clerk-js/package.json | 2 +- packages/elements/CHANGELOG.md | 9 +++ packages/elements/package.json | 2 +- packages/expo-passkeys/CHANGELOG.md | 8 +++ packages/expo-passkeys/package.json | 2 +- packages/expo/CHANGELOG.md | 10 ++++ packages/expo/package.json | 2 +- packages/express/CHANGELOG.md | 49 ++++++++++++++++ packages/express/package.json | 2 +- packages/fastify/CHANGELOG.md | 44 +++++++++++++++ packages/fastify/package.json | 2 +- packages/localizations/CHANGELOG.md | 11 ++++ packages/localizations/package.json | 2 +- packages/nextjs/CHANGELOG.md | 54 ++++++++++++++++++ packages/nextjs/package.json | 2 +- packages/nuxt/CHANGELOG.md | 66 ++++++++++++++++++++++ packages/nuxt/package.json | 2 +- packages/react-router/CHANGELOG.md | 47 +++++++++++++++ packages/react-router/package.json | 2 +- packages/react/CHANGELOG.md | 10 ++++ packages/react/package.json | 2 +- packages/remix/CHANGELOG.md | 10 ++++ packages/remix/package.json | 2 +- packages/shared/CHANGELOG.md | 17 ++++++ packages/shared/package.json | 2 +- packages/tanstack-react-start/CHANGELOG.md | 50 ++++++++++++++++ packages/tanstack-react-start/package.json | 2 +- packages/testing/CHANGELOG.md | 9 +++ packages/testing/package.json | 2 +- packages/themes/CHANGELOG.md | 7 +++ packages/themes/package.json | 2 +- packages/types/CHANGELOG.md | 10 ++++ packages/types/package.json | 2 +- packages/vue/CHANGELOG.md | 8 +++ packages/vue/package.json | 2 +- 75 files changed, 596 insertions(+), 465 deletions(-) delete mode 100644 .changeset/brave-turkeys-burn.md delete mode 100644 .changeset/bright-crabs-fold.md delete mode 100644 .changeset/bright-suits-cut.md delete mode 100644 .changeset/chatty-loops-watch.md delete mode 100644 .changeset/chubby-lies-report.md delete mode 100644 .changeset/cool-houses-bake.md delete mode 100644 .changeset/curly-chicken-lick.md delete mode 100644 .changeset/fair-ants-invent.md delete mode 100644 .changeset/five-towns-start.md delete mode 100644 .changeset/fluffy-tips-sort.md delete mode 100644 .changeset/forty-radios-drive.md delete mode 100644 .changeset/fresh-clubs-carry.md delete mode 100644 .changeset/fresh-numbers-sink.md delete mode 100644 .changeset/fruity-ghosts-scream.md delete mode 100644 .changeset/new-showers-appear.md delete mode 100644 .changeset/old-roses-wave.md delete mode 100644 .changeset/olive-apples-return.md delete mode 100644 .changeset/poor-lights-look.md delete mode 100644 .changeset/quick-jars-give.md delete mode 100644 .changeset/rare-ladybugs-chew.md delete mode 100644 .changeset/ripe-books-unite.md delete mode 100644 .changeset/shaggy-garlics-remain.md delete mode 100644 .changeset/spicy-taxes-kick.md delete mode 100644 .changeset/spotty-schools-juggle.md delete mode 100644 .changeset/tall-needles-drive.md delete mode 100644 .changeset/tiny-planes-lead.md delete mode 100644 .changeset/tough-crabs-sit.md delete mode 100644 .changeset/twenty-views-allow.md delete mode 100644 .changeset/upset-vans-do.md delete mode 100644 .changeset/weak-laws-draw.md delete mode 100644 .changeset/wide-glasses-wink.md diff --git a/.changeset/brave-turkeys-burn.md b/.changeset/brave-turkeys-burn.md deleted file mode 100644 index ae8e5e5bd91..00000000000 --- a/.changeset/brave-turkeys-burn.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -'@clerk/tanstack-react-start': minor ---- - -Introduce a `verifyWebhook()` function to verify incoming Clerk webhook requests and process the payload. This function handles webhook signature verification using `Svix` and is now available across all backend and fullstack SDKs. - -To get started, install [`svix`](https://www.npmjs.com/package/svix), which Clerk uses to verify its webhooks: - -```shell -npm install svix -``` - -Then in your webhook route handler, import `verifyWebhook()` from the TanStack React Start SDK: - -```ts -// pages/api/webhooks.ts -import { verifyWebhook } from '@clerk/tanstack-react-start/webhooks'; - -export const APIRoute = createAPIFileRoute('/api/webhooks')({ - POST: async ({ request }) => { - try { - const evt = await verifyWebhook(req); - - // Do something with payload - const { id } = evt.data; - const eventType = evt.type; - console.log(`Received webhook with ID ${id} and event type of ${eventType}`); - console.log('Webhook payload:', body); - - return new Response('Webhook received', { status: 200 }); - } catch (err) { - console.error('Error: Could not verify webhook:', err); - return new Response('Error: Verification error', { - status: 400, - }); - } - } -}) -``` - -For more information on how to sync Clerk data to your app with webhooks, [see our guide](https://clerk.com/docs/webhooks/sync-data). diff --git a/.changeset/bright-crabs-fold.md b/.changeset/bright-crabs-fold.md deleted file mode 100644 index 853725fcece..00000000000 --- a/.changeset/bright-crabs-fold.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -'@clerk/fastify': minor ---- - -Introduce a `verifyWebhook()` function to verify incoming Clerk webhook requests and process the payload. This function handles webhook signature verification using `Svix` and is now available across all backend and fullstack SDKs. - -To get started, install [`svix`](https://www.npmjs.com/package/svix), which Clerk uses to verify its webhooks: - -```shell -npm install svix -``` - -Then in your webhook route handler, import `verifyWebhook()` from the Fastify SDK: - -```ts -import { verifyWebhook } from '@clerk/fastify/webhooks'; - -fastify.post('/api/webhooks', async (request, reply) => { - try { - const evt = await verifyWebhook(request); - - // Do something with payload - const { id } = evt.data; - const eventType = evt.type; - console.log(`Received webhook with ID ${id} and event type of ${eventType}`); - console.log('Webhook payload:', evt.data); - - return reply.status(200).send('Webhook received'); - } catch (err) { - console.log('Error: Could not verify webhook:', err); - return reply.status(400).send('Error: Verification error'); - } -}) -``` - -For more information on how to sync Clerk data to your app with webhooks, [see our guide](https://clerk.com/docs/webhooks/sync-data). diff --git a/.changeset/bright-suits-cut.md b/.changeset/bright-suits-cut.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/bright-suits-cut.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/chatty-loops-watch.md b/.changeset/chatty-loops-watch.md deleted file mode 100644 index f66f3c52a8f..00000000000 --- a/.changeset/chatty-loops-watch.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@clerk/nuxt': minor ---- - -Deprecate `event.context.auth` in favor of `event.context.auth()` as function - -```diff -export default clerkMiddleware((event) => { -+ const { userId } = event.context.auth() -- const { userId } = event.context.auth - const isAdminRoute = event.path.startsWith('/api/admin') - - if (!userId && isAdminRoute) { - throw createError({ - statusCode: 401, - statusMessage: 'Unauthorized: User not signed in', - }) - } -}) -``` diff --git a/.changeset/chubby-lies-report.md b/.changeset/chubby-lies-report.md deleted file mode 100644 index 3fb11a56c62..00000000000 --- a/.changeset/chubby-lies-report.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@clerk/clerk-js': minor ---- - -Improve session refresh logic. -- Switched from interval-based polling to timeout-based polling, ensuring retries for a `getToken()` call complete before the next poll begins. -- `Clerk.handleUnauthenticated()` now sets the session to null when a `/client` request returns a `500` status code, preventing infinite request loops. -- Improved error handling: If the `/client` request fails during initialization, the poller stops, a dummy client is created, a manual request to `/tokens` is attempted, and polling resumes. diff --git a/.changeset/cool-houses-bake.md b/.changeset/cool-houses-bake.md deleted file mode 100644 index e03399ab399..00000000000 --- a/.changeset/cool-houses-bake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/nextjs': patch ---- - -Fixing a Typing error in clerkMiddleware diff --git a/.changeset/curly-chicken-lick.md b/.changeset/curly-chicken-lick.md deleted file mode 100644 index b4ec1b647a9..00000000000 --- a/.changeset/curly-chicken-lick.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -'@clerk/react-router': minor ---- - -Introduce a `verifyWebhook()` function to verify incoming Clerk webhook requests and process the payload. This function handles webhook signature verification using `Svix` and is now available across all backend and fullstack SDKs. - -To get started, install [`svix`](https://www.npmjs.com/package/svix), which Clerk uses to verify its webhooks: - -```shell -npm install svix -``` - -Then in your webhook route handler, import `verifyWebhook()` from the React Router SDK: - -```ts -import { verifyWebhook } from '@clerk/react-router/webhooks'; - -export const action = async ({ request }) => { - try { - const evt = await verifyWebhook(request); - - // Do something with payload - const { id } = evt.data; - const eventType = evt.type; - console.log(`Received webhook with ID ${id} and event type of ${eventType}`); - console.log('Webhook payload:', evt.data); - - return new Response('Webhook received', { status: 200 }); - } catch (err) { - console.log('Error: Could not verify webhook:', err); - return new Response('Error: Verification error', { - status: 400 - }); - } -}; -``` - -For more information on how to sync Clerk data to your app with webhooks, [see our guide](https://clerk.com/docs/webhooks/sync-data). diff --git a/.changeset/fair-ants-invent.md b/.changeset/fair-ants-invent.md deleted file mode 100644 index b2b87bf1b63..00000000000 --- a/.changeset/fair-ants-invent.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@clerk/clerk-js': minor -'@clerk/backend': minor -'@clerk/shared': minor ---- - -Expose `retryAfter` value on `ClerkAPIResponseError` for 429 responses. diff --git a/.changeset/five-towns-start.md b/.changeset/five-towns-start.md deleted file mode 100644 index 7103589fd52..00000000000 --- a/.changeset/five-towns-start.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/shared': minor ---- - -Set `retryImmediately: false` as the default for `retry()`. diff --git a/.changeset/fluffy-tips-sort.md b/.changeset/fluffy-tips-sort.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/fluffy-tips-sort.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/forty-radios-drive.md b/.changeset/forty-radios-drive.md deleted file mode 100644 index b83e34b615c..00000000000 --- a/.changeset/forty-radios-drive.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -"@clerk/backend": minor ---- - -Introduce a `verifyWebhook()` function to verify incoming Clerk webhook requests and process the payload. This function handles webhook signature verification using `Svix` and is now available across all backend and fullstack SDKs. - -To get started, install [`svix`](https://www.npmjs.com/package/svix), which Clerk uses to verify its webhooks: - -```shell -npm install svix -``` - -Then in your webhook route handler, import `verifyWebhook()` from the Backend SDK: - -```ts -// app/api/webhooks/route.ts -import { verifyWebhook } from '@clerk/backend/webhooks'; - -try { - const evt = await verifyWebhook(req); - - // Do something with payload - const { id } = evt.data; - const eventType = evt.type; - console.log(`Received webhook with ID ${id} and event type of ${eventType}`); - console.log('Webhook payload:', body); -} catch (err) { - console.error('Error: Could not verify webhook:', err); -} -``` - -For more information on how to sync Clerk data to your app with webhooks, [see our guide](https://clerk.com/docs/webhooks/sync-data). \ No newline at end of file diff --git a/.changeset/fresh-clubs-carry.md b/.changeset/fresh-clubs-carry.md deleted file mode 100644 index 20baa33b716..00000000000 --- a/.changeset/fresh-clubs-carry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/localizations': patch ---- - -Update fr-FR TOS/privacy policy loclization to include the appropriate links. diff --git a/.changeset/fresh-numbers-sink.md b/.changeset/fresh-numbers-sink.md deleted file mode 100644 index d813b559e41..00000000000 --- a/.changeset/fresh-numbers-sink.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/clerk-js': patch ---- - -Remove non-actionable error from Session poller. diff --git a/.changeset/fruity-ghosts-scream.md b/.changeset/fruity-ghosts-scream.md deleted file mode 100644 index dd8ce97e725..00000000000 --- a/.changeset/fruity-ghosts-scream.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -"@clerk/express": minor ---- - -Introduce a `verifyWebhook()` function to verify incoming Clerk webhook requests and process the payload. This function handles webhook signature verification using `Svix` and is now available across all backend and fullstack SDKs. - -To get started, install [`svix`](https://www.npmjs.com/package/svix), which Clerk uses to verify its webhooks: - -```shell -npm install svix -``` - -Then in your webhook route handler, import `verifyWebhook()` from the Express SDK: - -```ts -import { verifyWebhook } from '@clerk/express/webhooks'; - -app.post( - '/api/webhooks', - bodyParser.raw({ type: 'application/json' }), - - async (req, res) => { - try { - const evt = await verifyWebhook(req); - - // Do something with payload - const { id } = evt.data; - const eventType = evt.type; - console.log(`Received webhook with ID ${id} and event type of ${eventType}`); - console.log('Webhook payload:', body); - - return res.status(200).send('Webhook received') - } catch (err) { - console.log('Error: Could not verify webhook:', err.message) - return res.status(400).send('Error: Verification error') - } - }, -) -``` - -For more information on how to sync Clerk data to your app with webhooks, [see our guide](https://clerk.com/docs/webhooks/sync-data). \ No newline at end of file diff --git a/.changeset/new-showers-appear.md b/.changeset/new-showers-appear.md deleted file mode 100644 index 3b447b5aced..00000000000 --- a/.changeset/new-showers-appear.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/clerk-js': patch ---- - -Treat pending sessions as signed-out by default in `Clerk.isSignedIn` diff --git a/.changeset/old-roses-wave.md b/.changeset/old-roses-wave.md deleted file mode 100644 index ca77fdc3999..00000000000 --- a/.changeset/old-roses-wave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/clerk-js': patch ---- - -add v0 preview domain to opt-in to pop-up auth flow diff --git a/.changeset/olive-apples-return.md b/.changeset/olive-apples-return.md deleted file mode 100644 index a6891369c32..00000000000 --- a/.changeset/olive-apples-return.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -"@clerk/nextjs": minor ---- - -Introduce a `verifyWebhook()` function to verify incoming Clerk webhook requests and process the payload. This function handles webhook signature verification using `Svix` and is now available across all backend and fullstack SDKs. - -To get started, install [`svix`](https://www.npmjs.com/package/svix), which Clerk uses to verify its webhooks: - -```shell -npm install svix -``` - -Then in your webhook route handler, import `verifyWebhook()` from the Next.js SDK: - -```ts -// app/api/webhooks/route.ts -import { verifyWebhook } from '@clerk/nextjs/webhooks'; - -export async function POST(req: Request) { - try { - const evt = await verifyWebhook(req); - - // Do something with payload - const { id } = evt.data; - const eventType = evt.type; - console.log(`Received webhook with ID ${id} and event type of ${eventType}`); - console.log('Webhook payload:', body); - - return new Response('Webhook received', { status: 200 }); - } catch (err) { - console.error('Error: Could not verify webhook:', err); - return new Response('Error: Verification error', { - status: 400, - }); - } -} -``` - -For more information on how to sync Clerk data to your app with webhooks, [see our guide](https://clerk.com/docs/webhooks/sync-data). \ No newline at end of file diff --git a/.changeset/poor-lights-look.md b/.changeset/poor-lights-look.md deleted file mode 100644 index ecd3811b465..00000000000 --- a/.changeset/poor-lights-look.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/clerk-js': patch ---- - -Fix sign in prepare first factor cache key diff --git a/.changeset/quick-jars-give.md b/.changeset/quick-jars-give.md deleted file mode 100644 index 580f7199dd3..00000000000 --- a/.changeset/quick-jars-give.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -'@clerk/astro': minor ---- - -Introduce a `verifyWebhook()` function to verify incoming Clerk webhook requests and process the payload. This function handles webhook signature verification using `Svix` and is now available across all backend and fullstack SDKs. - -To get started, install [`svix`](https://www.npmjs.com/package/svix), which Clerk uses to verify its webhooks: - -```shell -npm install svix -``` - -Then in your webhook route handler, import `verifyWebhook()` from the Astro SDK: - -```ts -// pages/api/webhooks.ts -import { verifyWebhook } from '@clerk/astro/webhooks'; - -export const POST = ({ request }) => { - try { - const evt = await verifyWebhook(request); - - // Do something with payload - const { id } = evt.data; - const eventType = evt.type; - console.log(`Received webhook with ID ${id} and event type of ${eventType}`); - console.log('Webhook payload:', body); - - return new Response('Webhook received', { status: 200 }); - } catch (err) { - console.error('Error: Could not verify webhook:', err); - return new Response('Error: Verification error', { - status: 400, - }); - } -} -``` - -For more information on how to sync Clerk data to your app with webhooks, [see our guide](https://clerk.com/docs/webhooks/sync-data). diff --git a/.changeset/rare-ladybugs-chew.md b/.changeset/rare-ladybugs-chew.md deleted file mode 100644 index 6c342587080..00000000000 --- a/.changeset/rare-ladybugs-chew.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@clerk/clerk-react": patch -"@clerk/types": patch ---- - -Improve JSDoc comments diff --git a/.changeset/ripe-books-unite.md b/.changeset/ripe-books-unite.md deleted file mode 100644 index 39372a8a0da..00000000000 --- a/.changeset/ripe-books-unite.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@clerk/clerk-js': patch -'@clerk/shared': patch ---- - -Create a utility that implements `Promise.allSettled` with ES6/ES2015 compatibility. diff --git a/.changeset/shaggy-garlics-remain.md b/.changeset/shaggy-garlics-remain.md deleted file mode 100644 index 99d588424a0..00000000000 --- a/.changeset/shaggy-garlics-remain.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@clerk/clerk-js': patch -'@clerk/types': patch ---- - -Remove usage of `` from ``. diff --git a/.changeset/spicy-taxes-kick.md b/.changeset/spicy-taxes-kick.md deleted file mode 100644 index a970786c2f4..00000000000 --- a/.changeset/spicy-taxes-kick.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@clerk/localizations': patch -'@clerk/clerk-js': patch -'@clerk/types': patch ---- - -Add payment source section to `UserProfile` diff --git a/.changeset/spotty-schools-juggle.md b/.changeset/spotty-schools-juggle.md deleted file mode 100644 index 46ddb5e1045..00000000000 --- a/.changeset/spotty-schools-juggle.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@clerk/nextjs': patch -'@clerk/astro': patch -'@clerk/nuxt': patch ---- - -Remove telemtry event from `clerkMiddleware()`. diff --git a/.changeset/tall-needles-drive.md b/.changeset/tall-needles-drive.md deleted file mode 100644 index 9999f275c79..00000000000 --- a/.changeset/tall-needles-drive.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/clerk-js': patch ---- - -Update secured by clerk link URL. diff --git a/.changeset/tiny-planes-lead.md b/.changeset/tiny-planes-lead.md deleted file mode 100644 index 57e7bc84327..00000000000 --- a/.changeset/tiny-planes-lead.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@clerk/backend': minor -'@clerk/nextjs': minor -'@clerk/astro': minor ---- - -Redirect to tasks on `auth.protect` and `auth.redirectToSignIn` diff --git a/.changeset/tough-crabs-sit.md b/.changeset/tough-crabs-sit.md deleted file mode 100644 index 7a097dde3bb..00000000000 --- a/.changeset/tough-crabs-sit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/clerk-js': patch ---- - -Emit captcha errors if the turnstile fails to execute diff --git a/.changeset/twenty-views-allow.md b/.changeset/twenty-views-allow.md deleted file mode 100644 index 30b317fd2ad..00000000000 --- a/.changeset/twenty-views-allow.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@clerk/clerk-js': patch ---- - -- Sorting available factors so factors with primary will always be on top -- Allows to set primary phone number action when reverification is enabled diff --git a/.changeset/upset-vans-do.md b/.changeset/upset-vans-do.md deleted file mode 100644 index 157aa324eb5..00000000000 --- a/.changeset/upset-vans-do.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -'@clerk/nuxt': minor ---- - -Introduce a `verifyWebhook()` function to verify incoming Clerk webhook requests and process the payload. This function handles webhook signature verification using `Svix` and is now available across all backend and fullstack SDKs. - -To get started, install [`svix`](https://www.npmjs.com/package/svix), which Clerk uses to verify its webhooks: - -```shell -npm install svix -``` - -Then in your webhook route handler, import `verifyWebhook()` from the Nuxt SDK: - -```ts -// server/api/webhooks.post.ts -import { verifyWebhook } from '@clerk/nuxt/webhooks'; - -export default eventHandler(async (event) => { - try { - const evt = await verifyWebhook(event); - - // Do something with payload - const { id } = evt.data; - const eventType = evt.type; - console.log(`Received webhook with ID ${id} and event type of ${eventType}`); - console.log('Webhook payload:', body); - - return 'Webhook received' - } catch (err) { - console.error('Error: Could not verify webhook:', err); - setResponseStatus(event, 400) - return 'Error: Verification error'; - } -}) -``` - -For more information on how to sync Clerk data to your app with webhooks, [see our guide](https://clerk.com/docs/webhooks/sync-data). diff --git a/.changeset/weak-laws-draw.md b/.changeset/weak-laws-draw.md deleted file mode 100644 index 0043b4ff774..00000000000 --- a/.changeset/weak-laws-draw.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/shared': minor ---- - -Bump `swr` to `2.3.3`. diff --git a/.changeset/wide-glasses-wink.md b/.changeset/wide-glasses-wink.md deleted file mode 100644 index 949e65c1184..00000000000 --- a/.changeset/wide-glasses-wink.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/clerk-js': patch ---- - -Filters out non supported strategies for reverification diff --git a/packages/agent-toolkit/CHANGELOG.md b/packages/agent-toolkit/CHANGELOG.md index 6be6c0c73e4..2ca133f0cf5 100644 --- a/packages/agent-toolkit/CHANGELOG.md +++ b/packages/agent-toolkit/CHANGELOG.md @@ -1,5 +1,14 @@ # @clerk/agent-toolkit +## 0.0.17 + +### Patch Changes + +- Updated dependencies [[`60a9a51`](https://github.com/clerk/javascript/commit/60a9a51dff7d59e7397536586cf1cfe029bc021b), [`e984494`](https://github.com/clerk/javascript/commit/e984494416dda9a6f04acaaba61f8c2683090961), [`cd6ee92`](https://github.com/clerk/javascript/commit/cd6ee92d5b427ca548216f429ca4e31c6acd263c), [`ec4521b`](https://github.com/clerk/javascript/commit/ec4521b4fe56602f524a0c6d1b09d21aef5d8bd0), [`38828ae`](https://github.com/clerk/javascript/commit/38828ae58d6d4e8e3c60945284930179b2b6bb40), [`f30fa75`](https://github.com/clerk/javascript/commit/f30fa750754f19030f932a666d2bdbdf0d86743d), [`9c68678`](https://github.com/clerk/javascript/commit/9c68678e87047e6312b708b775ebfb23a3e22f8a), [`fe065a9`](https://github.com/clerk/javascript/commit/fe065a934c583174ad4c140e04dedbe6d88fc3a0), [`619cde8`](https://github.com/clerk/javascript/commit/619cde8c532d635d910ebbc08ad6abcc025694b4)]: + - @clerk/backend@1.26.0 + - @clerk/shared@3.3.0 + - @clerk/types@4.50.2 + ## 0.0.16 ### Patch Changes diff --git a/packages/agent-toolkit/package.json b/packages/agent-toolkit/package.json index 2412fcd1dac..bb9ade62e13 100644 --- a/packages/agent-toolkit/package.json +++ b/packages/agent-toolkit/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/agent-toolkit", - "version": "0.0.16", + "version": "0.0.17", "description": "Clerk Toolkit for AI Agents", "homepage": "https://clerk.com/", "bugs": { diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 9154cf327f7..483c9f7e0cc 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,56 @@ # @clerk/astro +## 2.5.0 + +### Minor Changes + +- Introduce a `verifyWebhook()` function to verify incoming Clerk webhook requests and process the payload. This function handles webhook signature verification using `Svix` and is now available across all backend and fullstack SDKs. ([#5468](https://github.com/clerk/javascript/pull/5468)) by [@wobsoriano](https://github.com/wobsoriano) + + To get started, install [`svix`](https://www.npmjs.com/package/svix), which Clerk uses to verify its webhooks: + + ```shell + npm install svix + ``` + + Then in your webhook route handler, import `verifyWebhook()` from the Astro SDK: + + ```ts + // pages/api/webhooks.ts + import { verifyWebhook } from '@clerk/astro/webhooks'; + + export const POST = ({ request }) => { + try { + const evt = await verifyWebhook(request); + + // Do something with payload + const { id } = evt.data; + const eventType = evt.type; + console.log(`Received webhook with ID ${id} and event type of ${eventType}`); + console.log('Webhook payload:', body); + + return new Response('Webhook received', { status: 200 }); + } catch (err) { + console.error('Error: Could not verify webhook:', err); + return new Response('Error: Verification error', { + status: 400, + }); + } + }; + ``` + + For more information on how to sync Clerk data to your app with webhooks, [see our guide](https://clerk.com/docs/webhooks/sync-data). + +- Redirect to tasks on `auth.protect` and `auth.redirectToSignIn` ([#5440](https://github.com/clerk/javascript/pull/5440)) by [@LauraBeatris](https://github.com/LauraBeatris) + +### Patch Changes + +- Remove telemtry event from `clerkMiddleware()`. ([#5501](https://github.com/clerk/javascript/pull/5501)) by [@brkalow](https://github.com/brkalow) + +- Updated dependencies [[`60a9a51`](https://github.com/clerk/javascript/commit/60a9a51dff7d59e7397536586cf1cfe029bc021b), [`e984494`](https://github.com/clerk/javascript/commit/e984494416dda9a6f04acaaba61f8c2683090961), [`cd6ee92`](https://github.com/clerk/javascript/commit/cd6ee92d5b427ca548216f429ca4e31c6acd263c), [`ec4521b`](https://github.com/clerk/javascript/commit/ec4521b4fe56602f524a0c6d1b09d21aef5d8bd0), [`38828ae`](https://github.com/clerk/javascript/commit/38828ae58d6d4e8e3c60945284930179b2b6bb40), [`f30fa75`](https://github.com/clerk/javascript/commit/f30fa750754f19030f932a666d2bdbdf0d86743d), [`9c68678`](https://github.com/clerk/javascript/commit/9c68678e87047e6312b708b775ebfb23a3e22f8a), [`fe065a9`](https://github.com/clerk/javascript/commit/fe065a934c583174ad4c140e04dedbe6d88fc3a0), [`619cde8`](https://github.com/clerk/javascript/commit/619cde8c532d635d910ebbc08ad6abcc025694b4)]: + - @clerk/backend@1.26.0 + - @clerk/shared@3.3.0 + - @clerk/types@4.50.2 + ## 2.4.5 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index 36de0124500..5e7b0b83759 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/astro", - "version": "2.4.5", + "version": "2.5.0", "description": "Clerk SDK for Astro", "keywords": [ "auth", diff --git a/packages/backend/CHANGELOG.md b/packages/backend/CHANGELOG.md index 9aade633257..fdb0d217b87 100644 --- a/packages/backend/CHANGELOG.md +++ b/packages/backend/CHANGELOG.md @@ -1,5 +1,48 @@ # Change Log +## 1.26.0 + +### Minor Changes + +- Expose `retryAfter` value on `ClerkAPIResponseError` for 429 responses. ([#5480](https://github.com/clerk/javascript/pull/5480)) by [@dstaley](https://github.com/dstaley) + +- Introduce a `verifyWebhook()` function to verify incoming Clerk webhook requests and process the payload. This function handles webhook signature verification using `Svix` and is now available across all backend and fullstack SDKs. ([#5468](https://github.com/clerk/javascript/pull/5468)) by [@wobsoriano](https://github.com/wobsoriano) + + To get started, install [`svix`](https://www.npmjs.com/package/svix), which Clerk uses to verify its webhooks: + + ```shell + npm install svix + ``` + + Then in your webhook route handler, import `verifyWebhook()` from the Backend SDK: + + ```ts + // app/api/webhooks/route.ts + import { verifyWebhook } from '@clerk/backend/webhooks'; + + try { + const evt = await verifyWebhook(req); + + // Do something with payload + const { id } = evt.data; + const eventType = evt.type; + console.log(`Received webhook with ID ${id} and event type of ${eventType}`); + console.log('Webhook payload:', body); + } catch (err) { + console.error('Error: Could not verify webhook:', err); + } + ``` + + For more information on how to sync Clerk data to your app with webhooks, [see our guide](https://clerk.com/docs/webhooks/sync-data). + +- Redirect to tasks on `auth.protect` and `auth.redirectToSignIn` ([#5440](https://github.com/clerk/javascript/pull/5440)) by [@LauraBeatris](https://github.com/LauraBeatris) + +### Patch Changes + +- Updated dependencies [[`60a9a51`](https://github.com/clerk/javascript/commit/60a9a51dff7d59e7397536586cf1cfe029bc021b), [`e984494`](https://github.com/clerk/javascript/commit/e984494416dda9a6f04acaaba61f8c2683090961), [`ec4521b`](https://github.com/clerk/javascript/commit/ec4521b4fe56602f524a0c6d1b09d21aef5d8bd0), [`38828ae`](https://github.com/clerk/javascript/commit/38828ae58d6d4e8e3c60945284930179b2b6bb40), [`f30fa75`](https://github.com/clerk/javascript/commit/f30fa750754f19030f932a666d2bdbdf0d86743d), [`9c68678`](https://github.com/clerk/javascript/commit/9c68678e87047e6312b708b775ebfb23a3e22f8a), [`619cde8`](https://github.com/clerk/javascript/commit/619cde8c532d635d910ebbc08ad6abcc025694b4)]: + - @clerk/shared@3.3.0 + - @clerk/types@4.50.2 + ## 1.25.8 ### Patch Changes diff --git a/packages/backend/package.json b/packages/backend/package.json index e495cd12d6d..9d88dc880b8 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/backend", - "version": "1.25.8", + "version": "1.26.0", "description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities", "homepage": "https://clerk.com/", "bugs": { diff --git a/packages/chrome-extension/CHANGELOG.md b/packages/chrome-extension/CHANGELOG.md index 8458b653b35..3d63e95d364 100644 --- a/packages/chrome-extension/CHANGELOG.md +++ b/packages/chrome-extension/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 2.2.24 + +### Patch Changes + +- Updated dependencies [[`e984494`](https://github.com/clerk/javascript/commit/e984494416dda9a6f04acaaba61f8c2683090961), [`60a9a51`](https://github.com/clerk/javascript/commit/60a9a51dff7d59e7397536586cf1cfe029bc021b), [`e984494`](https://github.com/clerk/javascript/commit/e984494416dda9a6f04acaaba61f8c2683090961), [`837d7ca`](https://github.com/clerk/javascript/commit/837d7ca9d2bf6e07caeaca94795f6810b2a43b81), [`243b153`](https://github.com/clerk/javascript/commit/243b153377feaf1b9786c7d076f08b3b89e49481), [`7ee21b7`](https://github.com/clerk/javascript/commit/7ee21b717e930d5a54febb14cc08bd4d04f11efb), [`1b1d49b`](https://github.com/clerk/javascript/commit/1b1d49b222f7d7a96305d2b8791935157305e0dd), [`ec4521b`](https://github.com/clerk/javascript/commit/ec4521b4fe56602f524a0c6d1b09d21aef5d8bd0), [`38828ae`](https://github.com/clerk/javascript/commit/38828ae58d6d4e8e3c60945284930179b2b6bb40), [`f30fa75`](https://github.com/clerk/javascript/commit/f30fa750754f19030f932a666d2bdbdf0d86743d), [`9c68678`](https://github.com/clerk/javascript/commit/9c68678e87047e6312b708b775ebfb23a3e22f8a), [`6fcd93c`](https://github.com/clerk/javascript/commit/6fcd93c838f22a4ba508efa3dec8e9e8c86bf8dd), [`ab1c379`](https://github.com/clerk/javascript/commit/ab1c3791fcfed78f6747b99f6db4e532268c4790), [`04ba49f`](https://github.com/clerk/javascript/commit/04ba49fd447a9ce677267364d9ed4c0ec445881b), [`619cde8`](https://github.com/clerk/javascript/commit/619cde8c532d635d910ebbc08ad6abcc025694b4), [`743f1f1`](https://github.com/clerk/javascript/commit/743f1f1ff9217142f55259a27d364712b3737429)]: + - @clerk/clerk-js@5.59.0 + - @clerk/shared@3.3.0 + - @clerk/clerk-react@5.25.6 + ## 2.2.23 ### Patch Changes diff --git a/packages/chrome-extension/package.json b/packages/chrome-extension/package.json index 7dd62af67ff..1f0db2b2840 100644 --- a/packages/chrome-extension/package.json +++ b/packages/chrome-extension/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/chrome-extension", - "version": "2.2.23", + "version": "2.2.24", "description": "Clerk SDK for Chrome extensions", "keywords": [ "auth", diff --git a/packages/clerk-js/CHANGELOG.md b/packages/clerk-js/CHANGELOG.md index 9055adb54dd..9429a083882 100644 --- a/packages/clerk-js/CHANGELOG.md +++ b/packages/clerk-js/CHANGELOG.md @@ -1,5 +1,48 @@ # Change Log +## 5.59.0 + +### Minor Changes + +- Improve session refresh logic. ([#5397](https://github.com/clerk/javascript/pull/5397)) by [@panteliselef](https://github.com/panteliselef) + + - Switched from interval-based polling to timeout-based polling, ensuring retries for a `getToken()` call complete before the next poll begins. + - `Clerk.handleUnauthenticated()` now sets the session to null when a `/client` request returns a `500` status code, preventing infinite request loops. + - Improved error handling: If the `/client` request fails during initialization, the poller stops, a dummy client is created, a manual request to `/tokens` is attempted, and polling resumes. + +- Expose `retryAfter` value on `ClerkAPIResponseError` for 429 responses. ([#5480](https://github.com/clerk/javascript/pull/5480)) by [@dstaley](https://github.com/dstaley) + +### Patch Changes + +- Remove non-actionable error from Session poller. ([#5494](https://github.com/clerk/javascript/pull/5494)) by [@panteliselef](https://github.com/panteliselef) + +- Treat pending sessions as signed-out by default in `Clerk.isSignedIn` ([#5505](https://github.com/clerk/javascript/pull/5505)) by [@LauraBeatris](https://github.com/LauraBeatris) + +- add v0 preview domain to opt-in to pop-up auth flow ([#5502](https://github.com/clerk/javascript/pull/5502)) by [@mwickett](https://github.com/mwickett) + +- Fix sign in prepare first factor cache key ([#5474](https://github.com/clerk/javascript/pull/5474)) by [@octoper](https://github.com/octoper) + +- Create a utility that implements `Promise.allSettled` with ES6/ES2015 compatibility. ([#5491](https://github.com/clerk/javascript/pull/5491)) by [@panteliselef](https://github.com/panteliselef) + +- Remove usage of `` from ``. ([#5469](https://github.com/clerk/javascript/pull/5469)) by [@alexcarpenter](https://github.com/alexcarpenter) + +- Add payment source section to `UserProfile` ([#5492](https://github.com/clerk/javascript/pull/5492)) by [@aeliox](https://github.com/aeliox) + +- Update secured by clerk link URL. ([#5504](https://github.com/clerk/javascript/pull/5504)) by [@alexcarpenter](https://github.com/alexcarpenter) + +- Emit captcha errors if the turnstile fails to execute ([#5520](https://github.com/clerk/javascript/pull/5520)) by [@anagstef](https://github.com/anagstef) + +- - Sorting available factors so factors with primary will always be on top ([#5465](https://github.com/clerk/javascript/pull/5465)) by [@octoper](https://github.com/octoper) + + - Allows to set primary phone number action when reverification is enabled + +- Filters out non supported strategies for reverification ([#5475](https://github.com/clerk/javascript/pull/5475)) by [@octoper](https://github.com/octoper) + +- Updated dependencies [[`60a9a51`](https://github.com/clerk/javascript/commit/60a9a51dff7d59e7397536586cf1cfe029bc021b), [`e984494`](https://github.com/clerk/javascript/commit/e984494416dda9a6f04acaaba61f8c2683090961), [`67d34eb`](https://github.com/clerk/javascript/commit/67d34eb28b42ab0b111ed7ff03edc55668fddd3d), [`ec4521b`](https://github.com/clerk/javascript/commit/ec4521b4fe56602f524a0c6d1b09d21aef5d8bd0), [`38828ae`](https://github.com/clerk/javascript/commit/38828ae58d6d4e8e3c60945284930179b2b6bb40), [`f30fa75`](https://github.com/clerk/javascript/commit/f30fa750754f19030f932a666d2bdbdf0d86743d), [`9c68678`](https://github.com/clerk/javascript/commit/9c68678e87047e6312b708b775ebfb23a3e22f8a), [`619cde8`](https://github.com/clerk/javascript/commit/619cde8c532d635d910ebbc08ad6abcc025694b4)]: + - @clerk/shared@3.3.0 + - @clerk/localizations@3.13.5 + - @clerk/types@4.50.2 + ## 5.58.1 ### Patch Changes diff --git a/packages/clerk-js/package.json b/packages/clerk-js/package.json index 1a21b19212a..049ac6c6c48 100644 --- a/packages/clerk-js/package.json +++ b/packages/clerk-js/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-js", - "version": "5.58.1", + "version": "5.59.0", "description": "Clerk JS library", "keywords": [ "clerk", diff --git a/packages/elements/CHANGELOG.md b/packages/elements/CHANGELOG.md index a777b7872bd..96d41b1477a 100644 --- a/packages/elements/CHANGELOG.md +++ b/packages/elements/CHANGELOG.md @@ -1,5 +1,14 @@ # @clerk/elements +## 0.23.9 + +### Patch Changes + +- Updated dependencies [[`60a9a51`](https://github.com/clerk/javascript/commit/60a9a51dff7d59e7397536586cf1cfe029bc021b), [`e984494`](https://github.com/clerk/javascript/commit/e984494416dda9a6f04acaaba61f8c2683090961), [`ec4521b`](https://github.com/clerk/javascript/commit/ec4521b4fe56602f524a0c6d1b09d21aef5d8bd0), [`38828ae`](https://github.com/clerk/javascript/commit/38828ae58d6d4e8e3c60945284930179b2b6bb40), [`f30fa75`](https://github.com/clerk/javascript/commit/f30fa750754f19030f932a666d2bdbdf0d86743d), [`9c68678`](https://github.com/clerk/javascript/commit/9c68678e87047e6312b708b775ebfb23a3e22f8a), [`619cde8`](https://github.com/clerk/javascript/commit/619cde8c532d635d910ebbc08ad6abcc025694b4)]: + - @clerk/shared@3.3.0 + - @clerk/clerk-react@5.25.6 + - @clerk/types@4.50.2 + ## 0.23.8 ### Patch Changes diff --git a/packages/elements/package.json b/packages/elements/package.json index 1c1b39eefdb..4cfc5752dfc 100644 --- a/packages/elements/package.json +++ b/packages/elements/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/elements", - "version": "0.23.8", + "version": "0.23.9", "description": "Clerk Elements", "keywords": [ "clerk", diff --git a/packages/expo-passkeys/CHANGELOG.md b/packages/expo-passkeys/CHANGELOG.md index 8f364063adc..47112bc21ed 100644 --- a/packages/expo-passkeys/CHANGELOG.md +++ b/packages/expo-passkeys/CHANGELOG.md @@ -1,5 +1,13 @@ # @clerk/expo-passkeys +## 0.2.1 + +### Patch Changes + +- Updated dependencies [[`60a9a51`](https://github.com/clerk/javascript/commit/60a9a51dff7d59e7397536586cf1cfe029bc021b), [`e984494`](https://github.com/clerk/javascript/commit/e984494416dda9a6f04acaaba61f8c2683090961), [`ec4521b`](https://github.com/clerk/javascript/commit/ec4521b4fe56602f524a0c6d1b09d21aef5d8bd0), [`38828ae`](https://github.com/clerk/javascript/commit/38828ae58d6d4e8e3c60945284930179b2b6bb40), [`f30fa75`](https://github.com/clerk/javascript/commit/f30fa750754f19030f932a666d2bdbdf0d86743d), [`9c68678`](https://github.com/clerk/javascript/commit/9c68678e87047e6312b708b775ebfb23a3e22f8a), [`619cde8`](https://github.com/clerk/javascript/commit/619cde8c532d635d910ebbc08ad6abcc025694b4)]: + - @clerk/shared@3.3.0 + - @clerk/types@4.50.2 + ## 0.2.0 ### Minor Changes diff --git a/packages/expo-passkeys/package.json b/packages/expo-passkeys/package.json index 8535bd26ad7..7a4050fef23 100644 --- a/packages/expo-passkeys/package.json +++ b/packages/expo-passkeys/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/expo-passkeys", - "version": "0.2.0", + "version": "0.2.1", "description": "Passkeys library to be used with Clerk for expo", "keywords": [ "react-native", diff --git a/packages/expo/CHANGELOG.md b/packages/expo/CHANGELOG.md index 709dff2360e..5478aec4218 100644 --- a/packages/expo/CHANGELOG.md +++ b/packages/expo/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 2.9.7 + +### Patch Changes + +- Updated dependencies [[`e984494`](https://github.com/clerk/javascript/commit/e984494416dda9a6f04acaaba61f8c2683090961), [`60a9a51`](https://github.com/clerk/javascript/commit/60a9a51dff7d59e7397536586cf1cfe029bc021b), [`e984494`](https://github.com/clerk/javascript/commit/e984494416dda9a6f04acaaba61f8c2683090961), [`837d7ca`](https://github.com/clerk/javascript/commit/837d7ca9d2bf6e07caeaca94795f6810b2a43b81), [`243b153`](https://github.com/clerk/javascript/commit/243b153377feaf1b9786c7d076f08b3b89e49481), [`7ee21b7`](https://github.com/clerk/javascript/commit/7ee21b717e930d5a54febb14cc08bd4d04f11efb), [`1b1d49b`](https://github.com/clerk/javascript/commit/1b1d49b222f7d7a96305d2b8791935157305e0dd), [`ec4521b`](https://github.com/clerk/javascript/commit/ec4521b4fe56602f524a0c6d1b09d21aef5d8bd0), [`38828ae`](https://github.com/clerk/javascript/commit/38828ae58d6d4e8e3c60945284930179b2b6bb40), [`f30fa75`](https://github.com/clerk/javascript/commit/f30fa750754f19030f932a666d2bdbdf0d86743d), [`9c68678`](https://github.com/clerk/javascript/commit/9c68678e87047e6312b708b775ebfb23a3e22f8a), [`6fcd93c`](https://github.com/clerk/javascript/commit/6fcd93c838f22a4ba508efa3dec8e9e8c86bf8dd), [`ab1c379`](https://github.com/clerk/javascript/commit/ab1c3791fcfed78f6747b99f6db4e532268c4790), [`04ba49f`](https://github.com/clerk/javascript/commit/04ba49fd447a9ce677267364d9ed4c0ec445881b), [`619cde8`](https://github.com/clerk/javascript/commit/619cde8c532d635d910ebbc08ad6abcc025694b4), [`743f1f1`](https://github.com/clerk/javascript/commit/743f1f1ff9217142f55259a27d364712b3737429)]: + - @clerk/clerk-js@5.59.0 + - @clerk/shared@3.3.0 + - @clerk/clerk-react@5.25.6 + - @clerk/types@4.50.2 + ## 2.9.6 ### Patch Changes diff --git a/packages/expo/package.json b/packages/expo/package.json index 618d86fc511..e8a7e351c3c 100644 --- a/packages/expo/package.json +++ b/packages/expo/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-expo", - "version": "2.9.6", + "version": "2.9.7", "description": "Clerk React Native/Expo library", "keywords": [ "react", diff --git a/packages/express/CHANGELOG.md b/packages/express/CHANGELOG.md index 2ec0606709b..c7d06b7eba9 100644 --- a/packages/express/CHANGELOG.md +++ b/packages/express/CHANGELOG.md @@ -1,5 +1,54 @@ # Change Log +## 1.4.0 + +### Minor Changes + +- Introduce a `verifyWebhook()` function to verify incoming Clerk webhook requests and process the payload. This function handles webhook signature verification using `Svix` and is now available across all backend and fullstack SDKs. ([#5468](https://github.com/clerk/javascript/pull/5468)) by [@wobsoriano](https://github.com/wobsoriano) + + To get started, install [`svix`](https://www.npmjs.com/package/svix), which Clerk uses to verify its webhooks: + + ```shell + npm install svix + ``` + + Then in your webhook route handler, import `verifyWebhook()` from the Express SDK: + + ```ts + import { verifyWebhook } from '@clerk/express/webhooks'; + + app.post( + '/api/webhooks', + bodyParser.raw({ type: 'application/json' }), + + async (req, res) => { + try { + const evt = await verifyWebhook(req); + + // Do something with payload + const { id } = evt.data; + const eventType = evt.type; + console.log(`Received webhook with ID ${id} and event type of ${eventType}`); + console.log('Webhook payload:', body); + + return res.status(200).send('Webhook received'); + } catch (err) { + console.log('Error: Could not verify webhook:', err.message); + return res.status(400).send('Error: Verification error'); + } + }, + ); + ``` + + For more information on how to sync Clerk data to your app with webhooks, [see our guide](https://clerk.com/docs/webhooks/sync-data). + +### Patch Changes + +- Updated dependencies [[`60a9a51`](https://github.com/clerk/javascript/commit/60a9a51dff7d59e7397536586cf1cfe029bc021b), [`e984494`](https://github.com/clerk/javascript/commit/e984494416dda9a6f04acaaba61f8c2683090961), [`cd6ee92`](https://github.com/clerk/javascript/commit/cd6ee92d5b427ca548216f429ca4e31c6acd263c), [`ec4521b`](https://github.com/clerk/javascript/commit/ec4521b4fe56602f524a0c6d1b09d21aef5d8bd0), [`38828ae`](https://github.com/clerk/javascript/commit/38828ae58d6d4e8e3c60945284930179b2b6bb40), [`f30fa75`](https://github.com/clerk/javascript/commit/f30fa750754f19030f932a666d2bdbdf0d86743d), [`9c68678`](https://github.com/clerk/javascript/commit/9c68678e87047e6312b708b775ebfb23a3e22f8a), [`fe065a9`](https://github.com/clerk/javascript/commit/fe065a934c583174ad4c140e04dedbe6d88fc3a0), [`619cde8`](https://github.com/clerk/javascript/commit/619cde8c532d635d910ebbc08ad6abcc025694b4)]: + - @clerk/backend@1.26.0 + - @clerk/shared@3.3.0 + - @clerk/types@4.50.2 + ## 1.3.59 ### Patch Changes diff --git a/packages/express/package.json b/packages/express/package.json index 00d2ed7e45e..990bbe19cf5 100644 --- a/packages/express/package.json +++ b/packages/express/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/express", - "version": "1.3.59", + "version": "1.4.0", "description": "Clerk server SDK for usage with Express", "keywords": [ "clerk", diff --git a/packages/fastify/CHANGELOG.md b/packages/fastify/CHANGELOG.md index 7ce62cd8870..ae53058f9e5 100644 --- a/packages/fastify/CHANGELOG.md +++ b/packages/fastify/CHANGELOG.md @@ -1,5 +1,49 @@ # Change Log +## 2.2.0 + +### Minor Changes + +- Introduce a `verifyWebhook()` function to verify incoming Clerk webhook requests and process the payload. This function handles webhook signature verification using `Svix` and is now available across all backend and fullstack SDKs. ([#5468](https://github.com/clerk/javascript/pull/5468)) by [@wobsoriano](https://github.com/wobsoriano) + + To get started, install [`svix`](https://www.npmjs.com/package/svix), which Clerk uses to verify its webhooks: + + ```shell + npm install svix + ``` + + Then in your webhook route handler, import `verifyWebhook()` from the Fastify SDK: + + ```ts + import { verifyWebhook } from '@clerk/fastify/webhooks'; + + fastify.post('/api/webhooks', async (request, reply) => { + try { + const evt = await verifyWebhook(request); + + // Do something with payload + const { id } = evt.data; + const eventType = evt.type; + console.log(`Received webhook with ID ${id} and event type of ${eventType}`); + console.log('Webhook payload:', evt.data); + + return reply.status(200).send('Webhook received'); + } catch (err) { + console.log('Error: Could not verify webhook:', err); + return reply.status(400).send('Error: Verification error'); + } + }); + ``` + + For more information on how to sync Clerk data to your app with webhooks, [see our guide](https://clerk.com/docs/webhooks/sync-data). + +### Patch Changes + +- Updated dependencies [[`60a9a51`](https://github.com/clerk/javascript/commit/60a9a51dff7d59e7397536586cf1cfe029bc021b), [`e984494`](https://github.com/clerk/javascript/commit/e984494416dda9a6f04acaaba61f8c2683090961), [`cd6ee92`](https://github.com/clerk/javascript/commit/cd6ee92d5b427ca548216f429ca4e31c6acd263c), [`ec4521b`](https://github.com/clerk/javascript/commit/ec4521b4fe56602f524a0c6d1b09d21aef5d8bd0), [`38828ae`](https://github.com/clerk/javascript/commit/38828ae58d6d4e8e3c60945284930179b2b6bb40), [`f30fa75`](https://github.com/clerk/javascript/commit/f30fa750754f19030f932a666d2bdbdf0d86743d), [`9c68678`](https://github.com/clerk/javascript/commit/9c68678e87047e6312b708b775ebfb23a3e22f8a), [`fe065a9`](https://github.com/clerk/javascript/commit/fe065a934c583174ad4c140e04dedbe6d88fc3a0), [`619cde8`](https://github.com/clerk/javascript/commit/619cde8c532d635d910ebbc08ad6abcc025694b4)]: + - @clerk/backend@1.26.0 + - @clerk/shared@3.3.0 + - @clerk/types@4.50.2 + ## 2.1.32 ### Patch Changes diff --git a/packages/fastify/package.json b/packages/fastify/package.json index 1cd686e6dda..9b31273c2c4 100644 --- a/packages/fastify/package.json +++ b/packages/fastify/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/fastify", - "version": "2.1.32", + "version": "2.2.0", "description": "Clerk SDK for Fastify", "keywords": [ "auth", diff --git a/packages/localizations/CHANGELOG.md b/packages/localizations/CHANGELOG.md index ee8e8f5dee7..a0756258a6b 100644 --- a/packages/localizations/CHANGELOG.md +++ b/packages/localizations/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## 3.13.5 + +### Patch Changes + +- Update fr-FR TOS/privacy policy loclization to include the appropriate links. ([#5511](https://github.com/clerk/javascript/pull/5511)) by [@alexcarpenter](https://github.com/alexcarpenter) + +- Add payment source section to `UserProfile` ([#5492](https://github.com/clerk/javascript/pull/5492)) by [@aeliox](https://github.com/aeliox) + +- Updated dependencies [[`ec4521b`](https://github.com/clerk/javascript/commit/ec4521b4fe56602f524a0c6d1b09d21aef5d8bd0), [`f30fa75`](https://github.com/clerk/javascript/commit/f30fa750754f19030f932a666d2bdbdf0d86743d), [`9c68678`](https://github.com/clerk/javascript/commit/9c68678e87047e6312b708b775ebfb23a3e22f8a)]: + - @clerk/types@4.50.2 + ## 3.13.4 ### Patch Changes diff --git a/packages/localizations/package.json b/packages/localizations/package.json index 96f72f27e1c..557113018e8 100644 --- a/packages/localizations/package.json +++ b/packages/localizations/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/localizations", - "version": "3.13.4", + "version": "3.13.5", "description": "Localizations for the Clerk components", "keywords": [ "react", diff --git a/packages/nextjs/CHANGELOG.md b/packages/nextjs/CHANGELOG.md index a8c450e7897..b4c798eac9f 100644 --- a/packages/nextjs/CHANGELOG.md +++ b/packages/nextjs/CHANGELOG.md @@ -1,5 +1,59 @@ # Change Log +## 6.13.0 + +### Minor Changes + +- Introduce a `verifyWebhook()` function to verify incoming Clerk webhook requests and process the payload. This function handles webhook signature verification using `Svix` and is now available across all backend and fullstack SDKs. ([#5468](https://github.com/clerk/javascript/pull/5468)) by [@wobsoriano](https://github.com/wobsoriano) + + To get started, install [`svix`](https://www.npmjs.com/package/svix), which Clerk uses to verify its webhooks: + + ```shell + npm install svix + ``` + + Then in your webhook route handler, import `verifyWebhook()` from the Next.js SDK: + + ```ts + // app/api/webhooks/route.ts + import { verifyWebhook } from '@clerk/nextjs/webhooks'; + + export async function POST(req: Request) { + try { + const evt = await verifyWebhook(req); + + // Do something with payload + const { id } = evt.data; + const eventType = evt.type; + console.log(`Received webhook with ID ${id} and event type of ${eventType}`); + console.log('Webhook payload:', body); + + return new Response('Webhook received', { status: 200 }); + } catch (err) { + console.error('Error: Could not verify webhook:', err); + return new Response('Error: Verification error', { + status: 400, + }); + } + } + ``` + + For more information on how to sync Clerk data to your app with webhooks, [see our guide](https://clerk.com/docs/webhooks/sync-data). + +- Redirect to tasks on `auth.protect` and `auth.redirectToSignIn` ([#5440](https://github.com/clerk/javascript/pull/5440)) by [@LauraBeatris](https://github.com/LauraBeatris) + +### Patch Changes + +- Fixing a Typing error in clerkMiddleware ([#5470](https://github.com/clerk/javascript/pull/5470)) by [@jacekradko](https://github.com/jacekradko) + +- Remove telemtry event from `clerkMiddleware()`. ([#5501](https://github.com/clerk/javascript/pull/5501)) by [@brkalow](https://github.com/brkalow) + +- Updated dependencies [[`60a9a51`](https://github.com/clerk/javascript/commit/60a9a51dff7d59e7397536586cf1cfe029bc021b), [`e984494`](https://github.com/clerk/javascript/commit/e984494416dda9a6f04acaaba61f8c2683090961), [`cd6ee92`](https://github.com/clerk/javascript/commit/cd6ee92d5b427ca548216f429ca4e31c6acd263c), [`ec4521b`](https://github.com/clerk/javascript/commit/ec4521b4fe56602f524a0c6d1b09d21aef5d8bd0), [`38828ae`](https://github.com/clerk/javascript/commit/38828ae58d6d4e8e3c60945284930179b2b6bb40), [`f30fa75`](https://github.com/clerk/javascript/commit/f30fa750754f19030f932a666d2bdbdf0d86743d), [`9c68678`](https://github.com/clerk/javascript/commit/9c68678e87047e6312b708b775ebfb23a3e22f8a), [`fe065a9`](https://github.com/clerk/javascript/commit/fe065a934c583174ad4c140e04dedbe6d88fc3a0), [`619cde8`](https://github.com/clerk/javascript/commit/619cde8c532d635d910ebbc08ad6abcc025694b4)]: + - @clerk/backend@1.26.0 + - @clerk/shared@3.3.0 + - @clerk/clerk-react@5.25.6 + - @clerk/types@4.50.2 + ## 6.12.12 ### Patch Changes diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json index 07fb75748ac..63278e4f155 100644 --- a/packages/nextjs/package.json +++ b/packages/nextjs/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/nextjs", - "version": "6.12.12", + "version": "6.13.0", "description": "Clerk SDK for NextJS", "keywords": [ "clerk", diff --git a/packages/nuxt/CHANGELOG.md b/packages/nuxt/CHANGELOG.md index 15f47295f32..598b3e7198a 100644 --- a/packages/nuxt/CHANGELOG.md +++ b/packages/nuxt/CHANGELOG.md @@ -1,5 +1,71 @@ # @clerk/nuxt +## 1.5.0 + +### Minor Changes + +- Deprecate `event.context.auth` in favor of `event.context.auth()` as function ([#5513](https://github.com/clerk/javascript/pull/5513)) by [@LauraBeatris](https://github.com/LauraBeatris) + + ```diff + export default clerkMiddleware((event) => { + + const { userId } = event.context.auth() + - const { userId } = event.context.auth + const isAdminRoute = event.path.startsWith('/api/admin') + + if (!userId && isAdminRoute) { + throw createError({ + statusCode: 401, + statusMessage: 'Unauthorized: User not signed in', + }) + } + }) + ``` + +- Introduce a `verifyWebhook()` function to verify incoming Clerk webhook requests and process the payload. This function handles webhook signature verification using `Svix` and is now available across all backend and fullstack SDKs. ([#5468](https://github.com/clerk/javascript/pull/5468)) by [@wobsoriano](https://github.com/wobsoriano) + + To get started, install [`svix`](https://www.npmjs.com/package/svix), which Clerk uses to verify its webhooks: + + ```shell + npm install svix + ``` + + Then in your webhook route handler, import `verifyWebhook()` from the Nuxt SDK: + + ```ts + // server/api/webhooks.post.ts + import { verifyWebhook } from '@clerk/nuxt/webhooks'; + + export default eventHandler(async event => { + try { + const evt = await verifyWebhook(event); + + // Do something with payload + const { id } = evt.data; + const eventType = evt.type; + console.log(`Received webhook with ID ${id} and event type of ${eventType}`); + console.log('Webhook payload:', body); + + return 'Webhook received'; + } catch (err) { + console.error('Error: Could not verify webhook:', err); + setResponseStatus(event, 400); + return 'Error: Verification error'; + } + }); + ``` + + For more information on how to sync Clerk data to your app with webhooks, [see our guide](https://clerk.com/docs/webhooks/sync-data). + +### Patch Changes + +- Remove telemtry event from `clerkMiddleware()`. ([#5501](https://github.com/clerk/javascript/pull/5501)) by [@brkalow](https://github.com/brkalow) + +- Updated dependencies [[`60a9a51`](https://github.com/clerk/javascript/commit/60a9a51dff7d59e7397536586cf1cfe029bc021b), [`e984494`](https://github.com/clerk/javascript/commit/e984494416dda9a6f04acaaba61f8c2683090961), [`cd6ee92`](https://github.com/clerk/javascript/commit/cd6ee92d5b427ca548216f429ca4e31c6acd263c), [`ec4521b`](https://github.com/clerk/javascript/commit/ec4521b4fe56602f524a0c6d1b09d21aef5d8bd0), [`38828ae`](https://github.com/clerk/javascript/commit/38828ae58d6d4e8e3c60945284930179b2b6bb40), [`f30fa75`](https://github.com/clerk/javascript/commit/f30fa750754f19030f932a666d2bdbdf0d86743d), [`9c68678`](https://github.com/clerk/javascript/commit/9c68678e87047e6312b708b775ebfb23a3e22f8a), [`fe065a9`](https://github.com/clerk/javascript/commit/fe065a934c583174ad4c140e04dedbe6d88fc3a0), [`619cde8`](https://github.com/clerk/javascript/commit/619cde8c532d635d910ebbc08ad6abcc025694b4)]: + - @clerk/backend@1.26.0 + - @clerk/shared@3.3.0 + - @clerk/types@4.50.2 + - @clerk/vue@1.4.6 + ## 1.4.6 ### Patch Changes diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index e68f6721507..438a00063f3 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/nuxt", - "version": "1.4.6", + "version": "1.5.0", "description": "Clerk SDK for Nuxt", "keywords": [ "clerk", diff --git a/packages/react-router/CHANGELOG.md b/packages/react-router/CHANGELOG.md index 08f46d367fc..137c1cbc435 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -1,5 +1,52 @@ # Change Log +## 1.2.0 + +### Minor Changes + +- Introduce a `verifyWebhook()` function to verify incoming Clerk webhook requests and process the payload. This function handles webhook signature verification using `Svix` and is now available across all backend and fullstack SDKs. ([#5468](https://github.com/clerk/javascript/pull/5468)) by [@wobsoriano](https://github.com/wobsoriano) + + To get started, install [`svix`](https://www.npmjs.com/package/svix), which Clerk uses to verify its webhooks: + + ```shell + npm install svix + ``` + + Then in your webhook route handler, import `verifyWebhook()` from the React Router SDK: + + ```ts + import { verifyWebhook } from '@clerk/react-router/webhooks'; + + export const action = async ({ request }) => { + try { + const evt = await verifyWebhook(request); + + // Do something with payload + const { id } = evt.data; + const eventType = evt.type; + console.log(`Received webhook with ID ${id} and event type of ${eventType}`); + console.log('Webhook payload:', evt.data); + + return new Response('Webhook received', { status: 200 }); + } catch (err) { + console.log('Error: Could not verify webhook:', err); + return new Response('Error: Verification error', { + status: 400, + }); + } + }; + ``` + + For more information on how to sync Clerk data to your app with webhooks, [see our guide](https://clerk.com/docs/webhooks/sync-data). + +### Patch Changes + +- Updated dependencies [[`60a9a51`](https://github.com/clerk/javascript/commit/60a9a51dff7d59e7397536586cf1cfe029bc021b), [`e984494`](https://github.com/clerk/javascript/commit/e984494416dda9a6f04acaaba61f8c2683090961), [`cd6ee92`](https://github.com/clerk/javascript/commit/cd6ee92d5b427ca548216f429ca4e31c6acd263c), [`ec4521b`](https://github.com/clerk/javascript/commit/ec4521b4fe56602f524a0c6d1b09d21aef5d8bd0), [`38828ae`](https://github.com/clerk/javascript/commit/38828ae58d6d4e8e3c60945284930179b2b6bb40), [`f30fa75`](https://github.com/clerk/javascript/commit/f30fa750754f19030f932a666d2bdbdf0d86743d), [`9c68678`](https://github.com/clerk/javascript/commit/9c68678e87047e6312b708b775ebfb23a3e22f8a), [`fe065a9`](https://github.com/clerk/javascript/commit/fe065a934c583174ad4c140e04dedbe6d88fc3a0), [`619cde8`](https://github.com/clerk/javascript/commit/619cde8c532d635d910ebbc08ad6abcc025694b4)]: + - @clerk/backend@1.26.0 + - @clerk/shared@3.3.0 + - @clerk/clerk-react@5.25.6 + - @clerk/types@4.50.2 + ## 1.1.11 ### Patch Changes diff --git a/packages/react-router/package.json b/packages/react-router/package.json index b4b08a063b7..89b8f62a428 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/react-router", - "version": "1.1.11", + "version": "1.2.0", "description": "Clerk SDK for React Router", "keywords": [ "clerk", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index feee6e47961..e1e7d8dbb7b 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 5.25.6 + +### Patch Changes + +- Improve JSDoc comments ([#5457](https://github.com/clerk/javascript/pull/5457)) by [@alexisintech](https://github.com/alexisintech) + +- Updated dependencies [[`60a9a51`](https://github.com/clerk/javascript/commit/60a9a51dff7d59e7397536586cf1cfe029bc021b), [`e984494`](https://github.com/clerk/javascript/commit/e984494416dda9a6f04acaaba61f8c2683090961), [`ec4521b`](https://github.com/clerk/javascript/commit/ec4521b4fe56602f524a0c6d1b09d21aef5d8bd0), [`38828ae`](https://github.com/clerk/javascript/commit/38828ae58d6d4e8e3c60945284930179b2b6bb40), [`f30fa75`](https://github.com/clerk/javascript/commit/f30fa750754f19030f932a666d2bdbdf0d86743d), [`9c68678`](https://github.com/clerk/javascript/commit/9c68678e87047e6312b708b775ebfb23a3e22f8a), [`619cde8`](https://github.com/clerk/javascript/commit/619cde8c532d635d910ebbc08ad6abcc025694b4)]: + - @clerk/shared@3.3.0 + - @clerk/types@4.50.2 + ## 5.25.5 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index b12279ef2de..430c7041f44 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-react", - "version": "5.25.5", + "version": "5.25.6", "description": "Clerk React library", "keywords": [ "clerk", diff --git a/packages/remix/CHANGELOG.md b/packages/remix/CHANGELOG.md index 7d58c672338..eda710b0a57 100644 --- a/packages/remix/CHANGELOG.md +++ b/packages/remix/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 4.5.12 + +### Patch Changes + +- Updated dependencies [[`60a9a51`](https://github.com/clerk/javascript/commit/60a9a51dff7d59e7397536586cf1cfe029bc021b), [`e984494`](https://github.com/clerk/javascript/commit/e984494416dda9a6f04acaaba61f8c2683090961), [`cd6ee92`](https://github.com/clerk/javascript/commit/cd6ee92d5b427ca548216f429ca4e31c6acd263c), [`ec4521b`](https://github.com/clerk/javascript/commit/ec4521b4fe56602f524a0c6d1b09d21aef5d8bd0), [`38828ae`](https://github.com/clerk/javascript/commit/38828ae58d6d4e8e3c60945284930179b2b6bb40), [`f30fa75`](https://github.com/clerk/javascript/commit/f30fa750754f19030f932a666d2bdbdf0d86743d), [`9c68678`](https://github.com/clerk/javascript/commit/9c68678e87047e6312b708b775ebfb23a3e22f8a), [`fe065a9`](https://github.com/clerk/javascript/commit/fe065a934c583174ad4c140e04dedbe6d88fc3a0), [`619cde8`](https://github.com/clerk/javascript/commit/619cde8c532d635d910ebbc08ad6abcc025694b4)]: + - @clerk/backend@1.26.0 + - @clerk/shared@3.3.0 + - @clerk/clerk-react@5.25.6 + - @clerk/types@4.50.2 + ## 4.5.11 ### Patch Changes diff --git a/packages/remix/package.json b/packages/remix/package.json index d28e6e94f77..b207d3b412e 100644 --- a/packages/remix/package.json +++ b/packages/remix/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/remix", - "version": "4.5.11", + "version": "4.5.12", "description": "Clerk SDK for Remix", "keywords": [ "clerk", diff --git a/packages/shared/CHANGELOG.md b/packages/shared/CHANGELOG.md index 13b22bf44df..d40f916e274 100644 --- a/packages/shared/CHANGELOG.md +++ b/packages/shared/CHANGELOG.md @@ -1,5 +1,22 @@ # Change Log +## 3.3.0 + +### Minor Changes + +- Expose `retryAfter` value on `ClerkAPIResponseError` for 429 responses. ([#5480](https://github.com/clerk/javascript/pull/5480)) by [@dstaley](https://github.com/dstaley) + +- Set `retryImmediately: false` as the default for `retry()`. ([#5397](https://github.com/clerk/javascript/pull/5397)) by [@panteliselef](https://github.com/panteliselef) + +- Bump `swr` to `2.3.3`. ([#5467](https://github.com/clerk/javascript/pull/5467)) by [@panteliselef](https://github.com/panteliselef) + +### Patch Changes + +- Create a utility that implements `Promise.allSettled` with ES6/ES2015 compatibility. ([#5491](https://github.com/clerk/javascript/pull/5491)) by [@panteliselef](https://github.com/panteliselef) + +- Updated dependencies [[`ec4521b`](https://github.com/clerk/javascript/commit/ec4521b4fe56602f524a0c6d1b09d21aef5d8bd0), [`f30fa75`](https://github.com/clerk/javascript/commit/f30fa750754f19030f932a666d2bdbdf0d86743d), [`9c68678`](https://github.com/clerk/javascript/commit/9c68678e87047e6312b708b775ebfb23a3e22f8a)]: + - @clerk/types@4.50.2 + ## 3.2.3 ### Patch Changes diff --git a/packages/shared/package.json b/packages/shared/package.json index 5d0c6f48ab8..4bb2480358e 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/shared", - "version": "3.2.3", + "version": "3.3.0", "description": "Internal package utils used by the Clerk SDKs", "repository": { "type": "git", diff --git a/packages/tanstack-react-start/CHANGELOG.md b/packages/tanstack-react-start/CHANGELOG.md index f553fc6ca75..a157d63a7da 100644 --- a/packages/tanstack-react-start/CHANGELOG.md +++ b/packages/tanstack-react-start/CHANGELOG.md @@ -1,5 +1,55 @@ # @clerk/tanstack-react-start +## 0.13.0 + +### Minor Changes + +- Introduce a `verifyWebhook()` function to verify incoming Clerk webhook requests and process the payload. This function handles webhook signature verification using `Svix` and is now available across all backend and fullstack SDKs. ([#5468](https://github.com/clerk/javascript/pull/5468)) by [@wobsoriano](https://github.com/wobsoriano) + + To get started, install [`svix`](https://www.npmjs.com/package/svix), which Clerk uses to verify its webhooks: + + ```shell + npm install svix + ``` + + Then in your webhook route handler, import `verifyWebhook()` from the TanStack React Start SDK: + + ```ts + // pages/api/webhooks.ts + import { verifyWebhook } from '@clerk/tanstack-react-start/webhooks'; + + export const APIRoute = createAPIFileRoute('/api/webhooks')({ + POST: async ({ request }) => { + try { + const evt = await verifyWebhook(req); + + // Do something with payload + const { id } = evt.data; + const eventType = evt.type; + console.log(`Received webhook with ID ${id} and event type of ${eventType}`); + console.log('Webhook payload:', body); + + return new Response('Webhook received', { status: 200 }); + } catch (err) { + console.error('Error: Could not verify webhook:', err); + return new Response('Error: Verification error', { + status: 400, + }); + } + }, + }); + ``` + + For more information on how to sync Clerk data to your app with webhooks, [see our guide](https://clerk.com/docs/webhooks/sync-data). + +### Patch Changes + +- Updated dependencies [[`60a9a51`](https://github.com/clerk/javascript/commit/60a9a51dff7d59e7397536586cf1cfe029bc021b), [`e984494`](https://github.com/clerk/javascript/commit/e984494416dda9a6f04acaaba61f8c2683090961), [`cd6ee92`](https://github.com/clerk/javascript/commit/cd6ee92d5b427ca548216f429ca4e31c6acd263c), [`ec4521b`](https://github.com/clerk/javascript/commit/ec4521b4fe56602f524a0c6d1b09d21aef5d8bd0), [`38828ae`](https://github.com/clerk/javascript/commit/38828ae58d6d4e8e3c60945284930179b2b6bb40), [`f30fa75`](https://github.com/clerk/javascript/commit/f30fa750754f19030f932a666d2bdbdf0d86743d), [`9c68678`](https://github.com/clerk/javascript/commit/9c68678e87047e6312b708b775ebfb23a3e22f8a), [`fe065a9`](https://github.com/clerk/javascript/commit/fe065a934c583174ad4c140e04dedbe6d88fc3a0), [`619cde8`](https://github.com/clerk/javascript/commit/619cde8c532d635d910ebbc08ad6abcc025694b4)]: + - @clerk/backend@1.26.0 + - @clerk/shared@3.3.0 + - @clerk/clerk-react@5.25.6 + - @clerk/types@4.50.2 + ## 0.12.2 ### Patch Changes diff --git a/packages/tanstack-react-start/package.json b/packages/tanstack-react-start/package.json index 534c456c73d..0e754582eee 100644 --- a/packages/tanstack-react-start/package.json +++ b/packages/tanstack-react-start/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/tanstack-react-start", - "version": "0.12.2", + "version": "0.13.0", "description": "Clerk SDK for TanStack React Start", "keywords": [ "clerk", diff --git a/packages/testing/CHANGELOG.md b/packages/testing/CHANGELOG.md index 68bc3e64d2b..270d8d17fb0 100644 --- a/packages/testing/CHANGELOG.md +++ b/packages/testing/CHANGELOG.md @@ -1,5 +1,14 @@ # @clerk/testing +## 1.4.34 + +### Patch Changes + +- Updated dependencies [[`60a9a51`](https://github.com/clerk/javascript/commit/60a9a51dff7d59e7397536586cf1cfe029bc021b), [`e984494`](https://github.com/clerk/javascript/commit/e984494416dda9a6f04acaaba61f8c2683090961), [`cd6ee92`](https://github.com/clerk/javascript/commit/cd6ee92d5b427ca548216f429ca4e31c6acd263c), [`ec4521b`](https://github.com/clerk/javascript/commit/ec4521b4fe56602f524a0c6d1b09d21aef5d8bd0), [`38828ae`](https://github.com/clerk/javascript/commit/38828ae58d6d4e8e3c60945284930179b2b6bb40), [`f30fa75`](https://github.com/clerk/javascript/commit/f30fa750754f19030f932a666d2bdbdf0d86743d), [`9c68678`](https://github.com/clerk/javascript/commit/9c68678e87047e6312b708b775ebfb23a3e22f8a), [`fe065a9`](https://github.com/clerk/javascript/commit/fe065a934c583174ad4c140e04dedbe6d88fc3a0), [`619cde8`](https://github.com/clerk/javascript/commit/619cde8c532d635d910ebbc08ad6abcc025694b4)]: + - @clerk/backend@1.26.0 + - @clerk/shared@3.3.0 + - @clerk/types@4.50.2 + ## 1.4.33 ### Patch Changes diff --git a/packages/testing/package.json b/packages/testing/package.json index 8cdab759782..449075621e2 100644 --- a/packages/testing/package.json +++ b/packages/testing/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/testing", - "version": "1.4.33", + "version": "1.4.34", "description": "Utilities to help you create E2E test suites for apps using Clerk", "keywords": [ "auth", diff --git a/packages/themes/CHANGELOG.md b/packages/themes/CHANGELOG.md index b3f1364bf49..3d9ab5c269f 100644 --- a/packages/themes/CHANGELOG.md +++ b/packages/themes/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 2.2.27 + +### Patch Changes + +- Updated dependencies [[`ec4521b`](https://github.com/clerk/javascript/commit/ec4521b4fe56602f524a0c6d1b09d21aef5d8bd0), [`f30fa75`](https://github.com/clerk/javascript/commit/f30fa750754f19030f932a666d2bdbdf0d86743d), [`9c68678`](https://github.com/clerk/javascript/commit/9c68678e87047e6312b708b775ebfb23a3e22f8a)]: + - @clerk/types@4.50.2 + ## 2.2.26 ### Patch Changes diff --git a/packages/themes/package.json b/packages/themes/package.json index 38395d5e721..206f30224b5 100644 --- a/packages/themes/package.json +++ b/packages/themes/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/themes", - "version": "2.2.26", + "version": "2.2.27", "description": "Themes for the Clerk auth components", "keywords": [ "react", diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md index c52e4ca4dec..2e7afa47693 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 4.50.2 + +### Patch Changes + +- Improve JSDoc comments ([#5457](https://github.com/clerk/javascript/pull/5457)) by [@alexisintech](https://github.com/alexisintech) + +- Remove usage of `` from ``. ([#5469](https://github.com/clerk/javascript/pull/5469)) by [@alexcarpenter](https://github.com/alexcarpenter) + +- Add payment source section to `UserProfile` ([#5492](https://github.com/clerk/javascript/pull/5492)) by [@aeliox](https://github.com/aeliox) + ## 4.50.1 ### Patch Changes diff --git a/packages/types/package.json b/packages/types/package.json index 9abe305ebf4..b90f0aac4f0 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/types", - "version": "4.50.1", + "version": "4.50.2", "description": "Typings for Clerk libraries.", "keywords": [ "clerk", diff --git a/packages/vue/CHANGELOG.md b/packages/vue/CHANGELOG.md index 57e95588d17..2287fbd0bc8 100644 --- a/packages/vue/CHANGELOG.md +++ b/packages/vue/CHANGELOG.md @@ -1,5 +1,13 @@ # @clerk/vue +## 1.4.6 + +### Patch Changes + +- Updated dependencies [[`60a9a51`](https://github.com/clerk/javascript/commit/60a9a51dff7d59e7397536586cf1cfe029bc021b), [`e984494`](https://github.com/clerk/javascript/commit/e984494416dda9a6f04acaaba61f8c2683090961), [`ec4521b`](https://github.com/clerk/javascript/commit/ec4521b4fe56602f524a0c6d1b09d21aef5d8bd0), [`38828ae`](https://github.com/clerk/javascript/commit/38828ae58d6d4e8e3c60945284930179b2b6bb40), [`f30fa75`](https://github.com/clerk/javascript/commit/f30fa750754f19030f932a666d2bdbdf0d86743d), [`9c68678`](https://github.com/clerk/javascript/commit/9c68678e87047e6312b708b775ebfb23a3e22f8a), [`619cde8`](https://github.com/clerk/javascript/commit/619cde8c532d635d910ebbc08ad6abcc025694b4)]: + - @clerk/shared@3.3.0 + - @clerk/types@4.50.2 + ## 1.4.5 ### Patch Changes diff --git a/packages/vue/package.json b/packages/vue/package.json index d0f0b33709f..d352b70848a 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/vue", - "version": "1.4.5", + "version": "1.4.6", "description": "Clerk SDK for Vue", "keywords": [ "clerk",