diff --git a/.changeset/breezy-pants-tan.md b/.changeset/breezy-pants-tan.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/breezy-pants-tan.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/brown-melons-listen.md b/.changeset/brown-melons-listen.md deleted file mode 100644 index 40a9c765b0d..00000000000 --- a/.changeset/brown-melons-listen.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/nextjs': patch ---- - -Updated URL for 'auth() was called but Clerk can't detect usage of clerkMiddleware()' diff --git a/.changeset/brown-paths-learn.md b/.changeset/brown-paths-learn.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/brown-paths-learn.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/bumpy-carpets-study.md b/.changeset/bumpy-carpets-study.md deleted file mode 100644 index 7be95325bac..00000000000 --- a/.changeset/bumpy-carpets-study.md +++ /dev/null @@ -1,40 +0,0 @@ ---- -'@clerk/backend': major ---- - -Introduces machine authentication, supporting four token types: `api_key`, `oauth_token`, `machine_token`, and `session_token`. For backwards compatibility, `session_token` remains the default when no token type is specified. This enables machine-to-machine authentication and use cases such as API keys and OAuth integrations. Existing applications continue to work without modification. - -You can specify which token types are allowed by using the `acceptsToken` option in the `authenticateRequest()` function. This option can be set to a specific type, an array of types, or `'any'` to accept all supported tokens. - -Example usage: - -```ts -import express from 'express'; -import { clerkClient } from '@clerk/backend'; - -const app = express(); - -app.use(async (req, res, next) => { - const requestState = await clerkClient.authenticateRequest(req, { - acceptsToken: 'any' - }); - - if (!requestState.isAuthenticated) { - // do something for unauthenticated requests - } - - const authObject = requestState.toAuth(); - - if (authObject.tokenType === 'session_token') { - console.log('this is session token from a user') - } else { - console.log('this is some other type of machine token') - console.log('more specifically, a ' + authObject.tokenType) - } - - // Attach the auth object to locals so downstream handlers - // and middleware can access it - res.locals.auth = authObject; - next(); -}); -``` \ No newline at end of file diff --git a/.changeset/chatty-lions-stay.md b/.changeset/chatty-lions-stay.md deleted file mode 100644 index ad43d885caf..00000000000 --- a/.changeset/chatty-lions-stay.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -'@clerk/tanstack-react-start': minor -'@clerk/agent-toolkit': minor -'@clerk/react-router': minor -'@clerk/express': minor -'@clerk/fastify': minor -'@clerk/astro': minor -'@clerk/remix': minor -'@clerk/nuxt': minor ---- - -Machine authentication is now supported for advanced use cases via the backend SDK. You can use `clerkClient.authenticateRequest` to validate machine tokens (such as API keys, OAuth tokens, and machine-to-machine tokens). No new helpers are included in these packages yet. - -Example (Astro): - -```ts -import { clerkClient } from '@clerk/astro/server'; - -export const GET: APIRoute = ({ request }) => { - const requestState = await clerkClient.authenticateRequest(request, { - acceptsToken: 'api_key' - }); - - if (!requestState.isAuthenticated) { - return new Response(401, { message: 'Unauthorized' }) - } - - return new Response(JSON.stringify(requestState.toAuth())) -} -``` \ No newline at end of file diff --git a/.changeset/dry-streets-jog.md b/.changeset/dry-streets-jog.md deleted file mode 100644 index d81e1279620..00000000000 --- a/.changeset/dry-streets-jog.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@clerk/clerk-js': patch -'@clerk/types': patch ---- - -Get `payment_method_order` for Stripe payment elements from backend diff --git a/.changeset/every-glasses-shave.md b/.changeset/every-glasses-shave.md deleted file mode 100644 index d4afbe1bd78..00000000000 --- a/.changeset/every-glasses-shave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/react-router': patch ---- - -In this release the TypeScript types for `rootAuthLoader()`, `getAuth()`, and `` were adjusted but should still work as before. Previously, these types relied on internal, unstable React Router types that changed in their recent 7.6.1 release. We simplified our TypeScript types and no longer rely on internal exports from React Router. diff --git a/.changeset/fast-turkeys-melt.md b/.changeset/fast-turkeys-melt.md deleted file mode 100644 index 84489ef0c94..00000000000 --- a/.changeset/fast-turkeys-melt.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -'@clerk/nextjs': minor ---- - -Introduces machine authentication, supporting four token types: `api_key`, `oauth_token`, `machine_token`, and `session_token`. For backwards compatibility, `session_token` remains the default when no token type is specified. This enables machine-to-machine authentication and use cases such as API keys and OAuth integrations. Existing applications continue to work without modification. - -You can specify which token types are allowed for a given route or handler using the `acceptsToken` property in the `auth()` helper, or the `token` property in the `auth.protect()` helper. Each can be set to a specific type, an array of types, or `'any'` to accept all supported tokens. - -Example usage in Nextjs middleware: - -```ts -import { clerkMiddleware, createRouteMatcher } from '@clerk/nextjs/server'; - -const isOAuthAccessible = createRouteMatcher(['/oauth(.*)']) -const isApiKeyAccessible = createRouteMatcher(['/api(.*)']) -const isMachineTokenAccessible = createRouteMatcher(['/m2m(.*)']) -const isUserAccessible = createRouteMatcher(['/user(.*)']) -const isAccessibleToAnyValidToken = createRouteMatcher(['/any(.*)']) - -export default clerkMiddleware(async (auth, req) => { - if (isOAuthAccessible(req)) await auth.protect({ token: 'oauth_token' }) - if (isApiKeyAccessible(req)) await auth.protect({ token: 'api_key' }) - if (isMachineTokenAccessible(req)) await auth.protect({ token: 'machine_token' }) - if (isUserAccessible(req)) await auth.protect({ token: 'session_token' }) - - if (isAccessibleToAnyValidToken(req)) await auth.protect({ token: 'any' }) -}); - -export const config = { - matcher: [ - '/((?!_next|[^?]*\\.(?:html?|css|js(?!on)|jpe?g|webp|png|gif|svg|ttf|woff2?|ico|csv|docx?|xlsx?|zip|webmanifest)).*)', - '/(api|trpc)(.*)', - ], -} -``` - -Leaf node route protection: - -```ts -import { auth } from '@clerk/nextjs/server' - -// In this example, we allow users and oauth tokens with the "profile" scope -// to access the data. Other types of tokens are rejected. -function POST(req, res) { - const authObject = await auth({ acceptsToken: ['session_token', 'oauth_token'] }) - - if (authObject.tokenType === 'oauth_token' && - !authObject.scopes?.includes('profile')) { - throw new Error('Unauthorized: OAuth token missing the "profile" scope') - } - - // get data from db using userId - const data = db.select().from(user).where(eq(user.id, authObject.userId)) - - return { data } -} -``` \ No newline at end of file diff --git a/.changeset/fifty-friends-occur.md b/.changeset/fifty-friends-occur.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/fifty-friends-occur.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/happy-bees-post.md b/.changeset/happy-bees-post.md deleted file mode 100644 index 99648fd6d7b..00000000000 --- a/.changeset/happy-bees-post.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@clerk/clerk-js': patch -'@clerk/types': patch ---- - -Use the `is_removable` flag on a payment source to determine if it can be removed. diff --git a/.changeset/hungry-mangos-shout.md b/.changeset/hungry-mangos-shout.md deleted file mode 100644 index a17e239a436..00000000000 --- a/.changeset/hungry-mangos-shout.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@clerk/backend': minor -'@clerk/astro': minor -'@clerk/express': minor -'@clerk/fastify': minor -'@clerk/nextjs': minor -'@clerk/nuxt': minor -'@clerk/react-router': minor -'@clerk/tanstack-react-start': minor ---- - -The `svix` dependency is no longer needed when using the `verifyWebhook()` function. `verifyWebhook()` was refactored to not rely on `svix` anymore while keeping the same functionality and behavior. - -If you previously installed `svix` to use `verifyWebhook()` you can uninstall it now: - -```shell -npm uninstall svix -``` diff --git a/.changeset/long-coins-run.md b/.changeset/long-coins-run.md deleted file mode 100644 index d436373c273..00000000000 --- a/.changeset/long-coins-run.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@clerk/localizations": patch ---- - -Update Spanish (es-ES) password validation messages to match new English (en-US) format diff --git a/.changeset/metal-phones-like.md b/.changeset/metal-phones-like.md deleted file mode 100644 index 62ac81f0d23..00000000000 --- a/.changeset/metal-phones-like.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@clerk/clerk-js': minor -'@clerk/types': minor ---- - -Introduce `cssLayerName` option to allow users to opt Clerk styles into a native CSS layer. \ No newline at end of file diff --git a/.changeset/metal-tips-joke.md b/.changeset/metal-tips-joke.md deleted file mode 100644 index f6d16142cdf..00000000000 --- a/.changeset/metal-tips-joke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/clerk-js': patch ---- - -Clean up layout and logic of the `PlanDetails` drawer diff --git a/.changeset/nasty-items-jog.md b/.changeset/nasty-items-jog.md deleted file mode 100644 index 910a6a72fc8..00000000000 --- a/.changeset/nasty-items-jog.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/clerk-js': patch ---- - -Initiate enterprise SSO from ticket flows, such as organization invitations. diff --git a/.changeset/plenty-files-sit.md b/.changeset/plenty-files-sit.md deleted file mode 100644 index b30885e41ca..00000000000 --- a/.changeset/plenty-files-sit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/testing': patch ---- - -Update checkoutObject with `waitForStipeElements` method and `root` property. diff --git a/.changeset/puny-brooms-grab.md b/.changeset/puny-brooms-grab.md deleted file mode 100644 index b62fdf0739d..00000000000 --- a/.changeset/puny-brooms-grab.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/tanstack-react-start': patch ---- - -Apply Clerk response headers diff --git a/.changeset/quick-students-invent.md b/.changeset/quick-students-invent.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/quick-students-invent.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/rich-candies-wish.md b/.changeset/rich-candies-wish.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/rich-candies-wish.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/shaky-ants-raise.md b/.changeset/shaky-ants-raise.md deleted file mode 100644 index 2f1e1b76c69..00000000000 --- a/.changeset/shaky-ants-raise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/clerk-react': patch ---- - -Initialize isomorphic clerk with `useRef`. Avoid memoizing the singleton, instead use a reference to store it, and then destroy it. diff --git a/.changeset/six-crabs-carry.md b/.changeset/six-crabs-carry.md deleted file mode 100644 index 3c29c67ed66..00000000000 --- a/.changeset/six-crabs-carry.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@clerk/clerk-js': patch -'@clerk/clerk-react': patch -'@clerk/types': patch ---- - -Introduce internal `` component to be used internally in the machine auth OAuth flow in account portal. diff --git a/.changeset/six-lions-wear.md b/.changeset/six-lions-wear.md deleted file mode 100644 index 5be78e96fe6..00000000000 --- a/.changeset/six-lions-wear.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/backend': patch ---- - -Improve JSDoc comments for verifyWebhook and verifyToken diff --git a/.changeset/slow-hats-drum.md b/.changeset/slow-hats-drum.md deleted file mode 100644 index e04743d69f6..00000000000 --- a/.changeset/slow-hats-drum.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/clerk-expo': minor ---- - -Default token cache `SecureStore` implementation `keychainAccessible` to `AFTER_FIRST_UNLOCK` createResourceCacheStore to align with createTokenCache - The data in the keychain item cannot be accessed after a restart until the device has been unlocked once by the user. This may be useful if you need to access the item when the device is locked. diff --git a/.changeset/tired-horses-type.md b/.changeset/tired-horses-type.md deleted file mode 100644 index 75ea83ba95a..00000000000 --- a/.changeset/tired-horses-type.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/testing': minor ---- - -Add `waitToBeActive({ planSlug })` and `getPlanCardCTA({ planSlug })` to pricingTable object. diff --git a/.changeset/true-bears-divide.md b/.changeset/true-bears-divide.md deleted file mode 100644 index 8ec4fbc9c43..00000000000 --- a/.changeset/true-bears-divide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/backend': patch ---- - -Improve JSDoc comments diff --git a/.changeset/twelve-feet-yell.md b/.changeset/twelve-feet-yell.md deleted file mode 100644 index 560519a40b4..00000000000 --- a/.changeset/twelve-feet-yell.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@clerk/backend': patch -'@clerk/nextjs': patch -'@clerk/astro': patch ---- - -Introduce `getAuthObjectFromJwt` as internal utility function that centralizes the logic for generating auth objects from session JWTs. diff --git a/.changeset/wild-pugs-kick.md b/.changeset/wild-pugs-kick.md deleted file mode 100644 index 11b28fa3cc6..00000000000 --- a/.changeset/wild-pugs-kick.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@clerk/clerk-js': patch -'@clerk/types': patch ---- - -feat(types,clerk-js): Update types; RoleSelect allows fallbackLabel -- this updates OrganizationInvitation and OrganizationMembership resource+types to include `roleName` which is already present on frontend-api responses, as `role_name`. -- this updates RoleSelect to allow rendering a `fallbackLabel` in the event that `value` does not map to any of the supplied roles \ No newline at end of file diff --git a/packages/agent-toolkit/CHANGELOG.md b/packages/agent-toolkit/CHANGELOG.md index f8aa237fc47..dad4c306b50 100644 --- a/packages/agent-toolkit/CHANGELOG.md +++ b/packages/agent-toolkit/CHANGELOG.md @@ -1,5 +1,36 @@ # @clerk/agent-toolkit +## 0.1.0 + +### Minor Changes + +- Machine authentication is now supported for advanced use cases via the backend SDK. You can use `clerkClient.authenticateRequest` to validate machine tokens (such as API keys, OAuth tokens, and machine-to-machine tokens). No new helpers are included in these packages yet. ([#5689](https://github.com/clerk/javascript/pull/5689)) by [@wobsoriano](https://github.com/wobsoriano) + + Example (Astro): + + ```ts + import { clerkClient } from '@clerk/astro/server'; + + export const GET: APIRoute = ({ request }) => { + const requestState = await clerkClient.authenticateRequest(request, { + acceptsToken: 'api_key', + }); + + if (!requestState.isAuthenticated) { + return new Response(401, { message: 'Unauthorized' }); + } + + return new Response(JSON.stringify(requestState.toAuth())); + }; + ``` + +### Patch Changes + +- Updated dependencies [[`ea622ba`](https://github.com/clerk/javascript/commit/ea622bae90e18ae2ea8dbc6c94cad857557539c9), [`d8fa5d9`](https://github.com/clerk/javascript/commit/d8fa5d9d3d8dc575260d8d2b7c7eeeb0052d0b0d), [`be2e89c`](https://github.com/clerk/javascript/commit/be2e89ca11aa43d48f74c57a5a34e20d85b4003c), [`c656270`](https://github.com/clerk/javascript/commit/c656270f9e05fd1f44fc4c81851be0b1111cb933), [`5644d94`](https://github.com/clerk/javascript/commit/5644d94f711a0733e4970c3f15c24d56cafc8743), [`b578225`](https://github.com/clerk/javascript/commit/b5782258242474c9b0987a3f8349836cd763f24b), [`918e2e0`](https://github.com/clerk/javascript/commit/918e2e085bf88c3cfaa5fcb0f1ae8c31b3f7053e), [`795d09a`](https://github.com/clerk/javascript/commit/795d09a652f791e1e409406e335e0860aceda110), [`4f93634`](https://github.com/clerk/javascript/commit/4f93634ed6bcd45f21bddcb39a33434b1cb560fe), [`8838120`](https://github.com/clerk/javascript/commit/8838120596830b88fec1c6c853371dabfec74a0d)]: + - @clerk/backend@2.0.0 + - @clerk/types@4.60.0 + - @clerk/shared@3.9.6 + ## 0.0.40 ### Patch Changes diff --git a/packages/agent-toolkit/package.json b/packages/agent-toolkit/package.json index c27c10a2418..d163a80a879 100644 --- a/packages/agent-toolkit/package.json +++ b/packages/agent-toolkit/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/agent-toolkit", - "version": "0.0.40", + "version": "0.1.0", "description": "Clerk Toolkit for AI Agents", "homepage": "https://clerk.com/", "bugs": { diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index adf4e15166c..872c8eebb38 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,46 @@ # @clerk/astro +## 2.9.0 + +### Minor Changes + +- Machine authentication is now supported for advanced use cases via the backend SDK. You can use `clerkClient.authenticateRequest` to validate machine tokens (such as API keys, OAuth tokens, and machine-to-machine tokens). No new helpers are included in these packages yet. ([#5689](https://github.com/clerk/javascript/pull/5689)) by [@wobsoriano](https://github.com/wobsoriano) + + Example (Astro): + + ```ts + import { clerkClient } from '@clerk/astro/server'; + + export const GET: APIRoute = ({ request }) => { + const requestState = await clerkClient.authenticateRequest(request, { + acceptsToken: 'api_key', + }); + + if (!requestState.isAuthenticated) { + return new Response(401, { message: 'Unauthorized' }); + } + + return new Response(JSON.stringify(requestState.toAuth())); + }; + ``` + +- The `svix` dependency is no longer needed when using the `verifyWebhook()` function. `verifyWebhook()` was refactored to not rely on `svix` anymore while keeping the same functionality and behavior. ([#6059](https://github.com/clerk/javascript/pull/6059)) by [@royanger](https://github.com/royanger) + + If you previously installed `svix` to use `verifyWebhook()` you can uninstall it now: + + ```shell + npm uninstall svix + ``` + +### Patch Changes + +- Introduce `getAuthObjectFromJwt` as internal utility function that centralizes the logic for generating auth objects from session JWTs. ([#6053](https://github.com/clerk/javascript/pull/6053)) by [@LauraBeatris](https://github.com/LauraBeatris) + +- Updated dependencies [[`ea622ba`](https://github.com/clerk/javascript/commit/ea622bae90e18ae2ea8dbc6c94cad857557539c9), [`d8fa5d9`](https://github.com/clerk/javascript/commit/d8fa5d9d3d8dc575260d8d2b7c7eeeb0052d0b0d), [`be2e89c`](https://github.com/clerk/javascript/commit/be2e89ca11aa43d48f74c57a5a34e20d85b4003c), [`c656270`](https://github.com/clerk/javascript/commit/c656270f9e05fd1f44fc4c81851be0b1111cb933), [`5644d94`](https://github.com/clerk/javascript/commit/5644d94f711a0733e4970c3f15c24d56cafc8743), [`b578225`](https://github.com/clerk/javascript/commit/b5782258242474c9b0987a3f8349836cd763f24b), [`918e2e0`](https://github.com/clerk/javascript/commit/918e2e085bf88c3cfaa5fcb0f1ae8c31b3f7053e), [`795d09a`](https://github.com/clerk/javascript/commit/795d09a652f791e1e409406e335e0860aceda110), [`4f93634`](https://github.com/clerk/javascript/commit/4f93634ed6bcd45f21bddcb39a33434b1cb560fe), [`8838120`](https://github.com/clerk/javascript/commit/8838120596830b88fec1c6c853371dabfec74a0d)]: + - @clerk/backend@2.0.0 + - @clerk/types@4.60.0 + - @clerk/shared@3.9.6 + ## 2.8.2 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index d924f76dff2..7324cbc829a 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/astro", - "version": "2.8.2", + "version": "2.9.0", "description": "Clerk SDK for Astro", "keywords": [ "auth", diff --git a/packages/backend/CHANGELOG.md b/packages/backend/CHANGELOG.md index 43864959d57..723d9ac6bb9 100644 --- a/packages/backend/CHANGELOG.md +++ b/packages/backend/CHANGELOG.md @@ -1,5 +1,68 @@ # Change Log +## 2.0.0 + +### Major Changes + +- Introduces machine authentication, supporting four token types: `api_key`, `oauth_token`, `machine_token`, and `session_token`. For backwards compatibility, `session_token` remains the default when no token type is specified. This enables machine-to-machine authentication and use cases such as API keys and OAuth integrations. Existing applications continue to work without modification. ([#5689](https://github.com/clerk/javascript/pull/5689)) by [@wobsoriano](https://github.com/wobsoriano) + + You can specify which token types are allowed by using the `acceptsToken` option in the `authenticateRequest()` function. This option can be set to a specific type, an array of types, or `'any'` to accept all supported tokens. + + Example usage: + + ```ts + import express from 'express'; + import { clerkClient } from '@clerk/backend'; + + const app = express(); + + app.use(async (req, res, next) => { + const requestState = await clerkClient.authenticateRequest(req, { + acceptsToken: 'any', + }); + + if (!requestState.isAuthenticated) { + // do something for unauthenticated requests + } + + const authObject = requestState.toAuth(); + + if (authObject.tokenType === 'session_token') { + console.log('this is session token from a user'); + } else { + console.log('this is some other type of machine token'); + console.log('more specifically, a ' + authObject.tokenType); + } + + // Attach the auth object to locals so downstream handlers + // and middleware can access it + res.locals.auth = authObject; + next(); + }); + ``` + +### Minor Changes + +- The `svix` dependency is no longer needed when using the `verifyWebhook()` function. `verifyWebhook()` was refactored to not rely on `svix` anymore while keeping the same functionality and behavior. ([#6059](https://github.com/clerk/javascript/pull/6059)) by [@royanger](https://github.com/royanger) + + If you previously installed `svix` to use `verifyWebhook()` you can uninstall it now: + + ```shell + npm uninstall svix + ``` + +### Patch Changes + +- Improve JSDoc comments for verifyWebhook and verifyToken ([#6060](https://github.com/clerk/javascript/pull/6060)) by [@LekoArts](https://github.com/LekoArts) + +- Improve JSDoc comments ([#6049](https://github.com/clerk/javascript/pull/6049)) by [@LekoArts](https://github.com/LekoArts) + +- Introduce `getAuthObjectFromJwt` as internal utility function that centralizes the logic for generating auth objects from session JWTs. ([#6053](https://github.com/clerk/javascript/pull/6053)) by [@LauraBeatris](https://github.com/LauraBeatris) + +- Updated dependencies [[`d8fa5d9`](https://github.com/clerk/javascript/commit/d8fa5d9d3d8dc575260d8d2b7c7eeeb0052d0b0d), [`be2e89c`](https://github.com/clerk/javascript/commit/be2e89ca11aa43d48f74c57a5a34e20d85b4003c), [`5644d94`](https://github.com/clerk/javascript/commit/5644d94f711a0733e4970c3f15c24d56cafc8743), [`b578225`](https://github.com/clerk/javascript/commit/b5782258242474c9b0987a3f8349836cd763f24b), [`8838120`](https://github.com/clerk/javascript/commit/8838120596830b88fec1c6c853371dabfec74a0d)]: + - @clerk/types@4.60.0 + - @clerk/shared@3.9.6 + ## 1.34.0 ### Minor Changes diff --git a/packages/backend/package.json b/packages/backend/package.json index 9978d559657..337bcce1ad4 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/backend", - "version": "1.34.0", + "version": "2.0.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 01b6ff8f980..2adc57b9c8f 100644 --- a/packages/chrome-extension/CHANGELOG.md +++ b/packages/chrome-extension/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 2.4.11 + +### Patch Changes + +- Updated dependencies [[`d8fa5d9`](https://github.com/clerk/javascript/commit/d8fa5d9d3d8dc575260d8d2b7c7eeeb0052d0b0d), [`be2e89c`](https://github.com/clerk/javascript/commit/be2e89ca11aa43d48f74c57a5a34e20d85b4003c), [`5644d94`](https://github.com/clerk/javascript/commit/5644d94f711a0733e4970c3f15c24d56cafc8743), [`30bac73`](https://github.com/clerk/javascript/commit/30bac734a4dd22a6e2eb8551cb640b14feac3ee6), [`32a5e11`](https://github.com/clerk/javascript/commit/32a5e11f3e342fd0aa047f64c17f691bfbd33c34), [`a3232c7`](https://github.com/clerk/javascript/commit/a3232c7ee8c1173d2ce70f8252fc083c7bf19374), [`b578225`](https://github.com/clerk/javascript/commit/b5782258242474c9b0987a3f8349836cd763f24b), [`8838120`](https://github.com/clerk/javascript/commit/8838120596830b88fec1c6c853371dabfec74a0d)]: + - @clerk/clerk-js@5.68.0 + - @clerk/clerk-react@5.31.9 + - @clerk/shared@3.9.6 + ## 2.4.10 ### Patch Changes diff --git a/packages/chrome-extension/package.json b/packages/chrome-extension/package.json index e310f5db8d4..6fa55142202 100644 --- a/packages/chrome-extension/package.json +++ b/packages/chrome-extension/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/chrome-extension", - "version": "2.4.10", + "version": "2.4.11", "description": "Clerk SDK for Chrome extensions", "keywords": [ "auth", diff --git a/packages/clerk-js/CHANGELOG.md b/packages/clerk-js/CHANGELOG.md index ea24ae2b100..286cbe10b96 100644 --- a/packages/clerk-js/CHANGELOG.md +++ b/packages/clerk-js/CHANGELOG.md @@ -1,5 +1,33 @@ # Change Log +## 5.68.0 + +### Minor Changes + +- Introduce `cssLayerName` option to allow users to opt Clerk styles into a native CSS layer. ([#5552](https://github.com/clerk/javascript/pull/5552)) by [@alexcarpenter](https://github.com/alexcarpenter) + +### Patch Changes + +- Get `payment_method_order` for Stripe payment elements from backend ([#6034](https://github.com/clerk/javascript/pull/6034)) by [@aeliox](https://github.com/aeliox) + +- Use the `is_removable` flag on a payment source to determine if it can be removed. ([#6033](https://github.com/clerk/javascript/pull/6033)) by [@aeliox](https://github.com/aeliox) + +- Clean up layout and logic of the `PlanDetails` drawer ([#5928](https://github.com/clerk/javascript/pull/5928)) by [@aeliox](https://github.com/aeliox) + +- Initiate enterprise SSO from ticket flows, such as organization invitations. ([#6009](https://github.com/clerk/javascript/pull/6009)) by [@LauraBeatris](https://github.com/LauraBeatris) + +- Introduce internal `` component to be used internally in the machine auth OAuth flow in account portal. ([#6021](https://github.com/clerk/javascript/pull/6021)) by [@alexcarpenter](https://github.com/alexcarpenter) + +- feat(types,clerk-js): Update types; RoleSelect allows fallbackLabel ([#6037](https://github.com/clerk/javascript/pull/6037)) by [@thiskevinwang](https://github.com/thiskevinwang) + + - this updates OrganizationInvitation and OrganizationMembership resource+types to include `roleName` which is already present on frontend-api responses, as `role_name`. + - this updates RoleSelect to allow rendering a `fallbackLabel` in the event that `value` does not map to any of the supplied roles + +- Updated dependencies [[`d8fa5d9`](https://github.com/clerk/javascript/commit/d8fa5d9d3d8dc575260d8d2b7c7eeeb0052d0b0d), [`be2e89c`](https://github.com/clerk/javascript/commit/be2e89ca11aa43d48f74c57a5a34e20d85b4003c), [`85f3db4`](https://github.com/clerk/javascript/commit/85f3db4305b78a71271526b5ef900a5d1b941805), [`5644d94`](https://github.com/clerk/javascript/commit/5644d94f711a0733e4970c3f15c24d56cafc8743), [`b578225`](https://github.com/clerk/javascript/commit/b5782258242474c9b0987a3f8349836cd763f24b), [`8838120`](https://github.com/clerk/javascript/commit/8838120596830b88fec1c6c853371dabfec74a0d)]: + - @clerk/types@4.60.0 + - @clerk/localizations@3.16.4 + - @clerk/shared@3.9.6 + ## 5.67.5 ### Patch Changes diff --git a/packages/clerk-js/package.json b/packages/clerk-js/package.json index 6b13a627cfd..dc87d7a52f8 100644 --- a/packages/clerk-js/package.json +++ b/packages/clerk-js/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-js", - "version": "5.67.5", + "version": "5.68.0", "description": "Clerk JS library", "keywords": [ "clerk", diff --git a/packages/elements/CHANGELOG.md b/packages/elements/CHANGELOG.md index 1ee823520a4..aa80dd68542 100644 --- a/packages/elements/CHANGELOG.md +++ b/packages/elements/CHANGELOG.md @@ -1,5 +1,14 @@ # @clerk/elements +## 0.23.32 + +### Patch Changes + +- Updated dependencies [[`d8fa5d9`](https://github.com/clerk/javascript/commit/d8fa5d9d3d8dc575260d8d2b7c7eeeb0052d0b0d), [`be2e89c`](https://github.com/clerk/javascript/commit/be2e89ca11aa43d48f74c57a5a34e20d85b4003c), [`5644d94`](https://github.com/clerk/javascript/commit/5644d94f711a0733e4970c3f15c24d56cafc8743), [`a3232c7`](https://github.com/clerk/javascript/commit/a3232c7ee8c1173d2ce70f8252fc083c7bf19374), [`b578225`](https://github.com/clerk/javascript/commit/b5782258242474c9b0987a3f8349836cd763f24b), [`8838120`](https://github.com/clerk/javascript/commit/8838120596830b88fec1c6c853371dabfec74a0d)]: + - @clerk/types@4.60.0 + - @clerk/clerk-react@5.31.9 + - @clerk/shared@3.9.6 + ## 0.23.31 ### Patch Changes diff --git a/packages/elements/package.json b/packages/elements/package.json index ac519d50ad2..7c67fe3e4ad 100644 --- a/packages/elements/package.json +++ b/packages/elements/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/elements", - "version": "0.23.31", + "version": "0.23.32", "description": "Clerk Elements", "keywords": [ "clerk", diff --git a/packages/expo-passkeys/CHANGELOG.md b/packages/expo-passkeys/CHANGELOG.md index 7dc94944266..63bef30e90a 100644 --- a/packages/expo-passkeys/CHANGELOG.md +++ b/packages/expo-passkeys/CHANGELOG.md @@ -1,5 +1,13 @@ # @clerk/expo-passkeys +## 0.3.9 + +### Patch Changes + +- Updated dependencies [[`d8fa5d9`](https://github.com/clerk/javascript/commit/d8fa5d9d3d8dc575260d8d2b7c7eeeb0052d0b0d), [`be2e89c`](https://github.com/clerk/javascript/commit/be2e89ca11aa43d48f74c57a5a34e20d85b4003c), [`5644d94`](https://github.com/clerk/javascript/commit/5644d94f711a0733e4970c3f15c24d56cafc8743), [`b578225`](https://github.com/clerk/javascript/commit/b5782258242474c9b0987a3f8349836cd763f24b), [`8838120`](https://github.com/clerk/javascript/commit/8838120596830b88fec1c6c853371dabfec74a0d)]: + - @clerk/types@4.60.0 + - @clerk/shared@3.9.6 + ## 0.3.8 ### Patch Changes diff --git a/packages/expo-passkeys/package.json b/packages/expo-passkeys/package.json index ce2088420ad..ceab7aa361c 100644 --- a/packages/expo-passkeys/package.json +++ b/packages/expo-passkeys/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/expo-passkeys", - "version": "0.3.8", + "version": "0.3.9", "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 65cd985a2d0..f8efb7e0a40 100644 --- a/packages/expo/CHANGELOG.md +++ b/packages/expo/CHANGELOG.md @@ -1,5 +1,19 @@ # Change Log +## 2.13.0 + +### Minor Changes + +- Default token cache `SecureStore` implementation `keychainAccessible` to `AFTER_FIRST_UNLOCK` createResourceCacheStore to align with createTokenCache - The data in the keychain item cannot be accessed after a restart until the device has been unlocked once by the user. This may be useful if you need to access the item when the device is locked. ([#6054](https://github.com/clerk/javascript/pull/6054)) by [@kkawamu1](https://github.com/kkawamu1) + +### Patch Changes + +- Updated dependencies [[`d8fa5d9`](https://github.com/clerk/javascript/commit/d8fa5d9d3d8dc575260d8d2b7c7eeeb0052d0b0d), [`be2e89c`](https://github.com/clerk/javascript/commit/be2e89ca11aa43d48f74c57a5a34e20d85b4003c), [`5644d94`](https://github.com/clerk/javascript/commit/5644d94f711a0733e4970c3f15c24d56cafc8743), [`30bac73`](https://github.com/clerk/javascript/commit/30bac734a4dd22a6e2eb8551cb640b14feac3ee6), [`32a5e11`](https://github.com/clerk/javascript/commit/32a5e11f3e342fd0aa047f64c17f691bfbd33c34), [`a3232c7`](https://github.com/clerk/javascript/commit/a3232c7ee8c1173d2ce70f8252fc083c7bf19374), [`b578225`](https://github.com/clerk/javascript/commit/b5782258242474c9b0987a3f8349836cd763f24b), [`8838120`](https://github.com/clerk/javascript/commit/8838120596830b88fec1c6c853371dabfec74a0d)]: + - @clerk/clerk-js@5.68.0 + - @clerk/types@4.60.0 + - @clerk/clerk-react@5.31.9 + - @clerk/shared@3.9.6 + ## 2.12.0 ### Minor Changes diff --git a/packages/expo/package.json b/packages/expo/package.json index 7bc88cfb65a..0be57de5558 100644 --- a/packages/expo/package.json +++ b/packages/expo/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-expo", - "version": "2.12.0", + "version": "2.13.0", "description": "Clerk React Native/Expo library", "keywords": [ "react", diff --git a/packages/express/CHANGELOG.md b/packages/express/CHANGELOG.md index 86367b3a83b..1cc275b21ef 100644 --- a/packages/express/CHANGELOG.md +++ b/packages/express/CHANGELOG.md @@ -1,5 +1,44 @@ # Change Log +## 1.6.0 + +### Minor Changes + +- Machine authentication is now supported for advanced use cases via the backend SDK. You can use `clerkClient.authenticateRequest` to validate machine tokens (such as API keys, OAuth tokens, and machine-to-machine tokens). No new helpers are included in these packages yet. ([#5689](https://github.com/clerk/javascript/pull/5689)) by [@wobsoriano](https://github.com/wobsoriano) + + Example (Astro): + + ```ts + import { clerkClient } from '@clerk/astro/server'; + + export const GET: APIRoute = ({ request }) => { + const requestState = await clerkClient.authenticateRequest(request, { + acceptsToken: 'api_key', + }); + + if (!requestState.isAuthenticated) { + return new Response(401, { message: 'Unauthorized' }); + } + + return new Response(JSON.stringify(requestState.toAuth())); + }; + ``` + +- The `svix` dependency is no longer needed when using the `verifyWebhook()` function. `verifyWebhook()` was refactored to not rely on `svix` anymore while keeping the same functionality and behavior. ([#6059](https://github.com/clerk/javascript/pull/6059)) by [@royanger](https://github.com/royanger) + + If you previously installed `svix` to use `verifyWebhook()` you can uninstall it now: + + ```shell + npm uninstall svix + ``` + +### Patch Changes + +- Updated dependencies [[`ea622ba`](https://github.com/clerk/javascript/commit/ea622bae90e18ae2ea8dbc6c94cad857557539c9), [`d8fa5d9`](https://github.com/clerk/javascript/commit/d8fa5d9d3d8dc575260d8d2b7c7eeeb0052d0b0d), [`be2e89c`](https://github.com/clerk/javascript/commit/be2e89ca11aa43d48f74c57a5a34e20d85b4003c), [`c656270`](https://github.com/clerk/javascript/commit/c656270f9e05fd1f44fc4c81851be0b1111cb933), [`5644d94`](https://github.com/clerk/javascript/commit/5644d94f711a0733e4970c3f15c24d56cafc8743), [`b578225`](https://github.com/clerk/javascript/commit/b5782258242474c9b0987a3f8349836cd763f24b), [`918e2e0`](https://github.com/clerk/javascript/commit/918e2e085bf88c3cfaa5fcb0f1ae8c31b3f7053e), [`795d09a`](https://github.com/clerk/javascript/commit/795d09a652f791e1e409406e335e0860aceda110), [`4f93634`](https://github.com/clerk/javascript/commit/4f93634ed6bcd45f21bddcb39a33434b1cb560fe), [`8838120`](https://github.com/clerk/javascript/commit/8838120596830b88fec1c6c853371dabfec74a0d)]: + - @clerk/backend@2.0.0 + - @clerk/types@4.60.0 + - @clerk/shared@3.9.6 + ## 1.5.2 ### Patch Changes diff --git a/packages/express/package.json b/packages/express/package.json index 4893554f36e..de0c08614f7 100644 --- a/packages/express/package.json +++ b/packages/express/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/express", - "version": "1.5.2", + "version": "1.6.0", "description": "Clerk server SDK for usage with Express", "keywords": [ "clerk", diff --git a/packages/fastify/CHANGELOG.md b/packages/fastify/CHANGELOG.md index 4bb0f6bf6be..2f73ecae6c6 100644 --- a/packages/fastify/CHANGELOG.md +++ b/packages/fastify/CHANGELOG.md @@ -1,5 +1,44 @@ # Change Log +## 2.3.0 + +### Minor Changes + +- Machine authentication is now supported for advanced use cases via the backend SDK. You can use `clerkClient.authenticateRequest` to validate machine tokens (such as API keys, OAuth tokens, and machine-to-machine tokens). No new helpers are included in these packages yet. ([#5689](https://github.com/clerk/javascript/pull/5689)) by [@wobsoriano](https://github.com/wobsoriano) + + Example (Astro): + + ```ts + import { clerkClient } from '@clerk/astro/server'; + + export const GET: APIRoute = ({ request }) => { + const requestState = await clerkClient.authenticateRequest(request, { + acceptsToken: 'api_key', + }); + + if (!requestState.isAuthenticated) { + return new Response(401, { message: 'Unauthorized' }); + } + + return new Response(JSON.stringify(requestState.toAuth())); + }; + ``` + +- The `svix` dependency is no longer needed when using the `verifyWebhook()` function. `verifyWebhook()` was refactored to not rely on `svix` anymore while keeping the same functionality and behavior. ([#6059](https://github.com/clerk/javascript/pull/6059)) by [@royanger](https://github.com/royanger) + + If you previously installed `svix` to use `verifyWebhook()` you can uninstall it now: + + ```shell + npm uninstall svix + ``` + +### Patch Changes + +- Updated dependencies [[`ea622ba`](https://github.com/clerk/javascript/commit/ea622bae90e18ae2ea8dbc6c94cad857557539c9), [`d8fa5d9`](https://github.com/clerk/javascript/commit/d8fa5d9d3d8dc575260d8d2b7c7eeeb0052d0b0d), [`be2e89c`](https://github.com/clerk/javascript/commit/be2e89ca11aa43d48f74c57a5a34e20d85b4003c), [`c656270`](https://github.com/clerk/javascript/commit/c656270f9e05fd1f44fc4c81851be0b1111cb933), [`5644d94`](https://github.com/clerk/javascript/commit/5644d94f711a0733e4970c3f15c24d56cafc8743), [`b578225`](https://github.com/clerk/javascript/commit/b5782258242474c9b0987a3f8349836cd763f24b), [`918e2e0`](https://github.com/clerk/javascript/commit/918e2e085bf88c3cfaa5fcb0f1ae8c31b3f7053e), [`795d09a`](https://github.com/clerk/javascript/commit/795d09a652f791e1e409406e335e0860aceda110), [`4f93634`](https://github.com/clerk/javascript/commit/4f93634ed6bcd45f21bddcb39a33434b1cb560fe), [`8838120`](https://github.com/clerk/javascript/commit/8838120596830b88fec1c6c853371dabfec74a0d)]: + - @clerk/backend@2.0.0 + - @clerk/types@4.60.0 + - @clerk/shared@3.9.6 + ## 2.2.23 ### Patch Changes diff --git a/packages/fastify/package.json b/packages/fastify/package.json index 4439fb3673f..57f13504ce6 100644 --- a/packages/fastify/package.json +++ b/packages/fastify/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/fastify", - "version": "2.2.23", + "version": "2.3.0", "description": "Clerk SDK for Fastify", "keywords": [ "auth", diff --git a/packages/localizations/CHANGELOG.md b/packages/localizations/CHANGELOG.md index 6aacb10d654..53675147a55 100644 --- a/packages/localizations/CHANGELOG.md +++ b/packages/localizations/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 3.16.4 + +### Patch Changes + +- Update Spanish (es-ES) password validation messages to match new English (en-US) format ([#6048](https://github.com/clerk/javascript/pull/6048)) by [@ReyserLyn](https://github.com/ReyserLyn) + +- Updated dependencies [[`d8fa5d9`](https://github.com/clerk/javascript/commit/d8fa5d9d3d8dc575260d8d2b7c7eeeb0052d0b0d), [`be2e89c`](https://github.com/clerk/javascript/commit/be2e89ca11aa43d48f74c57a5a34e20d85b4003c), [`5644d94`](https://github.com/clerk/javascript/commit/5644d94f711a0733e4970c3f15c24d56cafc8743), [`b578225`](https://github.com/clerk/javascript/commit/b5782258242474c9b0987a3f8349836cd763f24b), [`8838120`](https://github.com/clerk/javascript/commit/8838120596830b88fec1c6c853371dabfec74a0d)]: + - @clerk/types@4.60.0 + ## 3.16.3 ### Patch Changes diff --git a/packages/localizations/package.json b/packages/localizations/package.json index 4a939123caf..fe49d3d2cc8 100644 --- a/packages/localizations/package.json +++ b/packages/localizations/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/localizations", - "version": "3.16.3", + "version": "3.16.4", "description": "Localizations for the Clerk components", "keywords": [ "react", diff --git a/packages/nextjs/CHANGELOG.md b/packages/nextjs/CHANGELOG.md index 450647b4bac..0ddef58438e 100644 --- a/packages/nextjs/CHANGELOG.md +++ b/packages/nextjs/CHANGELOG.md @@ -1,5 +1,82 @@ # Change Log +## 6.21.0 + +### Minor Changes + +- Introduces machine authentication, supporting four token types: `api_key`, `oauth_token`, `machine_token`, and `session_token`. For backwards compatibility, `session_token` remains the default when no token type is specified. This enables machine-to-machine authentication and use cases such as API keys and OAuth integrations. Existing applications continue to work without modification. ([#5689](https://github.com/clerk/javascript/pull/5689)) by [@wobsoriano](https://github.com/wobsoriano) + + You can specify which token types are allowed for a given route or handler using the `acceptsToken` property in the `auth()` helper, or the `token` property in the `auth.protect()` helper. Each can be set to a specific type, an array of types, or `'any'` to accept all supported tokens. + + Example usage in Nextjs middleware: + + ```ts + import { clerkMiddleware, createRouteMatcher } from '@clerk/nextjs/server'; + + const isOAuthAccessible = createRouteMatcher(['/oauth(.*)']); + const isApiKeyAccessible = createRouteMatcher(['/api(.*)']); + const isMachineTokenAccessible = createRouteMatcher(['/m2m(.*)']); + const isUserAccessible = createRouteMatcher(['/user(.*)']); + const isAccessibleToAnyValidToken = createRouteMatcher(['/any(.*)']); + + export default clerkMiddleware(async (auth, req) => { + if (isOAuthAccessible(req)) await auth.protect({ token: 'oauth_token' }); + if (isApiKeyAccessible(req)) await auth.protect({ token: 'api_key' }); + if (isMachineTokenAccessible(req)) await auth.protect({ token: 'machine_token' }); + if (isUserAccessible(req)) await auth.protect({ token: 'session_token' }); + + if (isAccessibleToAnyValidToken(req)) await auth.protect({ token: 'any' }); + }); + + export const config = { + matcher: [ + '/((?!_next|[^?]*\\.(?:html?|css|js(?!on)|jpe?g|webp|png|gif|svg|ttf|woff2?|ico|csv|docx?|xlsx?|zip|webmanifest)).*)', + '/(api|trpc)(.*)', + ], + }; + ``` + + Leaf node route protection: + + ```ts + import { auth } from '@clerk/nextjs/server'; + + // In this example, we allow users and oauth tokens with the "profile" scope + // to access the data. Other types of tokens are rejected. + function POST(req, res) { + const authObject = await auth({ acceptsToken: ['session_token', 'oauth_token'] }); + + if (authObject.tokenType === 'oauth_token' && !authObject.scopes?.includes('profile')) { + throw new Error('Unauthorized: OAuth token missing the "profile" scope'); + } + + // get data from db using userId + const data = db.select().from(user).where(eq(user.id, authObject.userId)); + + return { data }; + } + ``` + +- The `svix` dependency is no longer needed when using the `verifyWebhook()` function. `verifyWebhook()` was refactored to not rely on `svix` anymore while keeping the same functionality and behavior. ([#6059](https://github.com/clerk/javascript/pull/6059)) by [@royanger](https://github.com/royanger) + + If you previously installed `svix` to use `verifyWebhook()` you can uninstall it now: + + ```shell + npm uninstall svix + ``` + +### Patch Changes + +- Updated URL for 'auth() was called but Clerk can't detect usage of clerkMiddleware()' ([#6035](https://github.com/clerk/javascript/pull/6035)) by [@royanger](https://github.com/royanger) + +- Introduce `getAuthObjectFromJwt` as internal utility function that centralizes the logic for generating auth objects from session JWTs. ([#6053](https://github.com/clerk/javascript/pull/6053)) by [@LauraBeatris](https://github.com/LauraBeatris) + +- Updated dependencies [[`ea622ba`](https://github.com/clerk/javascript/commit/ea622bae90e18ae2ea8dbc6c94cad857557539c9), [`d8fa5d9`](https://github.com/clerk/javascript/commit/d8fa5d9d3d8dc575260d8d2b7c7eeeb0052d0b0d), [`be2e89c`](https://github.com/clerk/javascript/commit/be2e89ca11aa43d48f74c57a5a34e20d85b4003c), [`c656270`](https://github.com/clerk/javascript/commit/c656270f9e05fd1f44fc4c81851be0b1111cb933), [`5644d94`](https://github.com/clerk/javascript/commit/5644d94f711a0733e4970c3f15c24d56cafc8743), [`a3232c7`](https://github.com/clerk/javascript/commit/a3232c7ee8c1173d2ce70f8252fc083c7bf19374), [`b578225`](https://github.com/clerk/javascript/commit/b5782258242474c9b0987a3f8349836cd763f24b), [`918e2e0`](https://github.com/clerk/javascript/commit/918e2e085bf88c3cfaa5fcb0f1ae8c31b3f7053e), [`795d09a`](https://github.com/clerk/javascript/commit/795d09a652f791e1e409406e335e0860aceda110), [`4f93634`](https://github.com/clerk/javascript/commit/4f93634ed6bcd45f21bddcb39a33434b1cb560fe), [`8838120`](https://github.com/clerk/javascript/commit/8838120596830b88fec1c6c853371dabfec74a0d)]: + - @clerk/backend@2.0.0 + - @clerk/types@4.60.0 + - @clerk/clerk-react@5.31.9 + - @clerk/shared@3.9.6 + ## 6.20.2 ### Patch Changes diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json index 3002ef5b92a..cafe62880d9 100644 --- a/packages/nextjs/package.json +++ b/packages/nextjs/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/nextjs", - "version": "6.20.2", + "version": "6.21.0", "description": "Clerk SDK for NextJS", "keywords": [ "clerk", diff --git a/packages/nuxt/CHANGELOG.md b/packages/nuxt/CHANGELOG.md index a82e9224d44..ce42fa9b922 100644 --- a/packages/nuxt/CHANGELOG.md +++ b/packages/nuxt/CHANGELOG.md @@ -1,5 +1,45 @@ # @clerk/nuxt +## 1.7.0 + +### Minor Changes + +- Machine authentication is now supported for advanced use cases via the backend SDK. You can use `clerkClient.authenticateRequest` to validate machine tokens (such as API keys, OAuth tokens, and machine-to-machine tokens). No new helpers are included in these packages yet. ([#5689](https://github.com/clerk/javascript/pull/5689)) by [@wobsoriano](https://github.com/wobsoriano) + + Example (Astro): + + ```ts + import { clerkClient } from '@clerk/astro/server'; + + export const GET: APIRoute = ({ request }) => { + const requestState = await clerkClient.authenticateRequest(request, { + acceptsToken: 'api_key', + }); + + if (!requestState.isAuthenticated) { + return new Response(401, { message: 'Unauthorized' }); + } + + return new Response(JSON.stringify(requestState.toAuth())); + }; + ``` + +- The `svix` dependency is no longer needed when using the `verifyWebhook()` function. `verifyWebhook()` was refactored to not rely on `svix` anymore while keeping the same functionality and behavior. ([#6059](https://github.com/clerk/javascript/pull/6059)) by [@royanger](https://github.com/royanger) + + If you previously installed `svix` to use `verifyWebhook()` you can uninstall it now: + + ```shell + npm uninstall svix + ``` + +### Patch Changes + +- Updated dependencies [[`ea622ba`](https://github.com/clerk/javascript/commit/ea622bae90e18ae2ea8dbc6c94cad857557539c9), [`d8fa5d9`](https://github.com/clerk/javascript/commit/d8fa5d9d3d8dc575260d8d2b7c7eeeb0052d0b0d), [`be2e89c`](https://github.com/clerk/javascript/commit/be2e89ca11aa43d48f74c57a5a34e20d85b4003c), [`c656270`](https://github.com/clerk/javascript/commit/c656270f9e05fd1f44fc4c81851be0b1111cb933), [`5644d94`](https://github.com/clerk/javascript/commit/5644d94f711a0733e4970c3f15c24d56cafc8743), [`b578225`](https://github.com/clerk/javascript/commit/b5782258242474c9b0987a3f8349836cd763f24b), [`918e2e0`](https://github.com/clerk/javascript/commit/918e2e085bf88c3cfaa5fcb0f1ae8c31b3f7053e), [`795d09a`](https://github.com/clerk/javascript/commit/795d09a652f791e1e409406e335e0860aceda110), [`4f93634`](https://github.com/clerk/javascript/commit/4f93634ed6bcd45f21bddcb39a33434b1cb560fe), [`8838120`](https://github.com/clerk/javascript/commit/8838120596830b88fec1c6c853371dabfec74a0d)]: + - @clerk/backend@2.0.0 + - @clerk/types@4.60.0 + - @clerk/shared@3.9.6 + - @clerk/vue@1.8.7 + ## 1.6.9 ### Patch Changes diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index c0ee644271d..ec33ecebbd9 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/nuxt", - "version": "1.6.9", + "version": "1.7.0", "description": "Clerk SDK for Nuxt", "keywords": [ "clerk", diff --git a/packages/react-router/CHANGELOG.md b/packages/react-router/CHANGELOG.md index faf8c5cdcf9..f3bf3c3aa45 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -1,5 +1,47 @@ # Change Log +## 1.5.0 + +### Minor Changes + +- Machine authentication is now supported for advanced use cases via the backend SDK. You can use `clerkClient.authenticateRequest` to validate machine tokens (such as API keys, OAuth tokens, and machine-to-machine tokens). No new helpers are included in these packages yet. ([#5689](https://github.com/clerk/javascript/pull/5689)) by [@wobsoriano](https://github.com/wobsoriano) + + Example (Astro): + + ```ts + import { clerkClient } from '@clerk/astro/server'; + + export const GET: APIRoute = ({ request }) => { + const requestState = await clerkClient.authenticateRequest(request, { + acceptsToken: 'api_key', + }); + + if (!requestState.isAuthenticated) { + return new Response(401, { message: 'Unauthorized' }); + } + + return new Response(JSON.stringify(requestState.toAuth())); + }; + ``` + +- The `svix` dependency is no longer needed when using the `verifyWebhook()` function. `verifyWebhook()` was refactored to not rely on `svix` anymore while keeping the same functionality and behavior. ([#6059](https://github.com/clerk/javascript/pull/6059)) by [@royanger](https://github.com/royanger) + + If you previously installed `svix` to use `verifyWebhook()` you can uninstall it now: + + ```shell + npm uninstall svix + ``` + +### Patch Changes + +- In this release the TypeScript types for `rootAuthLoader()`, `getAuth()`, and `` were adjusted but should still work as before. Previously, these types relied on internal, unstable React Router types that changed in their recent 7.6.1 release. We simplified our TypeScript types and no longer rely on internal exports from React Router. ([#6019](https://github.com/clerk/javascript/pull/6019)) by [@LekoArts](https://github.com/LekoArts) + +- Updated dependencies [[`ea622ba`](https://github.com/clerk/javascript/commit/ea622bae90e18ae2ea8dbc6c94cad857557539c9), [`d8fa5d9`](https://github.com/clerk/javascript/commit/d8fa5d9d3d8dc575260d8d2b7c7eeeb0052d0b0d), [`be2e89c`](https://github.com/clerk/javascript/commit/be2e89ca11aa43d48f74c57a5a34e20d85b4003c), [`c656270`](https://github.com/clerk/javascript/commit/c656270f9e05fd1f44fc4c81851be0b1111cb933), [`5644d94`](https://github.com/clerk/javascript/commit/5644d94f711a0733e4970c3f15c24d56cafc8743), [`a3232c7`](https://github.com/clerk/javascript/commit/a3232c7ee8c1173d2ce70f8252fc083c7bf19374), [`b578225`](https://github.com/clerk/javascript/commit/b5782258242474c9b0987a3f8349836cd763f24b), [`918e2e0`](https://github.com/clerk/javascript/commit/918e2e085bf88c3cfaa5fcb0f1ae8c31b3f7053e), [`795d09a`](https://github.com/clerk/javascript/commit/795d09a652f791e1e409406e335e0860aceda110), [`4f93634`](https://github.com/clerk/javascript/commit/4f93634ed6bcd45f21bddcb39a33434b1cb560fe), [`8838120`](https://github.com/clerk/javascript/commit/8838120596830b88fec1c6c853371dabfec74a0d)]: + - @clerk/backend@2.0.0 + - @clerk/types@4.60.0 + - @clerk/clerk-react@5.31.9 + - @clerk/shared@3.9.6 + ## 1.4.8 ### Patch Changes diff --git a/packages/react-router/package.json b/packages/react-router/package.json index 051c2b8b956..1872ae34fc8 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/react-router", - "version": "1.4.8", + "version": "1.5.0", "description": "Clerk SDK for React Router", "keywords": [ "clerk", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 907ee94fbd6..bec9f3c573b 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,17 @@ # Change Log +## 5.31.9 + +### Patch Changes + +- Initialize isomorphic clerk with `useRef`. Avoid memoizing the singleton, instead use a reference to store it, and then destroy it. ([#6024](https://github.com/clerk/javascript/pull/6024)) by [@panteliselef](https://github.com/panteliselef) + +- Introduce internal `` component to be used internally in the machine auth OAuth flow in account portal. ([#6021](https://github.com/clerk/javascript/pull/6021)) by [@alexcarpenter](https://github.com/alexcarpenter) + +- Updated dependencies [[`d8fa5d9`](https://github.com/clerk/javascript/commit/d8fa5d9d3d8dc575260d8d2b7c7eeeb0052d0b0d), [`be2e89c`](https://github.com/clerk/javascript/commit/be2e89ca11aa43d48f74c57a5a34e20d85b4003c), [`5644d94`](https://github.com/clerk/javascript/commit/5644d94f711a0733e4970c3f15c24d56cafc8743), [`b578225`](https://github.com/clerk/javascript/commit/b5782258242474c9b0987a3f8349836cd763f24b), [`8838120`](https://github.com/clerk/javascript/commit/8838120596830b88fec1c6c853371dabfec74a0d)]: + - @clerk/types@4.60.0 + - @clerk/shared@3.9.6 + ## 5.31.8 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index ee867760b06..1b079d1466f 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-react", - "version": "5.31.8", + "version": "5.31.9", "description": "Clerk React library", "keywords": [ "clerk", diff --git a/packages/remix/CHANGELOG.md b/packages/remix/CHANGELOG.md index 50ae4c93f11..7c4c966646c 100644 --- a/packages/remix/CHANGELOG.md +++ b/packages/remix/CHANGELOG.md @@ -1,5 +1,37 @@ # Change Log +## 4.8.0 + +### Minor Changes + +- Machine authentication is now supported for advanced use cases via the backend SDK. You can use `clerkClient.authenticateRequest` to validate machine tokens (such as API keys, OAuth tokens, and machine-to-machine tokens). No new helpers are included in these packages yet. ([#5689](https://github.com/clerk/javascript/pull/5689)) by [@wobsoriano](https://github.com/wobsoriano) + + Example (Astro): + + ```ts + import { clerkClient } from '@clerk/astro/server'; + + export const GET: APIRoute = ({ request }) => { + const requestState = await clerkClient.authenticateRequest(request, { + acceptsToken: 'api_key', + }); + + if (!requestState.isAuthenticated) { + return new Response(401, { message: 'Unauthorized' }); + } + + return new Response(JSON.stringify(requestState.toAuth())); + }; + ``` + +### Patch Changes + +- Updated dependencies [[`ea622ba`](https://github.com/clerk/javascript/commit/ea622bae90e18ae2ea8dbc6c94cad857557539c9), [`d8fa5d9`](https://github.com/clerk/javascript/commit/d8fa5d9d3d8dc575260d8d2b7c7eeeb0052d0b0d), [`be2e89c`](https://github.com/clerk/javascript/commit/be2e89ca11aa43d48f74c57a5a34e20d85b4003c), [`c656270`](https://github.com/clerk/javascript/commit/c656270f9e05fd1f44fc4c81851be0b1111cb933), [`5644d94`](https://github.com/clerk/javascript/commit/5644d94f711a0733e4970c3f15c24d56cafc8743), [`a3232c7`](https://github.com/clerk/javascript/commit/a3232c7ee8c1173d2ce70f8252fc083c7bf19374), [`b578225`](https://github.com/clerk/javascript/commit/b5782258242474c9b0987a3f8349836cd763f24b), [`918e2e0`](https://github.com/clerk/javascript/commit/918e2e085bf88c3cfaa5fcb0f1ae8c31b3f7053e), [`795d09a`](https://github.com/clerk/javascript/commit/795d09a652f791e1e409406e335e0860aceda110), [`4f93634`](https://github.com/clerk/javascript/commit/4f93634ed6bcd45f21bddcb39a33434b1cb560fe), [`8838120`](https://github.com/clerk/javascript/commit/8838120596830b88fec1c6c853371dabfec74a0d)]: + - @clerk/backend@2.0.0 + - @clerk/types@4.60.0 + - @clerk/clerk-react@5.31.9 + - @clerk/shared@3.9.6 + ## 4.7.8 ### Patch Changes diff --git a/packages/remix/package.json b/packages/remix/package.json index e56c8c605b3..95ea63065be 100644 --- a/packages/remix/package.json +++ b/packages/remix/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/remix", - "version": "4.7.8", + "version": "4.8.0", "description": "Clerk SDK for Remix", "keywords": [ "clerk", diff --git a/packages/shared/CHANGELOG.md b/packages/shared/CHANGELOG.md index 9208b67b74b..4279d8f059c 100644 --- a/packages/shared/CHANGELOG.md +++ b/packages/shared/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 3.9.6 + +### Patch Changes + +- Updated dependencies [[`d8fa5d9`](https://github.com/clerk/javascript/commit/d8fa5d9d3d8dc575260d8d2b7c7eeeb0052d0b0d), [`be2e89c`](https://github.com/clerk/javascript/commit/be2e89ca11aa43d48f74c57a5a34e20d85b4003c), [`5644d94`](https://github.com/clerk/javascript/commit/5644d94f711a0733e4970c3f15c24d56cafc8743), [`b578225`](https://github.com/clerk/javascript/commit/b5782258242474c9b0987a3f8349836cd763f24b), [`8838120`](https://github.com/clerk/javascript/commit/8838120596830b88fec1c6c853371dabfec74a0d)]: + - @clerk/types@4.60.0 + ## 3.9.5 ### Patch Changes diff --git a/packages/shared/package.json b/packages/shared/package.json index c3a0ec091ff..8bcada7b085 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/shared", - "version": "3.9.5", + "version": "3.9.6", "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 023af64268c..d90fd6f689b 100644 --- a/packages/tanstack-react-start/CHANGELOG.md +++ b/packages/tanstack-react-start/CHANGELOG.md @@ -1,5 +1,47 @@ # @clerk/tanstack-react-start +## 0.16.0 + +### Minor Changes + +- Machine authentication is now supported for advanced use cases via the backend SDK. You can use `clerkClient.authenticateRequest` to validate machine tokens (such as API keys, OAuth tokens, and machine-to-machine tokens). No new helpers are included in these packages yet. ([#5689](https://github.com/clerk/javascript/pull/5689)) by [@wobsoriano](https://github.com/wobsoriano) + + Example (Astro): + + ```ts + import { clerkClient } from '@clerk/astro/server'; + + export const GET: APIRoute = ({ request }) => { + const requestState = await clerkClient.authenticateRequest(request, { + acceptsToken: 'api_key', + }); + + if (!requestState.isAuthenticated) { + return new Response(401, { message: 'Unauthorized' }); + } + + return new Response(JSON.stringify(requestState.toAuth())); + }; + ``` + +- The `svix` dependency is no longer needed when using the `verifyWebhook()` function. `verifyWebhook()` was refactored to not rely on `svix` anymore while keeping the same functionality and behavior. ([#6059](https://github.com/clerk/javascript/pull/6059)) by [@royanger](https://github.com/royanger) + + If you previously installed `svix` to use `verifyWebhook()` you can uninstall it now: + + ```shell + npm uninstall svix + ``` + +### Patch Changes + +- Apply Clerk response headers ([#6057](https://github.com/clerk/javascript/pull/6057)) by [@dios-david](https://github.com/dios-david) + +- Updated dependencies [[`ea622ba`](https://github.com/clerk/javascript/commit/ea622bae90e18ae2ea8dbc6c94cad857557539c9), [`d8fa5d9`](https://github.com/clerk/javascript/commit/d8fa5d9d3d8dc575260d8d2b7c7eeeb0052d0b0d), [`be2e89c`](https://github.com/clerk/javascript/commit/be2e89ca11aa43d48f74c57a5a34e20d85b4003c), [`c656270`](https://github.com/clerk/javascript/commit/c656270f9e05fd1f44fc4c81851be0b1111cb933), [`5644d94`](https://github.com/clerk/javascript/commit/5644d94f711a0733e4970c3f15c24d56cafc8743), [`a3232c7`](https://github.com/clerk/javascript/commit/a3232c7ee8c1173d2ce70f8252fc083c7bf19374), [`b578225`](https://github.com/clerk/javascript/commit/b5782258242474c9b0987a3f8349836cd763f24b), [`918e2e0`](https://github.com/clerk/javascript/commit/918e2e085bf88c3cfaa5fcb0f1ae8c31b3f7053e), [`795d09a`](https://github.com/clerk/javascript/commit/795d09a652f791e1e409406e335e0860aceda110), [`4f93634`](https://github.com/clerk/javascript/commit/4f93634ed6bcd45f21bddcb39a33434b1cb560fe), [`8838120`](https://github.com/clerk/javascript/commit/8838120596830b88fec1c6c853371dabfec74a0d)]: + - @clerk/backend@2.0.0 + - @clerk/types@4.60.0 + - @clerk/clerk-react@5.31.9 + - @clerk/shared@3.9.6 + ## 0.15.8 ### Patch Changes diff --git a/packages/tanstack-react-start/package.json b/packages/tanstack-react-start/package.json index 99ca0fc7df2..ddc0529518e 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.15.8", + "version": "0.16.0", "description": "Clerk SDK for TanStack React Start", "keywords": [ "clerk", diff --git a/packages/testing/CHANGELOG.md b/packages/testing/CHANGELOG.md index a2a3d55143d..12f50600e6f 100644 --- a/packages/testing/CHANGELOG.md +++ b/packages/testing/CHANGELOG.md @@ -1,5 +1,20 @@ # @clerk/testing +## 1.8.0 + +### Minor Changes + +- Add `waitToBeActive({ planSlug })` and `getPlanCardCTA({ planSlug })` to pricingTable object. ([#6051](https://github.com/clerk/javascript/pull/6051)) by [@panteliselef](https://github.com/panteliselef) + +### Patch Changes + +- Update checkoutObject with `waitForStipeElements` method and `root` property. ([#5980](https://github.com/clerk/javascript/pull/5980)) by [@panteliselef](https://github.com/panteliselef) + +- Updated dependencies [[`ea622ba`](https://github.com/clerk/javascript/commit/ea622bae90e18ae2ea8dbc6c94cad857557539c9), [`d8fa5d9`](https://github.com/clerk/javascript/commit/d8fa5d9d3d8dc575260d8d2b7c7eeeb0052d0b0d), [`be2e89c`](https://github.com/clerk/javascript/commit/be2e89ca11aa43d48f74c57a5a34e20d85b4003c), [`c656270`](https://github.com/clerk/javascript/commit/c656270f9e05fd1f44fc4c81851be0b1111cb933), [`5644d94`](https://github.com/clerk/javascript/commit/5644d94f711a0733e4970c3f15c24d56cafc8743), [`b578225`](https://github.com/clerk/javascript/commit/b5782258242474c9b0987a3f8349836cd763f24b), [`918e2e0`](https://github.com/clerk/javascript/commit/918e2e085bf88c3cfaa5fcb0f1ae8c31b3f7053e), [`795d09a`](https://github.com/clerk/javascript/commit/795d09a652f791e1e409406e335e0860aceda110), [`4f93634`](https://github.com/clerk/javascript/commit/4f93634ed6bcd45f21bddcb39a33434b1cb560fe), [`8838120`](https://github.com/clerk/javascript/commit/8838120596830b88fec1c6c853371dabfec74a0d)]: + - @clerk/backend@2.0.0 + - @clerk/types@4.60.0 + - @clerk/shared@3.9.6 + ## 1.7.5 ### Patch Changes diff --git a/packages/testing/package.json b/packages/testing/package.json index f7828547b3a..7a09f65fbba 100644 --- a/packages/testing/package.json +++ b/packages/testing/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/testing", - "version": "1.7.5", + "version": "1.8.0", "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 22ff9bd95c5..271b298c17c 100644 --- a/packages/themes/CHANGELOG.md +++ b/packages/themes/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 2.2.49 + +### Patch Changes + +- Updated dependencies [[`d8fa5d9`](https://github.com/clerk/javascript/commit/d8fa5d9d3d8dc575260d8d2b7c7eeeb0052d0b0d), [`be2e89c`](https://github.com/clerk/javascript/commit/be2e89ca11aa43d48f74c57a5a34e20d85b4003c), [`5644d94`](https://github.com/clerk/javascript/commit/5644d94f711a0733e4970c3f15c24d56cafc8743), [`b578225`](https://github.com/clerk/javascript/commit/b5782258242474c9b0987a3f8349836cd763f24b), [`8838120`](https://github.com/clerk/javascript/commit/8838120596830b88fec1c6c853371dabfec74a0d)]: + - @clerk/types@4.60.0 + ## 2.2.48 ### Patch Changes diff --git a/packages/themes/package.json b/packages/themes/package.json index 7e5dd739496..0451197a688 100644 --- a/packages/themes/package.json +++ b/packages/themes/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/themes", - "version": "2.2.48", + "version": "2.2.49", "description": "Themes for the Clerk auth components", "keywords": [ "react", diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md index 4d5919dbd44..b04cb5062c8 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/CHANGELOG.md @@ -1,5 +1,24 @@ # Change Log +## 4.60.0 + +### Minor Changes + +- Introduce `cssLayerName` option to allow users to opt Clerk styles into a native CSS layer. ([#5552](https://github.com/clerk/javascript/pull/5552)) by [@alexcarpenter](https://github.com/alexcarpenter) + +### Patch Changes + +- Get `payment_method_order` for Stripe payment elements from backend ([#6034](https://github.com/clerk/javascript/pull/6034)) by [@aeliox](https://github.com/aeliox) + +- Use the `is_removable` flag on a payment source to determine if it can be removed. ([#6033](https://github.com/clerk/javascript/pull/6033)) by [@aeliox](https://github.com/aeliox) + +- Introduce internal `` component to be used internally in the machine auth OAuth flow in account portal. ([#6021](https://github.com/clerk/javascript/pull/6021)) by [@alexcarpenter](https://github.com/alexcarpenter) + +- feat(types,clerk-js): Update types; RoleSelect allows fallbackLabel ([#6037](https://github.com/clerk/javascript/pull/6037)) by [@thiskevinwang](https://github.com/thiskevinwang) + + - this updates OrganizationInvitation and OrganizationMembership resource+types to include `roleName` which is already present on frontend-api responses, as `role_name`. + - this updates RoleSelect to allow rendering a `fallbackLabel` in the event that `value` does not map to any of the supplied roles + ## 4.59.3 ### Patch Changes diff --git a/packages/types/package.json b/packages/types/package.json index 1999451d7ee..b406f0eb27e 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/types", - "version": "4.59.3", + "version": "4.60.0", "description": "Typings for Clerk libraries.", "keywords": [ "clerk", diff --git a/packages/vue/CHANGELOG.md b/packages/vue/CHANGELOG.md index acba321b6d0..8626ab4bff6 100644 --- a/packages/vue/CHANGELOG.md +++ b/packages/vue/CHANGELOG.md @@ -1,5 +1,13 @@ # @clerk/vue +## 1.8.7 + +### Patch Changes + +- Updated dependencies [[`d8fa5d9`](https://github.com/clerk/javascript/commit/d8fa5d9d3d8dc575260d8d2b7c7eeeb0052d0b0d), [`be2e89c`](https://github.com/clerk/javascript/commit/be2e89ca11aa43d48f74c57a5a34e20d85b4003c), [`5644d94`](https://github.com/clerk/javascript/commit/5644d94f711a0733e4970c3f15c24d56cafc8743), [`b578225`](https://github.com/clerk/javascript/commit/b5782258242474c9b0987a3f8349836cd763f24b), [`8838120`](https://github.com/clerk/javascript/commit/8838120596830b88fec1c6c853371dabfec74a0d)]: + - @clerk/types@4.60.0 + - @clerk/shared@3.9.6 + ## 1.8.6 ### Patch Changes diff --git a/packages/vue/package.json b/packages/vue/package.json index 11279898d8f..d16dfc9ee21 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/vue", - "version": "1.8.6", + "version": "1.8.7", "description": "Clerk SDK for Vue", "keywords": [ "clerk",