diff --git a/.changeset/cold-dancers-watch.md b/.changeset/cold-dancers-watch.md deleted file mode 100644 index e81578ee6d4..00000000000 --- a/.changeset/cold-dancers-watch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/clerk-js': patch ---- - -Only render last used badge when there are multiple strategies enabled. diff --git a/.changeset/cuddly-cougars-buy.md b/.changeset/cuddly-cougars-buy.md deleted file mode 100644 index 0c3575cfecd..00000000000 --- a/.changeset/cuddly-cougars-buy.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/clerk-js': patch ---- - -Internal change, not user-facing: Replace `useOrganization` with `useOrganizationContext` in billing components diff --git a/.changeset/fix-network-error-cache-fallback.md b/.changeset/fix-network-error-cache-fallback.md deleted file mode 100644 index f11efdb2ad0..00000000000 --- a/.changeset/fix-network-error-cache-fallback.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/clerk-js': patch ---- - -Fix issue where network errors were being masked by fraud protection logic, preventing cache fallback from triggering properly. diff --git a/.changeset/flat-grapes-visit.md b/.changeset/flat-grapes-visit.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/flat-grapes-visit.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/fruity-clocks-send.md b/.changeset/fruity-clocks-send.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/fruity-clocks-send.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/green-roses-decide.md b/.changeset/green-roses-decide.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/green-roses-decide.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/orange-grapes-peel.md b/.changeset/orange-grapes-peel.md deleted file mode 100644 index da7bc87e1d6..00000000000 --- a/.changeset/orange-grapes-peel.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/shared': patch ---- - -[Experimental] Fix method return types for new custom flow APIs. diff --git a/.changeset/rare-birds-turn.md b/.changeset/rare-birds-turn.md deleted file mode 100644 index 853d812bb36..00000000000 --- a/.changeset/rare-birds-turn.md +++ /dev/null @@ -1,3 +0,0 @@ ---- - ---- diff --git a/.changeset/steady-tabs-log.md b/.changeset/steady-tabs-log.md deleted file mode 100644 index 3b9f778dd4f..00000000000 --- a/.changeset/steady-tabs-log.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@clerk/clerk-js': patch ---- - -Generate a stable tab identifier in `MemoryTokenCache` so multi-tab token broadcasts can be traced via consistent debug logs. - diff --git a/packages/agent-toolkit/CHANGELOG.md b/packages/agent-toolkit/CHANGELOG.md index 5f6f7947b4e..a83becc0369 100644 --- a/packages/agent-toolkit/CHANGELOG.md +++ b/packages/agent-toolkit/CHANGELOG.md @@ -1,5 +1,14 @@ # @clerk/agent-toolkit +## 0.2.3 + +### Patch Changes + +- Updated dependencies [[`a9c13ca`](https://github.com/clerk/javascript/commit/a9c13cae5a6f46ca753d530878f7e4492ca7938b)]: + - @clerk/shared@3.35.1 + - @clerk/backend@2.23.1 + - @clerk/types@4.101.1 + ## 0.2.2 ### Patch Changes diff --git a/packages/agent-toolkit/package.json b/packages/agent-toolkit/package.json index e20b6be0325..7da908ff7a7 100644 --- a/packages/agent-toolkit/package.json +++ b/packages/agent-toolkit/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/agent-toolkit", - "version": "0.2.2", + "version": "0.2.3", "description": "Clerk Toolkit for AI Agents", "homepage": "https://clerk.com/", "bugs": { diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 96272225197..33abd771cbf 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,14 @@ # @clerk/astro +## 2.16.1 + +### Patch Changes + +- Updated dependencies [[`a9c13ca`](https://github.com/clerk/javascript/commit/a9c13cae5a6f46ca753d530878f7e4492ca7938b)]: + - @clerk/shared@3.35.1 + - @clerk/backend@2.23.1 + - @clerk/types@4.101.1 + ## 2.16.0 ### Minor Changes @@ -91,7 +100,6 @@ **What Changed:** All type definitions including: - - Resource types (User, Organization, Session, etc.) - API response types - Configuration types @@ -1092,7 +1100,6 @@ - Introduce `protect-fallback` slot to avoid naming conflicts with Astro's server islands [`fallback` slot](https://docs.astro.build/en/guides/server-islands/#server-island-fallback-content). ([#5196](https://github.com/clerk/javascript/pull/5196)) by [@wobsoriano](https://github.com/wobsoriano) When using Clerk's `` component with `server:defer`, you can now use both slots: - - `fallback`: Default loading content - `protect-fallback`: Shows when a user doesn't have the `role` or `permission` to access the protected content @@ -2029,7 +2036,6 @@ - Simplify submodules and drop the `bundled` variant. by [@nikosdouvlis](https://github.com/nikosdouvlis) Moved - - `@clerk/astro/client/react` to `@clerk/astro/react` - `@clerk/astro/client/stores` to `@clerk/astro/client` Dropped @@ -2070,7 +2076,6 @@ - Drop convenience Astro wrappers for React components ([#3682](https://github.com/clerk/javascript/pull/3682)) by [@wobsoriano](https://github.com/wobsoriano) - Change prefix for public env variables to `PUBLIC_`. The previous prefix was `PUBLIC_ASTRO_APP_`. ([#3669](https://github.com/clerk/javascript/pull/3669)) by [@panteliselef](https://github.com/panteliselef) - - After this change the publishable key from should be set as `PUBLIC_CLERK_PUBLISHABLE_KEY=xxxxx` - Implement telemetry for nanostores and middleware usage; include SDK metadata. ([#3662](https://github.com/clerk/javascript/pull/3662)) by [@wobsoriano](https://github.com/wobsoriano) diff --git a/packages/astro/package.json b/packages/astro/package.json index ace4fd66c57..70d2b5e9ada 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/astro", - "version": "2.16.0", + "version": "2.16.1", "description": "Clerk SDK for Astro", "keywords": [ "auth", diff --git a/packages/backend/CHANGELOG.md b/packages/backend/CHANGELOG.md index 49df917dfef..b975cb678b7 100644 --- a/packages/backend/CHANGELOG.md +++ b/packages/backend/CHANGELOG.md @@ -1,11 +1,18 @@ # Change Log +## 2.23.1 + +### Patch Changes + +- Updated dependencies [[`a9c13ca`](https://github.com/clerk/javascript/commit/a9c13cae5a6f46ca753d530878f7e4492ca7938b)]: + - @clerk/shared@3.35.1 + - @clerk/types@4.101.1 + ## 2.23.0 ### Minor Changes - Add `external_id` field to `user.deleted` webhook events; Add `user` field to `SessionWebhookEventJSON` ([#7209](https://github.com/clerk/javascript/pull/7209)) by [@kduprey](https://github.com/kduprey) - - Adds `external_id` field to `user.deleted` webhook events by creating a new `UserDeletedJSON` interface that extends `DeletedObjectJSON` to include an optional `external_id` string. - Creates a new `SessionWebhookEventJSON` interface that extends `SessionJSON` to include a nullable `user` field as the `UserJSON` interface, and updates the webhook event types to use this new interface for `session.created`, `session.ended`, `session.removed`, and `session.revoked` events. @@ -101,7 +108,6 @@ **What Changed:** All type definitions including: - - Resource types (User, Organization, Session, etc.) - API response types - Configuration types @@ -337,7 +343,6 @@ ### Minor Changes - [Billing Beta] Use correct casing for past due events types. ([#6687](https://github.com/clerk/javascript/pull/6687)) by [@panteliselef](https://github.com/panteliselef) - - `'subscription.past_due'` -> `'subscription.pastDue'` - `'subscriptionItem.past_due'` -> `'subscriptionItem.pastDue'` @@ -763,18 +768,15 @@ ## Solution We now use a conditional approach based on payload size: - - **Small payloads (≤2KB)**: Continue using the direct approach for optimal performance - **Large payloads (>2KB)**: Use nonce-based fetching to avoid cookie size limits For large payloads, we: - 1. Generate a short nonce (ID) for each handshake instance 2. Send only the nonce in the `__clerk_handshake_nonce` cookie 3. Use the nonce to fetch the actual handshake payload via a dedicated BAPI endpoint ## New Handshake Flow (for payloads >2KB) - 1. User visits `example.com` 2. Client app middleware triggers handshake → `307 FAPI/v1/client/handshake` 3. FAPI handshake resolves → `307 example.com` with `__clerk_handshake_nonce` cookie containing the nonce @@ -787,7 +789,6 @@ No changes. Continues to work as before with direct payload delivery in cookies for optimal performance. ## Trade-offs - - **Added**: One additional BAPI call per handshake (only for payloads >2KB) - **Removed**: Cookie size restrictions that previously limited session token size @@ -1532,7 +1533,6 @@ ### Minor Changes - Add waitlist entry types ([#5148](https://github.com/clerk/javascript/pull/5148)) by [@mackenzienolan](https://github.com/mackenzienolan) - - `WaitlistEntryJSON` - `WaitlistEntryWebhookEvent` @@ -1703,7 +1703,6 @@ ### Minor Changes - Update Session resource with new properties to align with OpenAPI spec ([#4869](https://github.com/clerk/javascript/pull/4869)) by [@octoper](https://github.com/octoper) - - `lastActiveOrganizationId` - `latestActivity` - `actor` @@ -1870,7 +1869,6 @@ - Update AuthObject property from `__experimental_factorVerificationAge` to `factorVerificationAge`. ([#4536](https://github.com/clerk/javascript/pull/4536)) by [@panteliselef](https://github.com/panteliselef) Also replaces the following APIs: - - `__experimental_reverificationError` -> `__reverificationError` - `__experimental_reverificationErrorResponse` -> `reverificationErrorResponse` @@ -1944,7 +1942,6 @@ - Send API version through request headers. ([#4458](https://github.com/clerk/javascript/pull/4458)) by [@jacekradko](https://github.com/jacekradko) - Introduce experimental verification helpers exported from `@clerk/backend/internal` ([#4480](https://github.com/clerk/javascript/pull/4480)) by [@panteliselef](https://github.com/panteliselef) - - \_\_experimental_reverificationMismatch - \_\_experimental_reverificationMismatchResponse @@ -2419,7 +2416,6 @@ ### Minor Changes - Introduces dynamic keys from `clerkMiddleware`, allowing access by server-side helpers like `auth`. Keys such as `signUpUrl`, `signInUrl`, `publishableKey` and `secretKey` are securely encrypted using AES algorithm. ([#3525](https://github.com/clerk/javascript/pull/3525)) by [@LauraBeatris](https://github.com/LauraBeatris) - - When providing `secretKey`, `CLERK_ENCRYPTION_KEY` is required as the encryption key. If `secretKey` is not provided, `CLERK_SECRET_KEY` is used by default. - `clerkClient` from `@clerk/nextjs` should now be called as a function, and its singleton form is deprecated. This change allows the Clerk backend client to read keys from the current request, which is necessary to support dynamic keys. @@ -2527,7 +2523,6 @@ ### Patch Changes - Fix the following `@clerk/backend` methods to populate their paginated responses: ([#3276](https://github.com/clerk/javascript/pull/3276)) by [@dimkl](https://github.com/dimkl) - - `clerkClient.allowListIndentifiers.getAllowlistIdentifierList()` - `clerkClient.clients.getClientList()` - `clerkClient.invitations.getInvitationList` @@ -2543,7 +2538,6 @@ ### Minor Changes - Updated types for `orderBy` in OrganizationApi and UserApi ([#3266](https://github.com/clerk/javascript/pull/3266)) by [@panteliselef](https://github.com/panteliselef) - - `OrganizationAPI.getOrganizationMembershipList` now accepts `orderBy` - Acceptable values `phone_number`, `+phone_number`, `-phone_number`, `email_address`, `+email_address`, `-email_address`, `created_at`, `+created_at`, `-created_at`, `first_name`, `+first_name`, `-first_name` - `UserAPI.getUserList` expands the acceptable values of the `orderBy` to: @@ -2628,13 +2622,11 @@ - 244de5ea3: Make all listing API requests to return consistent `{ data: Resource[], totalCount: number }`. Support pagination request params `{ limit, offset }` to: - - `sessions.getSessionList({ limit, offset })` - `clients.getClientList({ limit, offset })` Since the `users.getUserList()` does not return the `total_count` as a temporary solution that method will perform 2 BAPI requests: - 1. retrieve the data 2. retrieve the total count (invokes `users.getCount()` internally) @@ -2705,13 +2697,11 @@ ``` - 8e5c881c4: The following paginated APIs now return `{ data, totalCount }` instead of simple arrays, in order to make building paginated UIs easier: - - `clerkClient.users.getOrganizationMembershipList(...)` - `clerkClient.organization.getOrganizationList(...)` - `clerkClient.organization.getOrganizationInvitationList(...)` Revert changing the `{ data, errors }` return value of the following helpers to throw the `errors` or return the `data` (keep v4 format): - - `import { verifyToken } from '@clerk/backend'` - `import { signJwt, hasValidSignature, decodeJwt, verifyJwt } from '@clerk/backend/jwt'` - BAPI `clerkClient` methods eg (`clerkClient.users.getUserList(...)`) @@ -2763,7 +2753,6 @@ determine the request state. Migration guide: - - use `request` param in `clerkClient.authenticateRequest()` instead of: - `origin` - `host` @@ -2841,7 +2830,6 @@ ``` Dropping those exports results in also dropping the exports from `gatsby-plugin-clerk`, `@clerk/clerk-sdk-node`, `@clerk/backend`, `@clerk/fastify`, `@clerk/nextjs`, `@clerk/remix` packages. - cace85374: Drop deprecated properties. Migration steps: - - use `createClerkClient` instead of `__unstable_options` - use `publishableKey` instead of `frontendApi` - use `clockSkewInMs` instead of `clockSkewInSeconds` @@ -2862,7 +2850,6 @@ - use `localInterstitial` instead of `remotePublicInterstitial` / `remotePublicInterstitialUrl` Internal changes: - - replaced error enum (and it's) `SetClerkSecretKeyOrAPIKey` with `SetClerkSecretKey` - 1ad910eb9: Changes in exports of `@clerk/backend`: @@ -3009,13 +2996,11 @@ - 12962bc58: Re-use common pagination types for consistency across types. Types introduced in `@clerk/types`: - - `ClerkPaginationRequest` : describes pagination related props in request payload - `ClerkPaginatedResponse` : describes pagination related props in response body - `ClerkPaginationParams` : describes pagination related props in api client method params - 4bb57057e: Breaking Changes: - - Drop `isLegacyFrontendApiKey` from `@clerk/shared` - Drop default exports from `@clerk/clerk-js` - on headless Clerk type @@ -3024,7 +3009,6 @@ - Use `isDevelopmentFromSecretKey` instead of `isDevelopmentFromApiKey` Changes: - - Rename `HeadlessBrowserClerkConstrutor` / `HeadlessBrowserClerkConstructor` (typo) - Use `isomorphicAtob` / `isomorhpicBtoa` to replace `base-64` in `@clerk/expo` - Refactor merging build-time and runtime props in `@clerk/backend` clerk client @@ -3140,7 +3124,6 @@ - f5d55bb1f: Add clerkTraceId to ClerkBackendApiResponse and ClerkAPIResponseError to allow for better tracing and debugging API error responses. Uses `clerk_trace_id` when available in a response and defaults to [`cf-ray` identifier](https://developers.cloudflare.com/fundamentals/reference/cloudflare-ray-id/) if missing. - a6308c67e: Add the following properties to `users.updateUser(userId, params)` params: - - `password_hasher` - `password_digest` - `publicMetadata` @@ -3366,13 +3349,11 @@ - Make all listing API requests to return consistent `{ data: Resource[], totalCount: number }`. ([#2714](https://github.com/clerk/javascript/pull/2714)) by [@dimkl](https://github.com/dimkl) Support pagination request params `{ limit, offset }` to: - - `sessions.getSessionList({ limit, offset })` - `clients.getClientList({ limit, offset })` Since the `users.getUserList()` does not return the `total_count` as a temporary solution that method will perform 2 BAPI requests: - 1. retrieve the data 2. retrieve the total count (invokes `users.getCount()` internally) @@ -3420,13 +3401,11 @@ ### Major Changes - The following paginated APIs now return `{ data, totalCount }` instead of simple arrays, in order to make building paginated UIs easier: ([#2633](https://github.com/clerk/javascript/pull/2633)) by [@dimkl](https://github.com/dimkl) - - `clerkClient.users.getOrganizationMembershipList(...)` - `clerkClient.organization.getOrganizationList(...)` - `clerkClient.organization.getOrganizationInvitationList(...)` Revert changing the `{ data, errors }` return value of the following helpers to throw the `errors` or return the `data` (keep v4 format): - - `import { verifyToken } from '@clerk/backend'` - `import { signJwt, hasValidSignature, decodeJwt, verifyJwt } from '@clerk/backend/jwt'` - BAPI `clerkClient` methods eg (`clerkClient.users.getUserList(...)`) @@ -3434,7 +3413,6 @@ ### Patch Changes - Add the following properties to `users.updateUser(userId, params)` params: ([#2619](https://github.com/clerk/javascript/pull/2619)) by [@SokratisVidros](https://github.com/SokratisVidros) - - `password_hasher` - `password_digest` - `publicMetadata` @@ -3687,7 +3665,6 @@ ``` - Changes in exports of `@clerk/backend`: ([#2363](https://github.com/clerk/javascript/pull/2363)) by [@dimkl](https://github.com/dimkl) - - Expose the following helpers and enums from `@clerk/backend/internal`: ```typescript import { @@ -3715,7 +3692,6 @@ Dropping those exports results in also dropping the exports from `gatsby-plugin-clerk`, `@clerk/clerk-sdk-node`, `@clerk/backend`, `@clerk/fastify`, `@clerk/nextjs`, `@clerk/remix` packages. - Changes in exports of `@clerk/backend`: ([#2365](https://github.com/clerk/javascript/pull/2365)) by [@dimkl](https://github.com/dimkl) - - Drop the following internal exports from the top-level api: ```typescript // Before @@ -3752,7 +3728,6 @@ ``` - Changes in exports of `@clerk/backend`: ([#2364](https://github.com/clerk/javascript/pull/2364)) by [@dimkl](https://github.com/dimkl) - - Expose the following helpers and enums from `@clerk/backend/jwt`: ```typescript import { decodeJwt, hasValidSignature, signJwt, verifyJwt } from '@clerk/backend/jwt'; @@ -3767,7 +3742,6 @@ Dropping those exports results in also dropping the exports from `gatsby-plugin-clerk`, `@clerk/clerk-sdk-node`, `@clerk/backend`, `@clerk/fastify`, `@clerk/nextjs`, `@clerk/remix` packages. - Changes in `@clerk/backend` exports: ([#2362](https://github.com/clerk/javascript/pull/2362)) by [@dimkl](https://github.com/dimkl) - - Drop Internal `deserialize` helper - Introduce `/errors` subpath export, eg: ```typescript @@ -3835,7 +3809,6 @@ - Introduce Protect for authorization. ([#2170](https://github.com/clerk/javascript/pull/2170)) by [@panteliselef](https://github.com/panteliselef) Changes in public APIs: - - Rename Gate to Protect - Support for permission checks. (Previously only roles could be used) - Remove the `experimental` tags and prefixes @@ -3919,7 +3892,6 @@ - Re-use common pagination types for consistency across types. ([#2210](https://github.com/clerk/javascript/pull/2210)) by [@dimkl](https://github.com/dimkl) Types introduced in `@clerk/types`: - - `ClerkPaginationRequest` : describes pagination related props in request payload - `ClerkPaginatedResponse` : describes pagination related props in response body - `ClerkPaginationParams` : describes pagination related props in api client method params @@ -3929,7 +3901,6 @@ ### Minor Changes - Breaking Changes: ([#2169](https://github.com/clerk/javascript/pull/2169)) by [@dimkl](https://github.com/dimkl) - - Drop `isLegacyFrontendApiKey` from `@clerk/shared` - Drop default exports from `@clerk/clerk-js` - on headless Clerk type @@ -3938,7 +3909,6 @@ - Use `isDevelopmentFromSecretKey` instead of `isDevelopmentFromApiKey` Changes: - - Rename `HeadlessBrowserClerkConstrutor` / `HeadlessBrowserClerkConstructor` (typo) - Use `isomorphicAtob` / `isomorhpicBtoa` to replace `base-64` in `@clerk/expo` - Refactor merging build-time and runtime props in `@clerk/backend` clerk client @@ -3990,7 +3960,6 @@ ### Major Changes - Drop default exports from all packages. Migration guide: ([#2150](https://github.com/clerk/javascript/pull/2150)) by [@dimkl](https://github.com/dimkl) - - use `import { Clerk } from '@clerk/backend';` - use `import { clerkInstance } from '@clerk/clerk-sdk-node';` - use `import { Clerk } from '@clerk/clerk-sdk-node';` @@ -4022,7 +3991,6 @@ determine the request state. Migration guide: - - use `request` param in `clerkClient.authenticateRequest()` instead of: - `origin` - `host` @@ -4074,7 +4042,6 @@ ``` - Drop deprecated properties. Migration steps: ([#1899](https://github.com/clerk/javascript/pull/1899)) by [@dimkl](https://github.com/dimkl) - - use `createClerkClient` instead of `__unstable_options` - use `publishableKey` instead of `frontendApi` - use `clockSkewInMs` instead of `clockSkewInSeconds` @@ -4095,7 +4062,6 @@ - use `localInterstitial` instead of `remotePublicInterstitial` / `remotePublicInterstitialUrl` Internal changes: - - replaced error enum (and it's) `SetClerkSecretKeyOrAPIKey` with `SetClerkSecretKey` ### Patch Changes @@ -4187,7 +4153,6 @@ ### Patch Changes - Apply deprecation warnings for @clerk/types: ([#1823](https://github.com/clerk/javascript/pull/1823)) by [@dimkl](https://github.com/dimkl) - - `orgs` jwt claims - `apiKey` - `frontendApi` @@ -4236,7 +4201,6 @@ ### Patch Changes - Apply deprecation warnings for `@clerk/backend`: ([#1777](https://github.com/clerk/javascript/pull/1777)) by [@dimkl](https://github.com/dimkl) - - backend api return format - `clockSkewInSeconds` - `pkgVersion` @@ -4402,7 +4366,6 @@ ### Patch Changes - Simplify the signature of the low-level `authenticateRequest` helper. ([#1329](https://github.com/clerk/javascript/pull/1329)) by [@anagstef](https://github.com/anagstef) - - One pair of legacy or new instance keys are required instead of all 4 of them in `authenticateRequest` - `@clerk/backend` now can handle the `"Bearer "` prefix in Authorization header for better DX - `host` parameter is now optional in `@clerk/backend` @@ -4429,7 +4392,6 @@ ### Patch Changes - Allow `clerkJSVersion` to be passed when loading interstitial. Support for ([#1354](https://github.com/clerk/javascript/pull/1354)) by [@panteliselef](https://github.com/panteliselef) - - Nextjs - Remix - Node @@ -4445,7 +4407,6 @@ (when the user provides a list). Resolves: - - [#978](https://github.com/clerk/javascript/pull/978) - [#1004](https://github.com/clerk/javascript/pull/1004) diff --git a/packages/backend/package.json b/packages/backend/package.json index 751c38c03fe..91de0888c1a 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/backend", - "version": "2.23.0", + "version": "2.23.1", "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 cd90db926f6..46566fd3781 100644 --- a/packages/chrome-extension/CHANGELOG.md +++ b/packages/chrome-extension/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 2.8.3 + +### Patch Changes + +- Updated dependencies [[`5966383`](https://github.com/clerk/javascript/commit/5966383a9034e1a06760296a0257bfe4bcedaf33), [`5e5e24a`](https://github.com/clerk/javascript/commit/5e5e24a3207583d78138a1845a1e214b7fff5221), [`3438d17`](https://github.com/clerk/javascript/commit/3438d1791f557a493b7579e87edcafe2314a5079), [`a9c13ca`](https://github.com/clerk/javascript/commit/a9c13cae5a6f46ca753d530878f7e4492ca7938b), [`77e022f`](https://github.com/clerk/javascript/commit/77e022f25d70380ff3aae39eba1722dbfaeb87e6)]: + - @clerk/clerk-js@5.109.1 + - @clerk/shared@3.35.1 + - @clerk/clerk-react@5.56.1 + ## 2.8.2 ### Patch Changes @@ -93,7 +102,6 @@ **What Changed:** All type definitions including: - - Resource types (User, Organization, Session, etc.) - API response types - Configuration types @@ -1320,7 +1328,6 @@ ### Patch Changes - Introduce the `useReverification()` hook that handles the session reverification flow: ([#4536](https://github.com/clerk/javascript/pull/4536)) by [@panteliselef](https://github.com/panteliselef) - - Replaces `__experimental_useReverification` with `useReverification` - Updated dependencies [[`4da28fa857d1e5538eb5bbe28ecc4bf9dba1ce7d`](https://github.com/clerk/javascript/commit/4da28fa857d1e5538eb5bbe28ecc4bf9dba1ce7d), [`fe9e147e366153d664af7fc325655ecb299a1f9d`](https://github.com/clerk/javascript/commit/fe9e147e366153d664af7fc325655ecb299a1f9d), [`fe9e147e366153d664af7fc325655ecb299a1f9d`](https://github.com/clerk/javascript/commit/fe9e147e366153d664af7fc325655ecb299a1f9d), [`fe9e147e366153d664af7fc325655ecb299a1f9d`](https://github.com/clerk/javascript/commit/fe9e147e366153d664af7fc325655ecb299a1f9d), [`d84d7e31235c5c7da3415981dc76db4473a71a39`](https://github.com/clerk/javascript/commit/d84d7e31235c5c7da3415981dc76db4473a71a39), [`dce4f7ffca7248c0500f0ec9a978672b1f2fad69`](https://github.com/clerk/javascript/commit/dce4f7ffca7248c0500f0ec9a978672b1f2fad69), [`7c27b0cfda6ace9693e9c184392481b00f24a64d`](https://github.com/clerk/javascript/commit/7c27b0cfda6ace9693e9c184392481b00f24a64d)]: @@ -2853,7 +2860,6 @@ - Introduce Protect for authorization. ([#2170](https://github.com/clerk/javascript/pull/2170)) by [@panteliselef](https://github.com/panteliselef) Changes in public APIs: - - Rename Gate to Protect - Support for permission checks. (Previously only roles could be used) - Remove the `experimental` tags and prefixes @@ -2952,7 +2958,6 @@ ### Major Changes - Drop default exports from all packages. Migration guide: ([#2150](https://github.com/clerk/javascript/pull/2150)) by [@dimkl](https://github.com/dimkl) - - use `import { Clerk } from '@clerk/backend';` - use `import { clerkInstance } from '@clerk/clerk-sdk-node';` - use `import { Clerk } from '@clerk/clerk-sdk-node';` @@ -2961,7 +2966,6 @@ - use `import { IsomorphicClerk } from '@clerk/clerk-react'` - Drop deprecations. Migration steps: ([#2082](https://github.com/clerk/javascript/pull/2082)) by [@dimkl](https://github.com/dimkl) - - use `publishableKey` instead of `frontendApi` - use `Clerk.handleEmailLinkVerification()` instead of `Clerk.handleMagicLinkVerification()` - use `isEmailLinkError` instead of `isMagicLinkError` @@ -2992,7 +2996,6 @@ - use `signature` instead of `generatedSignature` in `Signup.attemptWeb3WalletVerification()` - Drop deprecations. Migration steps: ([#1993](https://github.com/clerk/javascript/pull/1993)) by [@dimkl](https://github.com/dimkl) - - use `setActive` instead of `setSession` from `useSessionList | useSignUp | useSignIn` hooks - use `publishableKey` instead of `frontendApi` - use `handleEmailLinkVerification` instead of `handleMagicLinkVerification` from `IsomorphicClerk` @@ -3119,7 +3122,6 @@ ### Minor Changes - Introduce the new brand-new component OrganizationList ([#1692](https://github.com/clerk/javascript/pull/1692)) by [@panteliselef](https://github.com/panteliselef) - - Lists all the memberships, invitations or suggestions an active user may have - Powered by our `useOrganizationList` react hook diff --git a/packages/chrome-extension/package.json b/packages/chrome-extension/package.json index d30f7fad751..923673782ff 100644 --- a/packages/chrome-extension/package.json +++ b/packages/chrome-extension/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/chrome-extension", - "version": "2.8.2", + "version": "2.8.3", "description": "Clerk SDK for Chrome extensions", "keywords": [ "auth", diff --git a/packages/clerk-js/CHANGELOG.md b/packages/clerk-js/CHANGELOG.md index 8be341e2ad5..97de47aa330 100644 --- a/packages/clerk-js/CHANGELOG.md +++ b/packages/clerk-js/CHANGELOG.md @@ -1,5 +1,21 @@ # Change Log +## 5.109.1 + +### Patch Changes + +- Only render last used badge when there are multiple strategies enabled. ([#7224](https://github.com/clerk/javascript/pull/7224)) by [@alexcarpenter](https://github.com/alexcarpenter) + +- Internal change, not user-facing: Replace `useOrganization` with `useOrganizationContext` in billing components ([#7257](https://github.com/clerk/javascript/pull/7257)) by [@LauraBeatris](https://github.com/LauraBeatris) + +- Fix issue where network errors were being masked by fraud protection logic, preventing cache fallback from triggering properly. ([#7254](https://github.com/clerk/javascript/pull/7254)) by [@chriscanin](https://github.com/chriscanin) + +- Generate a stable tab identifier in `MemoryTokenCache` so multi-tab token broadcasts can be traced via consistent debug logs. ([#7150](https://github.com/clerk/javascript/pull/7150)) by [@jacekradko](https://github.com/jacekradko) + +- Updated dependencies [[`a9c13ca`](https://github.com/clerk/javascript/commit/a9c13cae5a6f46ca753d530878f7e4492ca7938b)]: + - @clerk/shared@3.35.1 + - @clerk/localizations@3.28.2 + ## 5.109.0 ### Minor Changes @@ -137,7 +153,6 @@ **What Changed:** All type definitions including: - - Resource types (User, Organization, Session, etc.) - API response types - Configuration types @@ -705,7 +720,6 @@ - [Billing Beta] Replace usage of top level amounts in plan with fees for displaying prices. ([#6490](https://github.com/clerk/javascript/pull/6490)) by [@panteliselef](https://github.com/panteliselef) - Add support for trials in `` ([#6494](https://github.com/clerk/javascript/pull/6494)) by [@panteliselef](https://github.com/panteliselef) - - Added `freeTrialEndsAt` property to `CommerceCheckoutResource` interface. - Update billing resources with trial properties. ([#6492](https://github.com/clerk/javascript/pull/6492)) by [@panteliselef](https://github.com/panteliselef) @@ -734,7 +748,6 @@ - [Billing Beta] Cleanup naming inconsistencies in billing dates. ([#6513](https://github.com/clerk/javascript/pull/6513)) by [@panteliselef](https://github.com/panteliselef) ## Migration - - subscriptionItem.periodStartDate → subscriptionItem.periodStart - subscriptionItem.periodEndDate → subscriptionItem.periodEnd - subscriptionItem.canceledAtDate → subscriptionItem.canceledAt @@ -1036,7 +1049,6 @@ Deprecated variables will continue to work but will be removed in the next major version. ## New variables - - `colorRing` - The color of the ring when an interactive element is focused. - `colorMuted` - The background color for elements of lower importance, eg: a muted background. - `colorShadow` - The base shadow color used in the components. @@ -1111,7 +1123,6 @@ - Convert date properties from number to Date in CommerceSubscriptionResource ([#6233](https://github.com/clerk/javascript/pull/6233)) by [@panteliselef](https://github.com/panteliselef) Deprecates fields of type `number` - - subscription.periodStart - subscription.periodEnd - subscription.canceledAt @@ -1235,7 +1246,6 @@ - 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 @@ -1488,18 +1498,15 @@ - Expose Clerk Billing APIs. ([#5833](https://github.com/clerk/javascript/pull/5833)) by [@nikosdouvlis](https://github.com/nikosdouvlis) ## Render the pricing table component - - `Clerk.mountPricingTable` - `Clerk.unmountPricingTable` ## Manage payment methods - - `Clerk.[user|organization].initializePaymentSource()` - `Clerk.[user|organization].addPaymentSource()` - `Clerk.[user|organization].getPaymentSources()` ## Billing namespace - - `Clerk.billing` - `Clerk.billing.getPlans()` - `Clerk.billing.getSubscriptions()` @@ -1673,7 +1680,6 @@ - Remove stale properties from `__experimental_CommerceInvoiceResource` ([#5738](https://github.com/clerk/javascript/pull/5738)) by [@panteliselef](https://github.com/panteliselef) - Switch to "Payment method" terminology instead of "Payment source". ([#5721](https://github.com/clerk/javascript/pull/5721)) by [@panteliselef](https://github.com/panteliselef) - - Removes `userProfile.__experimental_billingPage.start.headerTitle__paymentSources` - Adds `userProfile.__experimental_billingPage.start.headerTitle__paymentMethods` @@ -1703,7 +1709,6 @@ - Invalidate invoices after successful checkout. ([#5717](https://github.com/clerk/javascript/pull/5717)) by [@panteliselef](https://github.com/panteliselef) - Incremental improvements for account funds in checkout. ([#5705](https://github.com/clerk/javascript/pull/5705)) by [@panteliselef](https://github.com/panteliselef) - - Fixes CLS issues when rendering account funds - Renames "accounts funds" to "payment sources" for consistency - Auto opes the "Add a new payment source" drawer only if no payments sources exist @@ -1733,14 +1738,12 @@ - Introduce `Clerk.status` for tracking the state of the clerk singleton. ([#5476](https://github.com/clerk/javascript/pull/5476)) by [@panteliselef](https://github.com/panteliselef) Possible values for `Clerk.status` are: - - `"loading"`: Set during initialization - `"error"`: Set when hotloading clerk-js failed or `Clerk.load()` failed - `"ready"`: Set when Clerk is fully operational - `"degraded"`: Set when Clerk is partially operational The computed value of `Clerk.loaded` is: - - `true` when `Clerk.status` is either `"ready"` or `"degraded"`. - `false` when `Clerk.status` is `"loading"` or `"error"`. @@ -1823,15 +1826,12 @@ - Add support for feature or plan based authorization ([#5582](https://github.com/clerk/javascript/pull/5582)) by [@panteliselef](https://github.com/panteliselef) ### Plan - - `Clerk.session.checkAuthorization({ plan: "my-plan" })` ### Feature - - `Clerk.session.checkAuthorization({ feature: "my-feature" })` ### Scoped per user or per org - - `Clerk.session.checkAuthorization({ feature: "org:my-feature" })` - `Clerk.session.checkAuthorization({ feature: "user:my-feature" })` - `Clerk.session.checkAuthorization({ plan: "user:my-plan" })` @@ -1865,7 +1865,6 @@ ### Minor Changes - Introduce `sessionClaims` to useAuth(). ([#5565](https://github.com/clerk/javascript/pull/5565)) by [@panteliselef](https://github.com/panteliselef) - - thanks to [@ijxy](https://github.com/ijxy) for the [contribution](https://github.com/clerk/javascript/pull/4823) ### Patch Changes @@ -1945,7 +1944,6 @@ ### 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. @@ -2741,7 +2739,6 @@ - Introduce a `toJSON()` function on resources. ([#4604](https://github.com/clerk/javascript/pull/4604)) by [@anagstef](https://github.com/anagstef) This change also introduces two new internal methods on the Clerk resource, to be used by the expo package. - - `__internal_getCachedResources()`: (Optional) This function is used to load cached Client and Environment resources if Clerk fails to load them from the Frontend API. - `__internal_reloadInitialResources()`: This function is used to reload the initial resources (Environment/Client) from the Frontend API. @@ -2860,7 +2857,6 @@ ### Minor Changes - - Update the supported API version to `2024-10-01` that includes the following changes ([#4596](https://github.com/clerk/javascript/pull/4596)) by [@Nikpolik](https://github.com/Nikpolik) - - Notification for new sign ins to users' accounts feature becomes available. - The response for Sign Ins with an email address that matches a **SAML connection** is updated. Instead of responding with a status of `needs_identifier` the API will now return a status of `needs_first_factor` and the email address that matched will be returned in the identifier field. the only strategy that will be included in supported first factors is `enterprise_sso` @@ -2896,14 +2892,12 @@ - Drop experimental tag related to reverification. ([#4536](https://github.com/clerk/javascript/pull/4536)) by [@panteliselef](https://github.com/panteliselef) Properties of Clerk class: - - `__experimental_openUserVerification` -> `__internal_openReverification` - `__experimental_closeUserVerification` -> `__internal_closeReverification` - `__experimental_UserVerificationProps` -> `__internal_ReverificationProps` - `__experimental_UserVerificationModalProps` -> `__internal_ReverificationModalProps` Properties of `Session`: - - `__experimental_factorVerificationAge` -> `factorVerificationAge` - `__experimental_startVerification` -> `startVerification` - `__experimental_prepareFirstFactorVerification` -> `prepareFirstFactorVerification` @@ -3121,7 +3115,6 @@ ### Minor Changes - New Feature: Introduce the `` component and the `waitlist` sign up mode. ([#4376](https://github.com/clerk/javascript/pull/4376)) by [@nikospapcom](https://github.com/nikospapcom) - - Allow users to request access with an email address via the new `` component. - Show `Join waitlist` prompt from `` component when mode is `waitlist`. - Appropriate the text in the Sign Up component when mode is `waitlist`. @@ -3231,7 +3224,6 @@ When `__experimental_asStandalone: true` the component will not render its trigger, and instead it will render only the contents of the popover in place. APIs that changed: - - (For internal usage) Added `__experimental_prefetchOrganizationSwitcher` as a way to mount an internal component that will render the `useOrganizationList()` hook and prefetch the necessary data for the popover of ``. This enhances the UX since no loading state will be visible and keeps CLS to the minimum. - New property for `mountOrganizationSwitcher(node, { __experimental_asStandalone: true })` - New property for `mountUserButton(node, { __experimental_asStandalone: true })` @@ -3300,7 +3292,6 @@ ### Minor Changes - Rename `__experimental_assurance` to `__experimental_reverification`. ([#4268](https://github.com/clerk/javascript/pull/4268)) by [@panteliselef](https://github.com/panteliselef) - - Supported levels are now are `firstFactor`, `secondFactor`, `multiFactor`. - Support maxAge is now replaced by maxAgeMinutes and afterMinutes depending on usage. - Introduced `____experimental_SessionVerificationTypes` that abstracts away the level and maxAge @@ -3320,7 +3311,6 @@ - Drop the experimental mounted variant of `UserVerification`. ([#4266](https://github.com/clerk/javascript/pull/4266)) by [@panteliselef](https://github.com/panteliselef) Removes: - - `<__experimental_UserVerification/>` - `__experimental_mountUserVerification()` - `__experimental_unmountUserVerification()` @@ -3581,14 +3571,12 @@ - Add new `UserVerification` component (experimental feature). This UI component allows for a user to "re-enter" their credentials (first factor and/or second factor) which results in them being re-verified. ([#4016](https://github.com/clerk/javascript/pull/4016)) by [@panteliselef](https://github.com/panteliselef) New methods have been added: - - `__experimental_openUserVerification()` - `__experimental_closeUserVerification()` - `__experimental_mountUserVerification(targetNode: HTMLDivElement)` - `__experimental_unmountUserVerification(targetNode: HTMLDivElement)` - Move SessionVerification methods from UserResource to SessionResource: ([#4073](https://github.com/clerk/javascript/pull/4073)) by [@panteliselef](https://github.com/panteliselef) - - `user.__experimental_verifySession` -> `session.__experimental_startVerification` - `user.__experimental_verifySessionPrepareFirstFactor` -> `session.__experimental_prepareFirstFactorVerification` - `user.__experimental_verifySessionAttemptFirstFactor` -> `session.__experimental_attemptFirstFactorVerification` @@ -3664,7 +3652,6 @@ - Expose `SessionVerification` as an experimental resource. ([#4011](https://github.com/clerk/javascript/pull/4011)) by [@panteliselef](https://github.com/panteliselef) Update `UserResource` with 5 new experimental methods: - - `experimental_verifySession` for creating a new SessionVerification record and initiating a new flow. - `experimental_verifySessionPrepareFirstFactor` for preparing a supported first factor like `phone_code` - `experimental_verifySessionAttemptFirstFactor` for attempting a supported first factor like `password` @@ -3819,7 +3806,6 @@ ### Minor Changes - Introduce support for custom menu items in ``. ([#3784](https://github.com/clerk/javascript/pull/3784)) by [@nikospapcom](https://github.com/nikospapcom) - - Use `` as a child component to wrap custom menu items. - Use `` for creating external or internal links. - Use `` for opening a specific custom page of "UserProfile" or to trigger your own custom logic via `onClick`. @@ -3914,7 +3900,6 @@ ### Minor Changes - Added support for Custom OAuth providers by [@nikosdouvlis](https://github.com/nikosdouvlis) - - Updated strategy types to include `CustomOAuthStrategy`: - Added the `CustomOAuthStrategy` type with the value `oauth_custom_${string}` - Modified `OAuthStrategy` to include `CustomOAuthStrategy`: @@ -4065,7 +4050,6 @@ - Add support for GoogleOneTap. New APIs listed: ([#3392](https://github.com/clerk/javascript/pull/3392)) by [@panteliselef](https://github.com/panteliselef) ### React component - - `` Customize the UX of the prompt @@ -4079,12 +4063,10 @@ ``` ### Use the component from with Vanilla JS - - `Clerk.openGoogleOneTap(props: GoogleOneTapProps)` - `Clerk.closeGoogleOneTap()` ### Low level APIs for custom flows - - `await Clerk.authenticateWithGoogleOneTap({ token: 'xxxx'})` - `await Clerk.handleGoogleOneTapCallback()` @@ -4170,7 +4152,6 @@ ### Minor Changes - Updates related to experimental Google One Tap support ([#3250](https://github.com/clerk/javascript/pull/3250)) by [@panteliselef](https://github.com/panteliselef) - - By default we are returning back to the location where the flow started. To accomplish that internally we will use the redirect_url query parameter to build the url. @@ -4404,7 +4385,6 @@ - 97407d8aa: Dropping support for Node 14 and 16 as they both reached EOL status. The minimal Node.js version required by Clerk is `18.18.0` now. - 4bb57057e: Breaking Changes: - - Drop `isLegacyFrontendApiKey` from `@clerk/shared` - Drop default exports from `@clerk/clerk-js` - on headless Clerk type @@ -4413,7 +4393,6 @@ - Use `isDevelopmentFromSecretKey` instead of `isDevelopmentFromApiKey` Changes: - - Rename `HeadlessBrowserClerkConstrutor` / `HeadlessBrowserClerkConstructor` (typo) - Use `isomorphicAtob` / `isomorhpicBtoa` to replace `base-64` in `@clerk/expo` - Refactor merging build-time and runtime props in `@clerk/backend` clerk client @@ -4442,7 +4421,6 @@ - 08dd88c4a: Introducing sign out from all open tabs at once. - afec17953: Improved error handling for registration and retrieval of passkeys. ClerkRuntimeError codes introduced: - - `passkey_not_supported` - `passkeys_pa_not_supported` - `passkey_invalid_rpID_or_domain` @@ -4478,7 +4456,6 @@ - e400fa9e3: Introducing default values for `allowedRedirectOrigins`. If no value is provided, default values similar to the example below will apply. Let's assume the host of the application is `test.host`, the origins will be - - `https://test.host/` - `https://yourawesomeapp.clerk.accounts.dev/` - `https://*.yourawesomeapp.clerk.accounts.dev/` @@ -4490,7 +4467,6 @@ - 492b8a7b1: Increase the duration until data become stale for organization hooks. - 2352149f6: Move passkey related apis to stable: - - Register passkey for a user Usage: `await clerk.user.createPasskey()` - Authenticate with passkey @@ -4507,7 +4483,6 @@ } ``` - ClerkRuntimeError codes introduced: - - `passkey_not_supported` - `passkeys_pa_not_supported` - `passkey_invalid_rpID_or_domain` @@ -4571,7 +4546,6 @@ - 12962bc58: Re-use common pagination types for consistency across types. Types introduced in `@clerk/types`: - - `ClerkPaginationRequest` : describes pagination related props in request payload - `ClerkPaginatedResponse` : describes pagination related props in response body - `ClerkPaginationParams` : describes pagination related props in api client method params @@ -4674,7 +4648,6 @@ - 63373bf21: Correct the HTML structure of the UI components to ensure validity - 0ee1777e0: Allow retries for all 300xxx error codes for CF Turnstile. - 78fc5eec0: Introduces new element appearance descriptors: - - `activeDeviceListItem` allows you to customize the appearance of the active device list (accordion) item - `activeDeviceListItem__current` allows you to customize the appearance of the _current_ active device list (accordion) item - `activeDevice` allows you to customize the appearance of the active device item @@ -4916,7 +4889,6 @@ ### Minor Changes - Introduce experimental support for Google One Tap ([#3176](https://github.com/clerk/javascript/pull/3176)) by [@panteliselef](https://github.com/panteliselef) - - React Component `<__experimental_GoogleOneTap/>` - JS `clerk.__experimental_mountGoogleOneTap(node,props)` @@ -4973,7 +4945,6 @@ ### Minor Changes - Move passkey related apis to stable: ([#3134](https://github.com/clerk/javascript/pull/3134)) by [@panteliselef](https://github.com/panteliselef) - - Register passkey for a user Usage: `await clerk.user.createPasskey()` - Authenticate with passkey @@ -4990,7 +4961,6 @@ } ``` - ClerkRuntimeError codes introduced: - - `passkey_not_supported` - `passkeys_pa_not_supported` - `passkey_invalid_rpID_or_domain` @@ -5087,7 +5057,6 @@ - Improved error handling for registration and retrieval of passkeys. ([#3025](https://github.com/clerk/javascript/pull/3025)) by [@panteliselef](https://github.com/panteliselef) ClerkRuntimeError codes introduced: - - `passkey_not_supported` - `passkeys_pa_not_supported` - `passkey_invalid_rpID_or_domain` @@ -5125,7 +5094,6 @@ ### Minor Changes - List passkeys under security in UserProfile. ([#2958](https://github.com/clerk/javascript/pull/2958)) by [@panteliselef](https://github.com/panteliselef) - - Supports renaming a passkey. - Supports deleting a passkey. @@ -5140,7 +5108,6 @@ Example usage: `await signIn.authenticateWithPasskey()`. - Remove unused error helpers. ([#2978](https://github.com/clerk/javascript/pull/2978)) by [@panteliselef](https://github.com/panteliselef) - - clerkErrorInvalidColor() - clerkCoreErrorUserIsNotDefined() - clerkCoreErrorSessionIsNotDefined() @@ -5183,7 +5150,6 @@ ### Minor Changes - Experimental support for reading, updating, and deleting a user's registered passkeys. ([#2926](https://github.com/clerk/javascript/pull/2926)) by [@panteliselef](https://github.com/panteliselef) - - Get the user's passkeys `clerk.user.__experimental__passkeys` - Update the name of a passkey @@ -5426,7 +5392,6 @@ - Remove fallback data and allow promise to throw for paginated endpoint methods. ([#2491](https://github.com/clerk/javascript/pull/2491)) by [@panteliselef](https://github.com/panteliselef) Affected methods: - - Organization.getDomains - Organization.getInvitations - Organization.getMembershipRequests @@ -5567,7 +5532,6 @@ - Introduce Protect for authorization. ([#2170](https://github.com/clerk/javascript/pull/2170)) by [@panteliselef](https://github.com/panteliselef) Changes in public APIs: - - Rename Gate to Protect - Support for permission checks. (Previously only roles could be used) - Remove the `experimental` tags and prefixes @@ -5678,7 +5642,6 @@ - Re-use common pagination types for consistency across types. ([#2210](https://github.com/clerk/javascript/pull/2210)) by [@dimkl](https://github.com/dimkl) Types introduced in `@clerk/types`: - - `ClerkPaginationRequest` : describes pagination related props in request payload - `ClerkPaginatedResponse` : describes pagination related props in response body - `ClerkPaginationParams` : describes pagination related props in api client method params @@ -5723,7 +5686,6 @@ to fix issues with vite & rollup building. - Breaking Changes: ([#2169](https://github.com/clerk/javascript/pull/2169)) by [@dimkl](https://github.com/dimkl) - - Drop `isLegacyFrontendApiKey` from `@clerk/shared` - Drop default exports from `@clerk/clerk-js` - on headless Clerk type @@ -5732,7 +5694,6 @@ - Use `isDevelopmentFromSecretKey` instead of `isDevelopmentFromApiKey` Changes: - - Rename `HeadlessBrowserClerkConstrutor` / `HeadlessBrowserClerkConstructor` (typo) - Use `isomorphicAtob` / `isomorhpicBtoa` to replace `base-64` in `@clerk/expo` - Refactor merging build-time and runtime props in `@clerk/backend` clerk client @@ -5740,7 +5701,6 @@ - Drop duplicate test in `@clerk/backend` - Introducing some changes and some addition for the appearence descriptors for the organization preview in ``: ([#2158](https://github.com/clerk/javascript/pull/2158)) by [@octoper](https://github.com/octoper) - - `.cl-organizationPreview__organizationSwitcher` has been renamed to `.cl-organizationPreview__organizationSwitcherTrigger`. - `.cl-organizationPreview__organizationSwitcherListedOrganization` was added to allow you to customize the appearance of all the listed organization previews. - `.cl-organizationPreview__organizationSwitcherActiveOrganizationn` was added to allow you to customize the appearance of the active organization. @@ -5774,7 +5734,6 @@ ### Major Changes - Drop default exports from all packages. Migration guide: ([#2150](https://github.com/clerk/javascript/pull/2150)) by [@dimkl](https://github.com/dimkl) - - use `import { Clerk } from '@clerk/backend';` - use `import { clerkInstance } from '@clerk/clerk-sdk-node';` - use `import { Clerk } from '@clerk/clerk-sdk-node';` @@ -5783,7 +5742,6 @@ - use `import { IsomorphicClerk } from '@clerk/clerk-react'` - Drop deprecations. Migration steps: ([#2082](https://github.com/clerk/javascript/pull/2082)) by [@dimkl](https://github.com/dimkl) - - use `publishableKey` instead of `frontendApi` - use `Clerk.handleEmailLinkVerification()` instead of `Clerk.handleMagicLinkVerification()` - use `isEmailLinkError` instead of `isMagicLinkError` @@ -5820,7 +5778,6 @@ - Introducing default values for `allowedRedirectOrigins`. If no value is provided, default values similar to the example below will apply. ([#2128](https://github.com/clerk/javascript/pull/2128)) by [@octoper](https://github.com/octoper) Let's assume the host of the application is `test.host`, the origins will be - - `https://test.host/` - `https://yourawesomeapp.clerk.accounts.dev/` - `https://*.yourawesomeapp.clerk.accounts.dev/` @@ -5902,7 +5859,6 @@ - Tests for internal PlainInput component. ([#2029](https://github.com/clerk/javascript/pull/2029)) by [@panteliselef](https://github.com/panteliselef) - Introduces new element appearance descriptors: ([#1994](https://github.com/clerk/javascript/pull/1994)) by [@tmilewski](https://github.com/tmilewski) - - `activeDeviceListItem` allows you to customize the appearance of the active device list (accordion) item - `activeDeviceListItem__current` allows you to customize the appearance of the _current_ active device list (accordion) item - `activeDevice` allows you to customize the appearance of the active device item @@ -6015,7 +5971,6 @@ ### Minor Changes - Introduces three new element appearance descriptors: ([#1803](https://github.com/clerk/javascript/pull/1803)) by [@octoper](https://github.com/octoper) - - `tableHead` let's you customize the tables head styles. - `paginationButton` let's you customize the pagination buttons. - `paginationRowText` let's you customize the pagination text. @@ -6029,7 +5984,6 @@ - Update default organization permissions with a `sys_` prefix as part of the entitlement. This changes makes it easy to distinguish between clerk reserved permissions and custom permissions created by developers. ([#1865](https://github.com/clerk/javascript/pull/1865)) by [@mzhong9723](https://github.com/mzhong9723) - Mark the following SAML related types as stable: ([#1876](https://github.com/clerk/javascript/pull/1876)) by [@dimkl](https://github.com/dimkl) - - `User.samlAccounts` - `SamlAccount` - `UserSettingsResource.saml` @@ -6078,7 +6032,6 @@ ### Patch Changes - Warn about _MagicLink_ deprecations: ([#1836](https://github.com/clerk/javascript/pull/1836)) by [@dimkl](https://github.com/dimkl) - - `MagicLinkError` - `isMagicLinkError` - `MagicLinkErrorCode` @@ -6116,7 +6069,6 @@ ### Patch Changes - Apply deprecation warnings for @clerk/types: ([#1823](https://github.com/clerk/javascript/pull/1823)) by [@dimkl](https://github.com/dimkl) - - `orgs` jwt claims - `apiKey` - `frontendApi` @@ -6168,7 +6120,6 @@ ### Patch Changes - Apply deprecation warnings for `@clerk/clerk-js`: ([#1800](https://github.com/clerk/javascript/pull/1800)) by [@dimkl](https://github.com/dimkl) - - `Clerk.setSession` - Updated dependencies [[`cecf74d79`](https://github.com/clerk/javascript/commit/cecf74d79069662d25f73e4745aa01348d398afb)]: @@ -6187,7 +6138,6 @@ - Fix: localized key for invalid email addresses in InviteMembers form. ([#1781](https://github.com/clerk/javascript/pull/1781)) by [@panteliselef](https://github.com/panteliselef) - Apply deprecation warnings clerk-js package for: ([#1779](https://github.com/clerk/javascript/pull/1779)) by [@dimkl](https://github.com/dimkl) - - Organization.create() using string parameter - Organization.retrieve() `limit` & `offset` - Clerk.getOrganizationMemberships() @@ -6236,7 +6186,6 @@ ### Minor Changes - Introduce the new brand-new component OrganizationList ([#1692](https://github.com/clerk/javascript/pull/1692)) by [@panteliselef](https://github.com/panteliselef) - - Lists all the memberships, invitations or suggestions an active user may have - Powered by our `useOrganizationList` react hook @@ -6315,7 +6264,6 @@ ### Minor Changes - Introducing validatePassword for SignIn and SignUp resources ([#1445](https://github.com/clerk/javascript/pull/1445)) by [@panteliselef](https://github.com/panteliselef) - - Validate a password based on the instance's configuration set in Password Policies in Dashboard - Introduce a new resource called OrganizationSuggestion along with retrieve() & accept() methods ([#1574](https://github.com/clerk/javascript/pull/1574)) by [@chanioxaris](https://github.com/chanioxaris) @@ -6344,15 +6292,12 @@ - Pass dev_browser to AP via query param, fix AP origin detection util ([#1567](https://github.com/clerk/javascript/pull/1567)) by [@yourtallness](https://github.com/yourtallness) - Introduces a new resource called OrganizationMembership ([#1572](https://github.com/clerk/javascript/pull/1572)) by [@panteliselef](https://github.com/panteliselef) - - useOrganization has been updated in order to return a list of domain with the above type - Introduces Membership Requests in ([#1576](https://github.com/clerk/javascript/pull/1576)) by [@panteliselef](https://github.com/panteliselef) - - This is a list of users that have requested to join the active organization - Updates signature of OrganizationMembership.retrieve to support backwards compatibility while allowing using the new paginated responses. ([#1606](https://github.com/clerk/javascript/pull/1606)) by [@panteliselef](https://github.com/panteliselef) - - userMemberships is now also part of the returned values of useOrganizationList - Introduces the accept method in UserOrganizationInvitation class ([#1550](https://github.com/clerk/javascript/pull/1550)) by [@panteliselef](https://github.com/panteliselef) @@ -6360,36 +6305,30 @@ - Display a notification counter for organization invitations in OrganizationSwitcher ([#1627](https://github.com/clerk/javascript/pull/1627)) by [@panteliselef](https://github.com/panteliselef) - Introduces a new resource called OrganizationDomain ([#1569](https://github.com/clerk/javascript/pull/1569)) by [@panteliselef](https://github.com/panteliselef) - - useOrganization has been updated in order to return a list of domain with the above type - Introduces domains and invitations in ([#1560](https://github.com/clerk/javascript/pull/1560)) by [@panteliselef](https://github.com/panteliselef) - - The "Members" page now accommodates Domain and Individual invitations - The "Settings" page allows for the addition, edit and removal of a domain - Fix a bug where it was not possible to delete the username if it was optional. ([#1580](https://github.com/clerk/javascript/pull/1580)) by [@raptisj](https://github.com/raptisj) - A OrganizationMembershipRequest can now be rejected ([#1612](https://github.com/clerk/javascript/pull/1612)) by [@panteliselef](https://github.com/panteliselef) - - New `OrganizationMembershipRequest.reject` method alongside `accept` - As an organization admin, navigate to `Organization Profile` > `Members` > `Requests`. You can now reject a request from the table. - Ensure the session token is updated when calling `setActive()` in a non-browser environment. ([#1623](https://github.com/clerk/javascript/pull/1623)) by [@BRKalow](https://github.com/BRKalow) - Introduces an invitation list within ([#1554](https://github.com/clerk/javascript/pull/1554)) by [@panteliselef](https://github.com/panteliselef) - - Users can accept the invitation that is sent to them - When updating enrollment mode of a domain uses can now delete any pending invitations or suggestions. ([#1632](https://github.com/clerk/javascript/pull/1632)) by [@panteliselef](https://github.com/panteliselef) - Construct urls based on context in ([#1503](https://github.com/clerk/javascript/pull/1503)) by [@panteliselef](https://github.com/panteliselef) - - Deprecate `afterSwitchOrganizationUrl` - Introduce `afterSelectOrganizationUrl` & `afterSelectPersonalUrl` `afterSelectOrganizationUrl` accepts - - Full URL -> 'https://clerk.com/' - relative path -> '/organizations' - relative path -> with param '/organizations/:id' @@ -6401,7 +6340,6 @@ - function that returns a string -> (user) => `/users/${user.id}` - Introduces list of suggestions within ([#1577](https://github.com/clerk/javascript/pull/1577)) by [@panteliselef](https://github.com/panteliselef) - - Users can request to join a suggested organization - Updated dependencies [[`96cc1921c`](https://github.com/clerk/javascript/commit/96cc1921cac20442f19510137ee0100df5f8a0f4), [`8d1e7d76d`](https://github.com/clerk/javascript/commit/8d1e7d76de40c0ecb367c6745094dd0a75f764b3), [`435d2cff5`](https://github.com/clerk/javascript/commit/435d2cff5dfc86c58690d3f0d843f567ac4f3c04), [`8873841fc`](https://github.com/clerk/javascript/commit/8873841fcbb96f31aaeb8a12a0ce1d90512986d4), [`0a5f632f8`](https://github.com/clerk/javascript/commit/0a5f632f83bb4dae4cc82718dc86b7df3a125a56), [`34da40a50`](https://github.com/clerk/javascript/commit/34da40a5035b37eb365c6cb273e25c4d3bcf7161), [`3158752c7`](https://github.com/clerk/javascript/commit/3158752c73b9266775f954d3adaf43c66ba8b2e8), [`8538cd0c1`](https://github.com/clerk/javascript/commit/8538cd0c1e2ee2e38bd11079735a2ffc6738f71b), [`a412a5014`](https://github.com/clerk/javascript/commit/a412a501426f5d7a32284fda47efe48a04b5d38e), [`4ea30e883`](https://github.com/clerk/javascript/commit/4ea30e883a4f5c19cdde3424bf02afa99e2bc86d), [`17b3de961`](https://github.com/clerk/javascript/commit/17b3de961096446b66853ef2a0a75dc276d89b16), [`86de584dd`](https://github.com/clerk/javascript/commit/86de584ddf1c22ec99852b983a92386e5542613c), [`e404b98f7`](https://github.com/clerk/javascript/commit/e404b98f7339f2f8167684e664153b7d5ac4400e), [`e02a1aff2`](https://github.com/clerk/javascript/commit/e02a1aff2d4b1478601a2e7b598d600ab3902169), [`09bfb793e`](https://github.com/clerk/javascript/commit/09bfb793ee54d50eb54ef4e3a5eb385ea2f2fb54), [`b2296d630`](https://github.com/clerk/javascript/commit/b2296d6304e1ca31a35450e0c67a12555c0142f9), [`dcabc22c5`](https://github.com/clerk/javascript/commit/dcabc22c5ed71094683ac7e1691c1cfa34f59783), [`52ce79108`](https://github.com/clerk/javascript/commit/52ce79108fb5cb4fc84bf4f2df3e3dc748ee4eb3), [`4764e40c7`](https://github.com/clerk/javascript/commit/4764e40c7e858803fc6379dec20fcf687dcaed64), [`1e117beec`](https://github.com/clerk/javascript/commit/1e117beeca53f27d8e9f58f2a724fbc8a7d54021), [`89bc5de04`](https://github.com/clerk/javascript/commit/89bc5de04aafa9832d4d1b5f816af2340acd14d4)]: @@ -6428,7 +6366,6 @@ - Introduces a new internal class `UserOrganizationInvitation` that represents and invitation to join an organization with the organization data populated ([#1527](https://github.com/clerk/javascript/pull/1527)) by [@panteliselef](https://github.com/panteliselef) Additions to support the above - - UserOrganizationInvitationResource - UserOrganizationInvitationJSON - ClerkPaginatedResponse @@ -6484,7 +6421,6 @@ ### Minor Changes - Add a confirmation input as an additional check when doing destructive actions such as: ([#1454](https://github.com/clerk/javascript/pull/1454)) by [@raptisj](https://github.com/raptisj) - - delete an organization - delete a user account - leave an organization @@ -6500,7 +6436,6 @@ - Fixed a bug where overriding some localization values in the sign in/up start pages with an empty string would result in showing the english translation. ([#1474](https://github.com/clerk/javascript/pull/1474)) by [@desiprisg](https://github.com/desiprisg) - Changes to OrganizationSwitcher ([#1462](https://github.com/clerk/javascript/pull/1462)) by [@panteliselef](https://github.com/panteliselef) - - Removal of user identifier from the trigger & popover - Hidden avatar of active user when `hidePersonal` is true @@ -6647,7 +6582,6 @@ - ESM/CJS support for `@clerk/clerk-react` by [@nikosdouvlis](https://github.com/nikosdouvlis) Changes that should affect users and OS contributors: - - Better source map support for `@clerk/clerk-react`, `@clerk/shared`. This affects anyone developing in our monorepo or anyone using a debugger with Clerk installed in their app. - Easier node_modules debugging as `@clerk/clerk-react`, `@clerk/shared` and `@clerk/nextjs` are no longer getting bundled as a single-file package. This also improves error logging in nextjs a lot, as nextjs usually logs the line that threw the error - a minified, single-file package, usually consists of a very long single-line module, so logging error in NextJS wasn't ideal. - Headless clerk-js bundle size reduced by ~10kb, normal clerk-ks by ~6kb @@ -6656,7 +6590,6 @@ - Add support for dataURLs in User.setProfileImage by [@nikosdouvlis](https://github.com/nikosdouvlis) - Support OTP autofill for Chrome on iOS by [@nikosdouvlis](https://github.com/nikosdouvlis) - - Fixes a bug preventing OTP being correctly autofilled when received via SMS - Preview known SAML error messages during failed Sign in/up flows by [@nikosdouvlis](https://github.com/nikosdouvlis) diff --git a/packages/clerk-js/package.json b/packages/clerk-js/package.json index fb10c0a2158..2a6307712ba 100644 --- a/packages/clerk-js/package.json +++ b/packages/clerk-js/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-js", - "version": "5.109.0", + "version": "5.109.1", "description": "Clerk JS library", "keywords": [ "clerk", diff --git a/packages/elements/CHANGELOG.md b/packages/elements/CHANGELOG.md index 6f5093ab9cb..fec00851982 100644 --- a/packages/elements/CHANGELOG.md +++ b/packages/elements/CHANGELOG.md @@ -1,5 +1,14 @@ # @clerk/elements +## 0.23.84 + +### Patch Changes + +- Updated dependencies [[`a9c13ca`](https://github.com/clerk/javascript/commit/a9c13cae5a6f46ca753d530878f7e4492ca7938b)]: + - @clerk/shared@3.35.1 + - @clerk/clerk-react@5.56.1 + - @clerk/types@4.101.1 + ## 0.23.83 ### Patch Changes @@ -88,7 +97,6 @@ **What Changed:** All type definitions including: - - Resource types (User, Organization, Session, etc.) - API response types - Configuration types @@ -1645,7 +1653,6 @@ - Improve `` and re-organize some data attributes related to validity states. These changes might be breaking changes for you. ([#3594](https://github.com/clerk/javascript/pull/3594)) by [@LekoArts](https://github.com/LekoArts) Overview of changes: - - `
` no longer has `data-valid` and `data-invalid` attributes. If there are global errors (same heuristics as ``) then a `data-global-error` attribute will be present. - Fixed a bug where `` could contain `data-valid` and `data-invalid` at the same time. - The field state (accessible through e.g. ``) now also incorporates the field's [ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState) into its output. If the `ValidityState` is invalid, the field state will be an `error`. You can access this information in three places: @@ -1666,7 +1673,6 @@ - The `path` prop on the `` and `` component is now automatically inferred. Previously, the default values were `/sign-in` and `/sign-up`, on other routes you had to explicitly define your route. ([#3557](https://github.com/clerk/javascript/pull/3557)) by [@LekoArts](https://github.com/LekoArts) The new heuristic for determining the path where `` and `` are mounted is: - 1. `path` prop 2. Automatically inferred 3. If it can't be inferred, fallback to `CLERK_SIGN_IN_URL` and `CLERK_SIGN_UP_URL` env var @@ -1686,14 +1692,12 @@ - Support passkeys in `` flows. ([#3472](https://github.com/clerk/javascript/pull/3472)) by [@panteliselef](https://github.com/panteliselef) APIs introduced: - - `` - `` - `` - Detects the usage of `webauthn` to trigger passkey autofill `` Usage examples: - - `` ```tsx @@ -1823,7 +1827,6 @@ ### Patch Changes - This release includes various smaller fixes and one dependency update: ([#3343](https://github.com/clerk/javascript/pull/3343)) by [@tmilewski](https://github.com/tmilewski) - - `xstate` was updated from `5.12.0` to `5.13.0` - Previously, the contents of the `fallback` prop were sometimes shown even if the user wasn't on the `start` step. This bug is fixed now. - Upon completion of an sign-in/sign-up attempt, don't immediately return to the `start` step. This fixes the issue of a "flash of content" that could e.g. be seen during sign-in with OAuth providers. diff --git a/packages/elements/package.json b/packages/elements/package.json index 1eff92b20fa..2470e68515a 100644 --- a/packages/elements/package.json +++ b/packages/elements/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/elements", - "version": "0.23.83", + "version": "0.23.84", "description": "Clerk Elements", "keywords": [ "clerk", diff --git a/packages/expo-passkeys/CHANGELOG.md b/packages/expo-passkeys/CHANGELOG.md index 85d3364a7c6..4641ef21d33 100644 --- a/packages/expo-passkeys/CHANGELOG.md +++ b/packages/expo-passkeys/CHANGELOG.md @@ -1,5 +1,12 @@ # @clerk/expo-passkeys +## 0.4.20 + +### Patch Changes + +- Updated dependencies [[`a9c13ca`](https://github.com/clerk/javascript/commit/a9c13cae5a6f46ca753d530878f7e4492ca7938b)]: + - @clerk/shared@3.35.1 + ## 0.4.19 ### Patch Changes diff --git a/packages/expo-passkeys/package.json b/packages/expo-passkeys/package.json index c2d31492703..d1e6cf4aa10 100644 --- a/packages/expo-passkeys/package.json +++ b/packages/expo-passkeys/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/expo-passkeys", - "version": "0.4.19", + "version": "0.4.20", "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 34739028177..24f4ecde7cd 100644 --- a/packages/expo/CHANGELOG.md +++ b/packages/expo/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 2.19.3 + +### Patch Changes + +- Updated dependencies [[`5966383`](https://github.com/clerk/javascript/commit/5966383a9034e1a06760296a0257bfe4bcedaf33), [`5e5e24a`](https://github.com/clerk/javascript/commit/5e5e24a3207583d78138a1845a1e214b7fff5221), [`3438d17`](https://github.com/clerk/javascript/commit/3438d1791f557a493b7579e87edcafe2314a5079), [`a9c13ca`](https://github.com/clerk/javascript/commit/a9c13cae5a6f46ca753d530878f7e4492ca7938b), [`77e022f`](https://github.com/clerk/javascript/commit/77e022f25d70380ff3aae39eba1722dbfaeb87e6)]: + - @clerk/clerk-js@5.109.1 + - @clerk/shared@3.35.1 + - @clerk/clerk-react@5.56.1 + - @clerk/types@4.101.1 + ## 2.19.2 ### Patch Changes @@ -1145,7 +1155,6 @@ ### Minor Changes - Introduce support for SSO with SAML ([#4880](https://github.com/clerk/javascript/pull/4880)) by [@LauraBeatris](https://github.com/LauraBeatris) - - Introduce `useSSO` hook to support a wider range of SSO flow types - Deprecate `useOAuth` in favor of new `useSSO` hook @@ -1337,13 +1346,11 @@ We're introducing an improved offline support for the `@clerk/clerk-expo` package to enhance reliability and user experience. This new improvement allows apps to bootstrap without an internet connection by using cached Clerk resources, ensuring quick initialization. It solves issues as the following: - - Faster resolution of the `isLoaded` property and the `ClerkLoaded` component, with only a single network fetch attempt, and if it fails, it falls back to the cached resources. - The `getToken` function of `useAuth` hook now returns a cached token if network errors occur. - Developers can now catch and handle network errors gracefully in their custom flows, as the errors are no longer muted. How to use it: - 1. Install the `expo-secure-store` package in your project by running: ```bash @@ -2433,7 +2440,6 @@ - 2b1d76752: Use `base-64` package for Expo instead of the isomorphic from `@clerk/shared` due to errors about `Maximum call stack size exceeded` on `global.Buffer` - 4bb57057e: Breaking Changes: - - Drop `isLegacyFrontendApiKey` from `@clerk/shared` - Drop default exports from `@clerk/clerk-js` - on headless Clerk type @@ -2442,7 +2448,6 @@ - Use `isDevelopmentFromSecretKey` instead of `isDevelopmentFromApiKey` Changes: - - Rename `HeadlessBrowserClerkConstrutor` / `HeadlessBrowserClerkConstructor` (typo) - Use `isomorphicAtob` / `isomorhpicBtoa` to replace `base-64` in `@clerk/expo` - Refactor merging build-time and runtime props in `@clerk/backend` clerk client @@ -3118,7 +3123,6 @@ ### Minor Changes - Breaking Changes: ([#2169](https://github.com/clerk/javascript/pull/2169)) by [@dimkl](https://github.com/dimkl) - - Drop `isLegacyFrontendApiKey` from `@clerk/shared` - Drop default exports from `@clerk/clerk-js` - on headless Clerk type @@ -3127,7 +3131,6 @@ - Use `isDevelopmentFromSecretKey` instead of `isDevelopmentFromApiKey` Changes: - - Rename `HeadlessBrowserClerkConstrutor` / `HeadlessBrowserClerkConstructor` (typo) - Use `isomorphicAtob` / `isomorhpicBtoa` to replace `base-64` in `@clerk/expo` - Refactor merging build-time and runtime props in `@clerk/backend` clerk client @@ -3159,7 +3162,6 @@ ### Major Changes - Drop default exports from all packages. Migration guide: ([#2150](https://github.com/clerk/javascript/pull/2150)) by [@dimkl](https://github.com/dimkl) - - use `import { Clerk } from '@clerk/backend';` - use `import { clerkInstance } from '@clerk/clerk-sdk-node';` - use `import { Clerk } from '@clerk/clerk-sdk-node';` @@ -3168,7 +3170,6 @@ - use `import { IsomorphicClerk } from '@clerk/clerk-react'` - Drop deprecations. Migration steps: ([#2082](https://github.com/clerk/javascript/pull/2082)) by [@dimkl](https://github.com/dimkl) - - use `publishableKey` instead of `frontendApi` - use `Clerk.handleEmailLinkVerification()` instead of `Clerk.handleMagicLinkVerification()` - use `isEmailLinkError` instead of `isMagicLinkError` @@ -3212,7 +3213,6 @@ - Internal update default apiUrl domain from clerk.dev to clerk.com ([#1878](https://github.com/clerk/javascript/pull/1878)) by [@dimkl](https://github.com/dimkl) - Drop deprecations. Migration steps: ([#1991](https://github.com/clerk/javascript/pull/1991)) by [@dimkl](https://github.com/dimkl) - - use `CLERK_PUBLISHABLE_KEY` instead of `CLERK_FRONTEND_API` env variable - use `publishableKey` instead of `frontendApi` - use `isEmailLinkError` instead of `isMagicLinkError` @@ -3261,7 +3261,6 @@ ### Patch Changes - Warn about environment variables deprecations: ([#1859](https://github.com/clerk/javascript/pull/1859)) by [@dimkl](https://github.com/dimkl) - - `CLERK_API_KEY` - `CLERK_FRONTEND_API` - `NEXT_PUBLIC_CLERK_FRONTEND_API` diff --git a/packages/expo/package.json b/packages/expo/package.json index 839764c939e..b556c19fba6 100644 --- a/packages/expo/package.json +++ b/packages/expo/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-expo", - "version": "2.19.2", + "version": "2.19.3", "description": "Clerk React Native/Expo library", "keywords": [ "react", diff --git a/packages/express/CHANGELOG.md b/packages/express/CHANGELOG.md index f01c4fa7305..e92d61db1eb 100644 --- a/packages/express/CHANGELOG.md +++ b/packages/express/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 1.7.51 + +### Patch Changes + +- Updated dependencies [[`a9c13ca`](https://github.com/clerk/javascript/commit/a9c13cae5a6f46ca753d530878f7e4492ca7938b)]: + - @clerk/shared@3.35.1 + - @clerk/backend@2.23.1 + - @clerk/types@4.101.1 + ## 1.7.50 ### Patch Changes @@ -1768,7 +1777,6 @@ ### Patch Changes - 8d73bea16: Introduce [Express](https://expressjs.com/) specific Clerk SDK called `@clerk/express`. The SDK exposes the following APIs: - - `clerkClient`: Default [`@clerk/backend`](https://clerk.com/docs/references/backend/overview) client initialized from environment variables and used to make backend API requests - `clerkMiddleware`: Centralized middleware that authenticates all requests without blocking them (also triggers handshake mechanism) - `getAuth`: Utility to retrieve the auth state from a request (requires `clerkMiddleware` to be executed) @@ -1936,7 +1944,6 @@ ### Patch Changes - Introduce [Express](https://expressjs.com/) specific Clerk SDK called `@clerk/express`. The SDK exposes the following APIs: ([#2918](https://github.com/clerk/javascript/pull/2918)) by [@dimkl](https://github.com/dimkl) - - `clerkClient`: Default [`@clerk/backend`](https://clerk.com/docs/references/backend/overview) client initialized from environment variables and used to make backend API requests - `clerkMiddleware`: Centralized middleware that authenticates all requests without blocking them (also triggers handshake mechanism) - `getAuth`: Utility to retrieve the auth state from a request (requires `clerkMiddleware` to be executed) diff --git a/packages/express/package.json b/packages/express/package.json index 569762a8ec1..27b8f89c2c1 100644 --- a/packages/express/package.json +++ b/packages/express/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/express", - "version": "1.7.50", + "version": "1.7.51", "description": "Clerk server SDK for usage with Express", "keywords": [ "clerk", diff --git a/packages/fastify/CHANGELOG.md b/packages/fastify/CHANGELOG.md index b08ebb0c703..ea82b1b5e38 100644 --- a/packages/fastify/CHANGELOG.md +++ b/packages/fastify/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 2.6.3 + +### Patch Changes + +- Updated dependencies [[`a9c13ca`](https://github.com/clerk/javascript/commit/a9c13cae5a6f46ca753d530878f7e4492ca7938b)]: + - @clerk/shared@3.35.1 + - @clerk/backend@2.23.1 + - @clerk/types@4.101.1 + ## 2.6.2 ### Patch Changes @@ -1843,11 +1852,9 @@ - 629881cba: Re-export everything from `@clerk/backend` in `@clerk/fastify` to support common backend types and functionality without adding `@clerk/backend` as dependency. New exports: - - `verifyToken()` New exported types: - - `ClerkOptions` - `ClerkClient` - `OrganizationMembershipRole` @@ -2160,11 +2167,9 @@ - Re-export everything from `@clerk/backend` in `@clerk/fastify` to support common backend types and functionality without adding `@clerk/backend` as dependency. ([#2968](https://github.com/clerk/javascript/pull/2968)) by [@dimkl](https://github.com/dimkl) New exports: - - `verifyToken()` New exported types: - - `ClerkOptions` - `ClerkClient` - `OrganizationMembershipRole` @@ -2382,7 +2387,6 @@ ### Major Changes - Changes in exports of `@clerk/backend`: ([#2363](https://github.com/clerk/javascript/pull/2363)) by [@dimkl](https://github.com/dimkl) - - Expose the following helpers and enums from `@clerk/backend/internal`: ```typescript import { @@ -2410,7 +2414,6 @@ Dropping those exports results in also dropping the exports from `gatsby-plugin-clerk`, `@clerk/clerk-sdk-node`, `@clerk/backend`, `@clerk/fastify`, `@clerk/nextjs`, `@clerk/remix` packages. - Changes in exports of `@clerk/backend`: ([#2365](https://github.com/clerk/javascript/pull/2365)) by [@dimkl](https://github.com/dimkl) - - Drop the following internal exports from the top-level api: ```typescript // Before @@ -2577,7 +2580,6 @@ - Internal update default apiUrl domain from clerk.dev to clerk.com ([#1878](https://github.com/clerk/javascript/pull/1878)) by [@dimkl](https://github.com/dimkl) - Drop deprecations. Migration steps: ([#1976](https://github.com/clerk/javascript/pull/1976)) by [@dimkl](https://github.com/dimkl) - - use `CLERK_SECRET_KEY` instead of `CLERK_API_KEY` env variable - use `secretKey` instead of `apiKey` - use `CLERK_PUBLISHABLE_KEY` instead of `CLERK_FRONTEND_API` env variable diff --git a/packages/fastify/package.json b/packages/fastify/package.json index 933b7fdc11f..a3d265498cb 100644 --- a/packages/fastify/package.json +++ b/packages/fastify/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/fastify", - "version": "2.6.2", + "version": "2.6.3", "description": "Clerk SDK for Fastify", "keywords": [ "auth", diff --git a/packages/localizations/CHANGELOG.md b/packages/localizations/CHANGELOG.md index 75b3d1ad629..7b8c35699ff 100644 --- a/packages/localizations/CHANGELOG.md +++ b/packages/localizations/CHANGELOG.md @@ -1,11 +1,17 @@ # Change Log +## 3.28.2 + +### Patch Changes + +- Updated dependencies []: + - @clerk/types@4.101.1 + ## 3.28.1 ### Patch Changes - Add Hebrew translations for waitlist component ([#7204](https://github.com/clerk/javascript/pull/7204)) by [@galeshayek](https://github.com/galeshayek) - - Translated waitlist start screen (title, subtitle, form button, action links) - Translated waitlist success screen (title, subtitle, message) - corrected userProfile deletePage actionDescription @@ -22,7 +28,6 @@ ### Patch Changes - Improve Korean (ko-KR) localization by translating missing strings ([#7200](https://github.com/clerk/javascript/pull/7200)) by [@HwangSB](https://github.com/HwangSB) - - Translated undefined values to Korean - Updated dependencies [[`b5a7e2f`](https://github.com/clerk/javascript/commit/b5a7e2f8af5514e19e06918632d982be65f4a854)]: @@ -216,7 +221,6 @@ - Refined German (de-DE) waitlist localization for improved clarity and consistency ([#6631](https://github.com/clerk/javascript/pull/6631)) by [@okikeSolutions](https://github.com/okikeSolutions) This update improves the waitlist flow by: - - Updating action link text from “Jetzt anmelden” to “Anmelden” - Changing action text from “Kein Zugang? Auf die Warteliste setzen!” to “Bereits Zugang?” - Adjusting form button label from “Zur Warteliste hinzufügen” to “Warteliste beitreten” @@ -239,7 +243,6 @@ - Complete Romanian (ro-RO) localization ([#6629](https://github.com/clerk/javascript/pull/6629)) by [@5ergiu](https://github.com/5ergiu) This update: - - Translates missing API key management strings. - Adds complete commerce and billing translations. - Completes organization profile translations. @@ -252,7 +255,6 @@ - Improve German (de-DE) localization with all missing translations ([#6538](https://github.com/clerk/javascript/pull/6538)) by [@mwerder](https://github.com/mwerder) This update improves the German localization by: - - Adding missing German translations - Use 'Wiederherstellungscode' instead of 'Backup-Code' in the whole file for consistency @@ -326,7 +328,6 @@ - Complete Persian (fa-IR) localization with all missing translations ([#6533](https://github.com/clerk/javascript/pull/6533)) by [@hamidrezaghanbari](https://github.com/hamidrezaghanbari) This update completes the Persian localization by: - - Translating all undefined API key management strings - Adding complete commerce/billing translations - Completing organization profile translations @@ -337,7 +338,6 @@ The Persian localization now provides a complete user experience for Persian-speaking users. - Add support for trials in `` ([#6494](https://github.com/clerk/javascript/pull/6494)) by [@panteliselef](https://github.com/panteliselef) - - Added `freeTrialEndsAt` property to `CommerceCheckoutResource` interface. - Update PricingTable with trial info. ([#6493](https://github.com/clerk/javascript/pull/6493)) by [@panteliselef](https://github.com/panteliselef) @@ -711,7 +711,6 @@ - Adds `SubscriptionDetails` support for plans without a current subscription - Switch to "Payment method" terminology instead of "Payment source". ([#5721](https://github.com/clerk/javascript/pull/5721)) by [@panteliselef](https://github.com/panteliselef) - - Removes `userProfile.__experimental_billingPage.start.headerTitle__paymentSources` - Adds `userProfile.__experimental_billingPage.start.headerTitle__paymentMethods` @@ -916,7 +915,6 @@ - Update the translation of `userProfile.start.profileSection.primaryButton` in the `es-ES` locale. ([#5208](https://github.com/clerk/javascript/pull/5208)) by [@Martoxdlol](https://github.com/Martoxdlol) - Update translations for nl-NL ([#5272](https://github.com/clerk/javascript/pull/5272)) by [@MaartenKoller](https://github.com/MaartenKoller) - - `waitlist.start.actionLink` - `waitlist.start.actionText` @@ -950,7 +948,6 @@ ### Patch Changes - Update "profile" translations for en-MX.ts ([#5081](https://github.com/clerk/javascript/pull/5081)) by [@alanmoyano](https://github.com/alanmoyano) - - `userProfile.profilePage.title` - `userProfile.start.profileSection.primaryButton` @@ -1272,7 +1269,6 @@ ### Minor Changes - New Feature: Introduce the `` component and the `waitlist` sign up mode. ([#4376](https://github.com/clerk/javascript/pull/4376)) by [@nikospapcom](https://github.com/nikospapcom) - - Allow users to request access with an email address via the new `` component. - Show `Join waitlist` prompt from `` component when mode is `waitlist`. - Appropriate the text in the Sign Up component when mode is `waitlist`. @@ -1737,7 +1733,6 @@ - af80d7074: Add Thai (th-TH) localization - afec17953: Improved error handling for registration and retrieval of passkeys. ClerkRuntimeError codes introduced: - - `passkey_not_supported` - `passkeys_pa_not_supported` - `passkey_invalid_rpID_or_domain` @@ -1770,7 +1765,6 @@ The `signIn.resetPassword.requiredMessage` localization was updated to `'For security reasons, it is required to reset your password.'`. - 2352149f6: Move passkey related apis to stable: - - Register passkey for a user Usage: `await clerk.user.createPasskey()` - Authenticate with passkey @@ -1787,7 +1781,6 @@ } ``` - ClerkRuntimeError codes introduced: - - `passkey_not_supported` - `passkeys_pa_not_supported` - `passkey_invalid_rpID_or_domain` @@ -1821,7 +1814,6 @@ - 2de442b24: Rename beta-v5 to beta - 9f5491357: Add missing ru-RU localization keys - 840636a14: Adds translation keys to be able to customize error messages when an identifier already exists: - - form_identifier_exists\_\_email_address - form_identifier_exists\_\_username - form_identifier_exists\_\_phone_number @@ -1888,7 +1880,6 @@ ### Minor Changes - Move passkey related apis to stable: ([#3134](https://github.com/clerk/javascript/pull/3134)) by [@panteliselef](https://github.com/panteliselef) - - Register passkey for a user Usage: `await clerk.user.createPasskey()` - Authenticate with passkey @@ -1905,7 +1896,6 @@ } ``` - ClerkRuntimeError codes introduced: - - `passkey_not_supported` - `passkeys_pa_not_supported` - `passkey_invalid_rpID_or_domain` @@ -1946,7 +1936,6 @@ ### Patch Changes - Adds translation keys to be able to customize error messages when an identifier already exists: ([#3073](https://github.com/clerk/javascript/pull/3073)) by [@octoper](https://github.com/octoper) - - form_identifier_exists\_\_email_address - form_identifier_exists\_\_username - form_identifier_exists\_\_phone_number @@ -1958,7 +1947,6 @@ - Improved error handling for registration and retrieval of passkeys. ([#3025](https://github.com/clerk/javascript/pull/3025)) by [@panteliselef](https://github.com/panteliselef) ClerkRuntimeError codes introduced: - - `passkey_not_supported` - `passkeys_pa_not_supported` - `passkey_invalid_rpID_or_domain` @@ -1996,7 +1984,6 @@ ### Minor Changes - List passkeys under security in UserProfile. ([#2958](https://github.com/clerk/javascript/pull/2958)) by [@panteliselef](https://github.com/panteliselef) - - Supports renaming a passkey. - Supports deleting a passkey. @@ -2142,7 +2129,6 @@ ### Major Changes - Drop deprecations. Migration steps: ([#2151](https://github.com/clerk/javascript/pull/2151)) by [@dimkl](https://github.com/dimkl) - - drop `formFieldLabel__emailAddress_phoneNumber` from localization keys - drop `formFieldLabel__phoneNumber_username` from localization keys - drop `formFieldLabel__emailAddress_phoneNumber_username` from localization keys @@ -2242,7 +2228,6 @@ ### Minor Changes - Introduce the new brand-new component OrganizationList ([#1692](https://github.com/clerk/javascript/pull/1692)) by [@panteliselef](https://github.com/panteliselef) - - Lists all the memberships, invitations or suggestions an active user may have - Powered by our `useOrganizationList` react hook @@ -2287,23 +2272,19 @@ ### Patch Changes - Introduces Membership Requests in ([#1576](https://github.com/clerk/javascript/pull/1576)) by [@panteliselef](https://github.com/panteliselef) - - This is a list of users that have requested to join the active organization - Introduces domains and invitations in ([#1560](https://github.com/clerk/javascript/pull/1560)) by [@panteliselef](https://github.com/panteliselef) - - The "Members" page now accommodates Domain and Individual invitations - The "Settings" page allows for the addition, edit and removal of a domain - Add missing account deletion description to Korean translation file ([#1609](https://github.com/clerk/javascript/pull/1609)) by [@JungHoonGhae](https://github.com/JungHoonGhae) - A OrganizationMembershipRequest can now be rejected ([#1612](https://github.com/clerk/javascript/pull/1612)) by [@panteliselef](https://github.com/panteliselef) - - New `OrganizationMembershipRequest.reject` method alongside `accept` - As an organization admin, navigate to `Organization Profile` > `Members` > `Requests`. You can now reject a request from the table. - Introduces an invitation list within ([#1554](https://github.com/clerk/javascript/pull/1554)) by [@panteliselef](https://github.com/panteliselef) - - Users can accept the invitation that is sent to them - When updating enrollment mode of a domain uses can now delete any pending invitations or suggestions. ([#1632](https://github.com/clerk/javascript/pull/1632)) by [@panteliselef](https://github.com/panteliselef) @@ -2311,7 +2292,6 @@ - Add translations for deleteOrganization and domainSection objects to Korean ([#1630](https://github.com/clerk/javascript/pull/1630)) by [@JungHoonGhae](https://github.com/JungHoonGhae) - Introduces list of suggestions within ([#1577](https://github.com/clerk/javascript/pull/1577)) by [@panteliselef](https://github.com/panteliselef) - - Users can request to join a suggested organization - Updated dependencies [[`96cc1921c`](https://github.com/clerk/javascript/commit/96cc1921cac20442f19510137ee0100df5f8a0f4), [`8d1e7d76d`](https://github.com/clerk/javascript/commit/8d1e7d76de40c0ecb367c6745094dd0a75f764b3), [`435d2cff5`](https://github.com/clerk/javascript/commit/435d2cff5dfc86c58690d3f0d843f567ac4f3c04), [`8873841fc`](https://github.com/clerk/javascript/commit/8873841fcbb96f31aaeb8a12a0ce1d90512986d4), [`0a5f632f8`](https://github.com/clerk/javascript/commit/0a5f632f83bb4dae4cc82718dc86b7df3a125a56), [`34da40a50`](https://github.com/clerk/javascript/commit/34da40a5035b37eb365c6cb273e25c4d3bcf7161), [`3158752c7`](https://github.com/clerk/javascript/commit/3158752c73b9266775f954d3adaf43c66ba8b2e8), [`8538cd0c1`](https://github.com/clerk/javascript/commit/8538cd0c1e2ee2e38bd11079735a2ffc6738f71b), [`a412a5014`](https://github.com/clerk/javascript/commit/a412a501426f5d7a32284fda47efe48a04b5d38e), [`4ea30e883`](https://github.com/clerk/javascript/commit/4ea30e883a4f5c19cdde3424bf02afa99e2bc86d), [`86de584dd`](https://github.com/clerk/javascript/commit/86de584ddf1c22ec99852b983a92386e5542613c), [`e02a1aff2`](https://github.com/clerk/javascript/commit/e02a1aff2d4b1478601a2e7b598d600ab3902169), [`09bfb793e`](https://github.com/clerk/javascript/commit/09bfb793ee54d50eb54ef4e3a5eb385ea2f2fb54), [`b2296d630`](https://github.com/clerk/javascript/commit/b2296d6304e1ca31a35450e0c67a12555c0142f9), [`52ce79108`](https://github.com/clerk/javascript/commit/52ce79108fb5cb4fc84bf4f2df3e3dc748ee4eb3), [`4764e40c7`](https://github.com/clerk/javascript/commit/4764e40c7e858803fc6379dec20fcf687dcaed64), [`1e117beec`](https://github.com/clerk/javascript/commit/1e117beeca53f27d8e9f58f2a724fbc8a7d54021), [`89bc5de04`](https://github.com/clerk/javascript/commit/89bc5de04aafa9832d4d1b5f816af2340acd14d4)]: @@ -2324,7 +2304,6 @@ - Add more translations to fr-FR ([#1529](https://github.com/clerk/javascript/pull/1529)) by [@PierreC1024](https://github.com/PierreC1024) - New localization keys for max length exceeded validation: ([#1521](https://github.com/clerk/javascript/pull/1521)) by [@nikospapcom](https://github.com/nikospapcom) - - Organization name (form_param_max_length_exceeded\_\_name) - First name (form_param_max_length_exceeded\_\_first_name) - Last name (form_param_max_length_exceeded\_\_last_name) @@ -2359,7 +2338,6 @@ ### Minor Changes - Add a confirmation input as an additional check when doing destructive actions such as: ([#1454](https://github.com/clerk/javascript/pull/1454)) by [@raptisj](https://github.com/raptisj) - - delete an organization - delete a user account - leave an organization diff --git a/packages/localizations/package.json b/packages/localizations/package.json index 2e00ea794cc..4ea2f723214 100644 --- a/packages/localizations/package.json +++ b/packages/localizations/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/localizations", - "version": "3.28.1", + "version": "3.28.2", "description": "Localizations for the Clerk components", "keywords": [ "react", diff --git a/packages/nextjs/CHANGELOG.md b/packages/nextjs/CHANGELOG.md index 2785f3b9021..5039c92305a 100644 --- a/packages/nextjs/CHANGELOG.md +++ b/packages/nextjs/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 6.35.3 + +### Patch Changes + +- Updated dependencies [[`a9c13ca`](https://github.com/clerk/javascript/commit/a9c13cae5a6f46ca753d530878f7e4492ca7938b)]: + - @clerk/shared@3.35.1 + - @clerk/backend@2.23.1 + - @clerk/clerk-react@5.56.1 + - @clerk/types@4.101.1 + ## 6.35.2 ### Patch Changes @@ -484,7 +494,6 @@ ### Minor Changes - Expose commerce hooks and components under the experimental module. ([#6383](https://github.com/clerk/javascript/pull/6383)) by [@panteliselef](https://github.com/panteliselef) - - PaymentElementProvider, - usePaymentElement, - PaymentElement, @@ -589,7 +598,6 @@ ### Minor Changes - Export experimental hooks and components for PaymentElement ([#6180](https://github.com/clerk/javascript/pull/6180)) by [@panteliselef](https://github.com/panteliselef) - - `__experimental_usePaymentElement` - `__experimental_PaymentElementProvider` - `__experimental_PaymentElement` @@ -942,7 +950,6 @@ ### `useClerk().status` Possible values for `useClerk().status` are: - - `"loading"`: Set during initialization - `"error"`: Set when hotloading clerk-js failed or `Clerk.load()` failed - `"ready"`: Set when Clerk is fully operational @@ -1049,15 +1056,12 @@ ## `await auth()` ### Plan - - `(await auth()).has({ plan: "my-plan" })` ### Feature - - `(await auth()).has({ feature: "my-feature" })` ### Scoped per user or per org - - `(await auth()).has({ feature: "org:my-feature" })` - `(await auth()).has({ feature: "user:my-feature" })` - `(await auth()).has({ plan: "user:my-plan" })` @@ -1066,15 +1070,12 @@ ## `auth.protect()` ### Plan - - `auth.protect({ plan: "my-plan" })` ### Feature - - `auth.protect({ feature: "my-feature" })` ### Scoped per user or per org - - `auth.protect({ feature: "org:my-feature" })` - `auth.protect({ feature: "user:my-feature" })` - `auth.protect({ plan: "user:my-plan" })` @@ -1083,15 +1084,12 @@ ## `` ### Plan - - `` ### Feature - - `` ### Scoped per user or per org - - `` - `` - `` @@ -1100,15 +1098,12 @@ ## `useAuth()` ### Plan - - `useAuth().has({ plan: "my-plan" })` ### Feature - - `useAuth().has({ feature: "my-feature" })` ### Scoped per user or per org - - `useAuth().has({ feature: "org:my-feature" })` - `useAuth().has({ feature: "user:my-feature" })` - `useAuth().has({ plan: "user:my-plan" })` @@ -1177,7 +1172,6 @@ ``` - Added Content Security Policy (CSP) header generation functionality to `clerkMiddleware` with support for both standard and strict-dynamic modes. Key features: ([#5493](https://github.com/clerk/javascript/pull/5493)) by [@jacekradko](https://github.com/jacekradko) - - Automatic generation of CSP headers with default security policies compatible with Clerk requirements - Support for both standard and strict-dynamic CSP modes - Automatic nonce generation for strict-dynamic mode @@ -1778,7 +1772,6 @@ Normally, in order to start a Clerk + Next.js application you need to provide a publishable key and secret key. With "Keyless mode" activated you no longer need to provide these two keys to start your Clerk application. These keys will be automatically generated and the application can be claimed with your account either through a UI prompt or with a URL in your terminal. **Requirements**: - - You need to use Next.js `14.2.0` or later - You need to set the environment variable `NEXT_PUBLIC_CLERK_ENABLE_KEYLESS=true` @@ -1856,7 +1849,6 @@ ### Minor Changes - Introduce the `useReverification()` hook that handles the session reverification flow: ([#4536](https://github.com/clerk/javascript/pull/4536)) by [@panteliselef](https://github.com/panteliselef) - - Replaces `__experimental_useReverification` with `useReverification` Also replaces the following APIs: - `____experimental_reverificationError` -> `__reverificationError` @@ -1949,7 +1941,6 @@ ### Minor Changes - Introduce experimental verification helpers exported from `@clerk/nextjs/server` ([#4480](https://github.com/clerk/javascript/pull/4480)) by [@panteliselef](https://github.com/panteliselef) - - \_\_experimental_reverificationMismatch - \_\_experimental_reverificationMismatchResponse @@ -1979,7 +1970,6 @@ ### Minor Changes - New Feature: Introduce the `` component and the `waitlist` sign up mode. ([#4376](https://github.com/clerk/javascript/pull/4376)) by [@nikospapcom](https://github.com/nikospapcom) - - Allow users to request access with an email address via the new `` component. - Show `Join waitlist` prompt from `` component when mode is `waitlist`. - Appropriate the text in the Sign Up component when mode is `waitlist`. @@ -2248,7 +2238,6 @@ - Drop the experimental mounted variant of `UserVerification`. ([#4266](https://github.com/clerk/javascript/pull/4266)) by [@panteliselef](https://github.com/panteliselef) Removes: - - `<__experimental_UserVerification/>` - `__experimental_mountUserVerification()` - `__experimental_unmountUserVerification()` @@ -2615,7 +2604,6 @@ ### Minor Changes - Introduces dynamic keys from `clerkMiddleware`, allowing access by server-side helpers like `auth`. Keys such as `signUpUrl`, `signInUrl`, `publishableKey` and `secretKey` are securely encrypted using AES algorithm. ([#3525](https://github.com/clerk/javascript/pull/3525)) by [@LauraBeatris](https://github.com/LauraBeatris) - - When providing `secretKey`, `CLERK_ENCRYPTION_KEY` is required as the encryption key. If `secretKey` is not provided, `CLERK_SECRET_KEY` is used by default. - `clerkClient` from `@clerk/nextjs` should now be called as a function, and its singleton form is deprecated. This change allows the Clerk backend client to read keys from the current request, which is necessary to support dynamic keys. @@ -2670,7 +2658,6 @@ - Set `@clerk/types` as a dependency for packages that had it as a dev dependency. ([#3450](https://github.com/clerk/javascript/pull/3450)) by [@desiprisg](https://github.com/desiprisg) - Updated the check ran against the error caught by `buildRequestLike()` to re-throw Static Bailout errors thrown by React in the context of PPR (Partial Pre-Rendering), as these errors shouldn't be caught. This change was required as we have been checking the error message itself, but stopped working after the message was changed in a Next.js update a few months ago. ([#3499](https://github.com/clerk/javascript/pull/3499)) by [@ceIia](https://github.com/ceIia) - - Breaking PR: https://github.com/vercel/next.js/commit/3008af6b0e7b2c8aadd986bdcbce5bad6c39ccc8#diff-20c354509ae1e93e143d91b67b75e3df592c38b7d1ec6ccf7c4a2f72b32ab17d - Why PPR errors shouldn't be caught: https://nextjs.org/docs/messages/ppr-caught-error - Previous fix: https://github.com/clerk/javascript/pull/2518 @@ -2716,7 +2703,6 @@ - Add support for GoogleOneTap. New APIs listed: ([#3392](https://github.com/clerk/javascript/pull/3392)) by [@panteliselef](https://github.com/panteliselef) ### React component - - `` Customize the UX of the prompt @@ -2730,12 +2716,10 @@ ``` ### Use the component from with Vanilla JS - - `Clerk.openGoogleOneTap(props: GoogleOneTapProps)` - `Clerk.closeGoogleOneTap()` ### Low level APIs for custom flows - - `await Clerk.authenticateWithGoogleOneTap({ token: 'xxxx'})` - `await Clerk.handleGoogleOneTapCallback()` @@ -3203,7 +3187,6 @@ - c7e6d00f5: Experimental support for `` with role checks. - c7d960ca0: Replace redirectUrl of protect with `unauthorizedUrl` and `unauthenticatedUrl`. - 4bb57057e: Breaking Changes: - - Drop `isLegacyFrontendApiKey` from `@clerk/shared` - Drop default exports from `@clerk/clerk-js` - on headless Clerk type @@ -3212,7 +3195,6 @@ - Use `isDevelopmentFromSecretKey` instead of `isDevelopmentFromApiKey` Changes: - - Rename `HeadlessBrowserClerkConstrutor` / `HeadlessBrowserClerkConstructor` (typo) - Use `isomorphicAtob` / `isomorhpicBtoa` to replace `base-64` in `@clerk/expo` - Refactor merging build-time and runtime props in `@clerk/backend` clerk client @@ -3249,7 +3231,6 @@ ### Patch Changes - 4564ad643: - Export ClerkMiddlewareAuthObject, ClerkMiddlewareAuth and ClerkMiddlewareOptions types - - Introduce `auth().redirectToSignIn()` that can be used in API routes and pages, eg ```ts @@ -3354,13 +3335,11 @@ ``` - 8e5c881c4: The following paginated APIs now return `{ data, totalCount }` instead of simple arrays, in order to make building paginated UIs easier: - - `clerkClient.users.getOrganizationMembershipList(...)` - `clerkClient.organization.getOrganizationList(...)` - `clerkClient.organization.getOrganizationInvitationList(...)` Revert changing the `{ data, errors }` return value of the following helpers to throw the `errors` or return the `data` (keep v4 format): - - `import { verifyToken } from '@clerk/backend'` - `import { signJwt, hasValidSignature, decodeJwt, verifyJwt } from '@clerk/backend/jwt'` - BAPI `clerkClient` methods eg (`clerkClient.users.getUserList(...)`) @@ -3592,14 +3571,12 @@ ### Minor Changes - Introduce experimental support for Google One Tap ([#3176](https://github.com/clerk/javascript/pull/3176)) by [@panteliselef](https://github.com/panteliselef) - - React Component `<__experimental_GoogleOneTap/>` - JS `clerk.__experimental_mountGoogleOneTap(node,props)` - Speed up loading of clerk-js by using a `