From b2bf3f60032ddb57a65eb9de06ff4c0572484232 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 17 Nov 2023 09:12:10 +0000 Subject: [PATCH] chore(repo): Version packages (alpha-v5) --- .changeset/pre.json | 49 ++++++++- packages/backend/CHANGELOG.md | 116 ++++++++++++++++++++++ packages/backend/package.json | 6 +- packages/chrome-extension/CHANGELOG.md | 59 +++++++++++ packages/chrome-extension/package.json | 6 +- packages/clerk-js/CHANGELOG.md | 92 +++++++++++++++++ packages/clerk-js/package.json | 8 +- packages/expo/CHANGELOG.md | 51 ++++++++++ packages/expo/package.json | 10 +- packages/fastify/CHANGELOG.md | 9 ++ packages/fastify/package.json | 8 +- packages/gatsby-plugin-clerk/CHANGELOG.md | 9 ++ packages/gatsby-plugin-clerk/package.json | 10 +- packages/localizations/CHANGELOG.md | 23 +++++ packages/localizations/package.json | 4 +- packages/nextjs/CHANGELOG.md | 71 +++++++++++++ packages/nextjs/package.json | 10 +- packages/react/CHANGELOG.md | 86 ++++++++++++++++ packages/react/package.json | 6 +- packages/remix/CHANGELOG.md | 9 ++ packages/remix/package.json | 10 +- packages/sdk-node/CHANGELOG.md | 52 ++++++++++ packages/sdk-node/package.json | 8 +- packages/shared/CHANGELOG.md | 66 ++++++++++++ packages/shared/package.json | 4 +- packages/themes/package.json | 2 +- packages/types/CHANGELOG.md | 54 ++++++++++ packages/types/package.json | 2 +- 28 files changed, 792 insertions(+), 48 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index 70c35a67e8e..fbef19eb0b1 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -22,21 +22,44 @@ "blue-ghosts-float", "blue-lies-drop", "bright-trainers-sort", + "brown-clouds-divide", + "chatty-berries-jump", + "chatty-boats-tease", + "chilly-donuts-work", + "clever-scissors-reflect", + "clever-vans-flash", "clever-wasps-invite", + "cuddly-cougars-check", + "cuddly-fireants-switch", "curly-news-push", "curvy-mails-rhyme", "cyan-stingrays-own", + "dry-sheep-poke", + "dry-students-reflect", "dull-stingrays-fix", + "empty-jars-press", "fair-cameras-boil", + "famous-carrots-notice", "famous-forks-buy", + "fast-games-hide", + "few-kids-design", "fifty-rats-rhyme", "flat-ants-worry", + "flat-donuts-sleep", "flat-pots-hear", + "friendly-tables-chew", "friendly-vans-develop", + "funny-gifts-cough", + "gentle-pants-matter", "gorgeous-baboons-float", "gorgeous-insects-reply", + "honest-onions-work", "hungry-bears-allow", + "khaki-spoons-teach", + "late-cooks-collect", "late-dolphins-peel", + "lazy-planes-run", + "lemon-kings-love", "little-numbers-jam", "long-icons-share", "loud-countries-hang", @@ -48,29 +71,53 @@ "mean-houses-juggle", "metal-cougars-fail", "metal-olives-press", + "mighty-pugs-knock", "nasty-books-tap", "new-eels-mix", "odd-lemons-reply", + "old-actors-beg", "orange-pumpkins-poke", + "poor-horses-press", "poor-kings-marry", + "popular-singers-sort", "pretty-mice-share", "pretty-months-greet", + "pretty-singers-change", + "proud-hairs-check", "purple-pumas-study", + "purple-rules-prove", "quick-trains-rush", + "real-cougars-design", + "real-taxis-compare", + "red-coats-itch", "red-monkeys-sing", "rude-jobs-yawn", + "rude-lamps-yawn", "selfish-eggs-sort", "silly-icons-kick", + "silly-poems-tease", + "silver-cats-appear", "six-kangaroos-serve", "slimy-singers-glow", + "slow-wombats-battle", "soft-birds-thank", "sour-comics-stare", + "spotty-apples-march", "spotty-roses-push", + "stupid-toys-remain", "tasty-countries-walk", + "tasty-phones-lie", "thin-phones-drop", + "thirty-doors-peel", + "thirty-insects-exist", + "tough-pots-grow", "tough-roses-hunt", + "two-pumas-doubt", "two-terms-speak", + "weak-elephants-grin", "wild-phones-smoke", - "wise-houses-shop" + "wise-houses-shop", + "yellow-elephants-begin", + "young-frogs-enjoy" ] } diff --git a/packages/backend/CHANGELOG.md b/packages/backend/CHANGELOG.md index b9529628cba..060a39f6dfc 100644 --- a/packages/backend/CHANGELOG.md +++ b/packages/backend/CHANGELOG.md @@ -1,5 +1,121 @@ # Change Log +## 1.0.0-alpha-v5.1 + +### 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';` + - use `import { Clerk } from '@clerk/clerk-js';` + - use `import { Clerk } from '@clerk/clerk-js/headless';` + - use `import { IsomorphicClerk } from '@clerk/clerk-react'` + +- Change the response payload of Backend API requests to return `{ data, errors }` instead of return the data and throwing on error response. ([#2126](https://github.com/clerk/javascript/pull/2126)) by [@dimkl](https://github.com/dimkl) + + Code example to keep the same behavior: + + ```typescript + import { users } from '@clerk/backend'; + import { ClerkAPIResponseError } from '@clerk/shared/error'; + + const { data, errors, clerkTraceId, status, statusText } = await users.getUser('user_deadbeef'); + if (errors) { + throw new ClerkAPIResponseError(statusText, { data: errors, status, clerkTraceId }); + } + ``` + +- Enforce passing `request` param to `authenticateRequest` method of `@clerk/backend` ([#2122](https://github.com/clerk/javascript/pull/2122)) by [@dimkl](https://github.com/dimkl) + + instead of passing each header or cookie related option that is used internally to + determine the request state. + + Migration guide: + + - use `request` param in `clerkClient.authenticateRequest()` instead of: + - `origin` + - `host` + - `forwardedHost` + - `forwardedProto` + - `referrer` + - `userAgent` + - `cookieToken` + - `clientUat` + - `headerToken` + - `searchParams` + + Example + + ```typescript + // + // current + // + import { clerkClient } from '@clerk/backend' + + const requestState = await clerkClient.authenticateRequest({ + secretKey: 'sk_....' + publishableKey: 'pk_....' + origin: req.headers.get('origin'), + host: req.headers.get('host'), + forwardedHost: req.headers.get('x-forwarded-host'), + forwardedProto: req.headers.get('x-forwarded-proto'), + referrer: req.headers.get('referer'), + userAgent: req.headers.get('user-agent'), + clientUat: req.cookies.get('__client_uat'), + cookieToken: req.cookies.get('__session'), + headerToken: req.headers.get('authorization'), + searchParams: req.searchParams + }); + + // + // new + // + import { clerkClient, } from '@clerk/backend' + + // use req (if it's a fetch#Request instance) or use `createIsomorphicRequest` from `@clerk/backend` + // to re-construct fetch#Request instance + const requestState = await clerkClient.authenticateRequest({ + secretKey: 'sk_....' + publishableKey: 'pk_....' + request: req + }); + + ``` + +- 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` + - use `apiKey` instead of `secretKey` + - drop `httpOptions` + - use `*.image` instead of + - `ExternalAccount.picture` + - `ExternalAccountJSON.avatar_url` + - `Organization.logoUrl` + - `OrganizationJSON.logo_url` + - `User.profileImageUrl` + - `UserJSON.profile_image_url` + - `OrganizationMembershipPublicUserData.profileImageUrl` + - `OrganizationMembershipPublicUserDataJSON.profile_image_url` + - drop `pkgVersion` + - use `Organization.getOrganizationInvitationList` with `status` instead of `getPendingOrganizationInvitationList` + - drop `orgs` claim (if required, can be manually added by using `user.organizations` in a jwt template) + - use `localInterstitial` instead of `remotePublicInterstitial` / `remotePublicInterstitialUrl` + + Internal changes: + + - replaced error enum (and it's) `SetClerkSecretKeyOrAPIKey` with `SetClerkSecretKey` + +### Patch Changes + +- Strip `experimental__has` from the auth object in `makeAuthObjectSerializable()`. This fixes an issue in Next.js where an error is being thrown when this function is passed to a client component as a prop. ([#2101](https://github.com/clerk/javascript/pull/2101)) by [@BRKalow](https://github.com/BRKalow) + +- Updated dependencies [[`64d3763ec`](https://github.com/clerk/javascript/commit/64d3763ec73747ad04c4b47017195cf4114e150c), [`83e9d0846`](https://github.com/clerk/javascript/commit/83e9d08469e7c2840f06aa7d86831055e23f67a5), [`7f833da9e`](https://github.com/clerk/javascript/commit/7f833da9ebc1b2ec9c65513628c377d0584e5d72), [`492b8a7b1`](https://github.com/clerk/javascript/commit/492b8a7b12f14658a384566012e5807f0a171710), [`0d1052ac2`](https://github.com/clerk/javascript/commit/0d1052ac284b909786fd0e4744b02fcf4d1a8be6), [`5471c7e8d`](https://github.com/clerk/javascript/commit/5471c7e8dd0155348748fa90e5ae97093f59efe9), [`e0e79b4fe`](https://github.com/clerk/javascript/commit/e0e79b4fe47f64006718d547c898b9f67fe4d424)]: + - @clerk/shared@2.0.0-alpha-v5.1 + ## 1.0.0-alpha-v5.0 ### Major Changes diff --git a/packages/backend/package.json b/packages/backend/package.json index 7bf8a473c42..ca66b2d2d8b 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/backend", - "version": "1.0.0-alpha-v5.0", + "version": "1.0.0-alpha-v5.1", "description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities", "homepage": "https://clerk.com/", "bugs": { @@ -48,13 +48,13 @@ "test:cloudflare-workerd": "tests/cloudflare-workerd/run.sh" }, "dependencies": { - "@clerk/shared": "2.0.0-alpha-v5.0", + "@clerk/shared": "2.0.0-alpha-v5.1", "cookie": "0.5.0", "snakecase-keys": "5.4.4", "tslib": "2.4.1" }, "devDependencies": { - "@clerk/types": "4.0.0-alpha-v5.0", + "@clerk/types": "4.0.0-alpha-v5.1", "@cloudflare/workers-types": "^3.18.0", "@types/chai": "^4.3.3", "@types/cookie": "^0.5.1", diff --git a/packages/chrome-extension/CHANGELOG.md b/packages/chrome-extension/CHANGELOG.md index 9300b0f46e5..bf82a08006d 100644 --- a/packages/chrome-extension/CHANGELOG.md +++ b/packages/chrome-extension/CHANGELOG.md @@ -1,5 +1,64 @@ # Change Log +## 1.0.0-alpha-v5.1 + +### 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';` + - use `import { Clerk } from '@clerk/clerk-js';` + - use `import { Clerk } from '@clerk/clerk-js/headless';` + - 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` + - use `EmailLinkErrorCode` instead of `MagicLinkErrorCode` + - use `useEmailLink` instead of `useMagicLink` + - drop `orgs` jwt claim from session token + - use `ExternalAccount.imageUrl` instead of `ExternalAccount.avatarUrl` + - use `Organization.imageUrl` instead of `Organization.logoUrl` + - use `User.imageUrl` instead of `User.profileImageUrl` + - use `OrganizationMembershipPublicUserData.imageUrl` instead of `OrganizationMembershipPublicUserData.profileImageUrl` + - use `useOrganizationList` instead of `useOrganizations` + - use `userProfileProps` instead of `userProfile` in `Appearance` + - use `Clerk.setActive()` instead of `Clerk.setSession()` + - drop `password` param in `User.update()` + - use `afterSelectOrganizationUrl` instead of `afterSwitchOrganizationUrl` in `OrganizationSwitcher` + - drop `Clerk.experimental_canUseCaptcha` / `Clerk.Clerk.experimental_captchaSiteKey` / `Clerk.experimental_captchaURL` (were meant for internal use) + - use `User.getOrganizationMemberships()` instead of `Clerk.getOrganizationMemberships()` + - drop `lastOrganizationInvitation` / `lastOrganizationMember` from Clerk emitted events + - drop `Clerk.__unstable__invitationUpdate` / `Clerk.__unstable__membershipUpdate` + - drop support for string param in `Organization.create()` + - use `Organization.getInvitations()` instead of `Organization.getPendingInvitations()` + - use `pageSize` instead of `limit` in `OrganizationMembership.retrieve()` + - use `initialPage` instead of `offset` in `OrganizationMembership.retrieve()` + - drop `lastOrganizationInvitation` / `lastOrganizationMember` from ClerkProvider + - use `invitations` instead of `invitationList` in `useOrganization` + - use `memberships` instead of `membershipList` in `useOrganization` + - use `redirectUrl` instead of `redirect_url` in `User.createExternalAccount()` + - 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` + - use `isEmailLinkError` instead of `isMagicLinkError` + - use `EmailLinkErrorCode` instead of `MagicLinkErrorCode` + - use `useEmailLink` instead of `useMagicLink` + +### Patch Changes + +- Updated dependencies [[`1ddffb67e`](https://github.com/clerk/javascript/commit/1ddffb67e90c3a784d1616814d86f43d2c8b7de0), [`64d3763ec`](https://github.com/clerk/javascript/commit/64d3763ec73747ad04c4b47017195cf4114e150c), [`deac67c1c`](https://github.com/clerk/javascript/commit/deac67c1c40d6d3ccc3559746c0c31cc29a93b84), [`034abeb76`](https://github.com/clerk/javascript/commit/034abeb762744c4948ef6600b21cd9dd68d165a8), [`83e9d0846`](https://github.com/clerk/javascript/commit/83e9d08469e7c2840f06aa7d86831055e23f67a5), [`08dd88c4a`](https://github.com/clerk/javascript/commit/08dd88c4a829afd8c4fee48b9a31a39162381761), [`5f49568f6`](https://github.com/clerk/javascript/commit/5f49568f6e345ce63b15a4c301fc81c3af30211a), [`7f833da9e`](https://github.com/clerk/javascript/commit/7f833da9ebc1b2ec9c65513628c377d0584e5d72), [`9e10d577e`](https://github.com/clerk/javascript/commit/9e10d577e2a4b9b2cbf8b3272d6e58f4627ae922), [`27052469e`](https://github.com/clerk/javascript/commit/27052469e89558c57bfd19466a11b47bdb3a4d38), [`492b8a7b1`](https://github.com/clerk/javascript/commit/492b8a7b12f14658a384566012e5807f0a171710), [`d005992e0`](https://github.com/clerk/javascript/commit/d005992e0514970730d2f516a99bf20fcfac47f7), [`f77e8cdbd`](https://github.com/clerk/javascript/commit/f77e8cdbd24411f7f9dbfdafcab0596c598f66c1), [`b0ca7b801`](https://github.com/clerk/javascript/commit/b0ca7b801f77210e78a33e7023fb671120f1cfc3), [`d1b524ffb`](https://github.com/clerk/javascript/commit/d1b524ffba0be0cd683e6ace85b91b382ad442bb), [`db3eefe8c`](https://github.com/clerk/javascript/commit/db3eefe8c0fc04ce1de47610dc23769a18f1629c), [`0d1052ac2`](https://github.com/clerk/javascript/commit/0d1052ac284b909786fd0e4744b02fcf4d1a8be6), [`5471c7e8d`](https://github.com/clerk/javascript/commit/5471c7e8dd0155348748fa90e5ae97093f59efe9), [`477170962`](https://github.com/clerk/javascript/commit/477170962f486fd4e6b0653a64826573f0d8621b), [`59336d3d4`](https://github.com/clerk/javascript/commit/59336d3d468edd205c0e5501b7d5046611ee217d), [`e0e79b4fe`](https://github.com/clerk/javascript/commit/e0e79b4fe47f64006718d547c898b9f67fe4d424), [`3c4209068`](https://github.com/clerk/javascript/commit/3c42090688166b74badfdefc7ed8c428601a0ba7)]: + - @clerk/clerk-js@5.0.0-alpha-v5.1 + - @clerk/clerk-react@5.0.0-alpha-v5.1 + ## 1.0.0-alpha-v5.0 ### Major Changes diff --git a/packages/chrome-extension/package.json b/packages/chrome-extension/package.json index c5b30ff4f90..7c9167418c5 100644 --- a/packages/chrome-extension/package.json +++ b/packages/chrome-extension/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/chrome-extension", - "version": "1.0.0-alpha-v5.0", + "version": "1.0.0-alpha-v5.1", "description": "Clerk SDK for Chrome extensions", "keywords": [ "auth", @@ -45,8 +45,8 @@ "test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html" }, "dependencies": { - "@clerk/clerk-js": "5.0.0-alpha-v5.0", - "@clerk/clerk-react": "5.0.0-alpha-v5.0" + "@clerk/clerk-js": "5.0.0-alpha-v5.1", + "@clerk/clerk-react": "5.0.0-alpha-v5.1" }, "devDependencies": { "@types/chrome": "*", diff --git a/packages/clerk-js/CHANGELOG.md b/packages/clerk-js/CHANGELOG.md index 76c03fdf96a..d56fc90c61f 100644 --- a/packages/clerk-js/CHANGELOG.md +++ b/packages/clerk-js/CHANGELOG.md @@ -1,5 +1,97 @@ # Change Log +## 5.0.0-alpha-v5.1 + +### 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';` + - use `import { Clerk } from '@clerk/clerk-js';` + - use `import { Clerk } from '@clerk/clerk-js/headless';` + - 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` + - use `EmailLinkErrorCode` instead of `MagicLinkErrorCode` + - use `useEmailLink` instead of `useMagicLink` + - drop `orgs` jwt claim from session token + - use `ExternalAccount.imageUrl` instead of `ExternalAccount.avatarUrl` + - use `Organization.imageUrl` instead of `Organization.logoUrl` + - use `User.imageUrl` instead of `User.profileImageUrl` + - use `OrganizationMembershipPublicUserData.imageUrl` instead of `OrganizationMembershipPublicUserData.profileImageUrl` + - use `useOrganizationList` instead of `useOrganizations` + - use `userProfileProps` instead of `userProfile` in `Appearance` + - use `Clerk.setActive()` instead of `Clerk.setSession()` + - drop `password` param in `User.update()` + - use `afterSelectOrganizationUrl` instead of `afterSwitchOrganizationUrl` in `OrganizationSwitcher` + - drop `Clerk.experimental_canUseCaptcha` / `Clerk.Clerk.experimental_captchaSiteKey` / `Clerk.experimental_captchaURL` (were meant for internal use) + - use `User.getOrganizationMemberships()` instead of `Clerk.getOrganizationMemberships()` + - drop `lastOrganizationInvitation` / `lastOrganizationMember` from Clerk emitted events + - drop `Clerk.__unstable__invitationUpdate` / `Clerk.__unstable__membershipUpdate` + - drop support for string param in `Organization.create()` + - use `Organization.getInvitations()` instead of `Organization.getPendingInvitations()` + - use `pageSize` instead of `limit` in `OrganizationMembership.retrieve()` + - use `initialPage` instead of `offset` in `OrganizationMembership.retrieve()` + - drop `lastOrganizationInvitation` / `lastOrganizationMember` from ClerkProvider + - use `invitations` instead of `invitationList` in `useOrganization` + - use `memberships` instead of `membershipList` in `useOrganization` + - use `redirectUrl` instead of `redirect_url` in `User.createExternalAccount()` + - use `signature` instead of `generatedSignature` in `Signup.attemptWeb3WalletVerification()` + +### Minor Changes + +- Introducing sign out from all open tabs at once. ([#2094](https://github.com/clerk/javascript/pull/2094)) by [@octoper](https://github.com/octoper) + +- Increase the duration until data become stale for organization hooks. ([#2093](https://github.com/clerk/javascript/pull/2093)) by [@panteliselef](https://github.com/panteliselef) + +- Handle user_locked error encountered in an oauth flow by redirecting to /sign-up or /sign-in ([#2019](https://github.com/clerk/javascript/pull/2019)) by [@yourtallness](https://github.com/yourtallness) + +- Add a private \_\_navigateWithError util function to clerk for use in User Lockout scenarios ([#2043](https://github.com/clerk/javascript/pull/2043)) by [@yourtallness](https://github.com/yourtallness) + +- Move and export the following from @clerk/clerk-js and @clerk/nextjs to @clerk/shared: ([#2149](https://github.com/clerk/javascript/pull/2149)) by [@dimkl](https://github.com/dimkl) + + - `DEV_BROWSER_SSO_JWT_PARAMETER` + - `DEV_BROWSER_JWT_MARKER` + - `DEV_BROWSER_SSO_JWT_KEY` + - `setDevBrowserJWTInURL` + - `getDevBrowserJWTFromURL` + - `getDevBrowserJWTFromResponse` + +### Patch Changes + +- A bug fix for prefetching data for OrganizationSwitcher and correctly displaying a notification count in the switcher as well. ([#2147](https://github.com/clerk/javascript/pull/2147)) by [@panteliselef](https://github.com/panteliselef) + +- Fix incorrect pagination counters in data tables inside ``. ([#2056](https://github.com/clerk/javascript/pull/2056)) by [@panteliselef](https://github.com/panteliselef) + +- Use strict equality operator to check for lockout errors in handleRedirectCallback ([#2072](https://github.com/clerk/javascript/pull/2072)) by [@yourtallness](https://github.com/yourtallness) + +- Emit session when permissions or role of the active memberships change. ([#2073](https://github.com/clerk/javascript/pull/2073)) by [@panteliselef](https://github.com/panteliselef) + +- Return reject(err) in factor one & two code forms ([#2080](https://github.com/clerk/javascript/pull/2080)) by [@yourtallness](https://github.com/yourtallness) + +- Use `userMemberships` instead of `organizationList` inside ``. ([#2118](https://github.com/clerk/javascript/pull/2118)) by [@panteliselef](https://github.com/panteliselef) + +- Require role to be selected before sending organization invite, affects `` and `. ([#2129](https://github.com/clerk/javascript/pull/2129)) by [@panteliselef](https://github.com/panteliselef) + +- Add Autocomplete TS generic for union literals ([#2132](https://github.com/clerk/javascript/pull/2132)) by [@tmilewski](https://github.com/tmilewski) + +- Refactor of internal input group, password field, and checkbox inputs in forms. ([#2087](https://github.com/clerk/javascript/pull/2087)) by [@panteliselef](https://github.com/panteliselef) + +- Refactor of internal radio input in forms. ([#2034](https://github.com/clerk/javascript/pull/2034)) by [@panteliselef](https://github.com/panteliselef) + +- Refresh invited members upon revocation ([#2058](https://github.com/clerk/javascript/pull/2058)) by [@tmilewski](https://github.com/tmilewski) + +- Updated dependencies [[`64d3763ec`](https://github.com/clerk/javascript/commit/64d3763ec73747ad04c4b47017195cf4114e150c), [`83e9d0846`](https://github.com/clerk/javascript/commit/83e9d08469e7c2840f06aa7d86831055e23f67a5), [`7f833da9e`](https://github.com/clerk/javascript/commit/7f833da9ebc1b2ec9c65513628c377d0584e5d72), [`492b8a7b1`](https://github.com/clerk/javascript/commit/492b8a7b12f14658a384566012e5807f0a171710), [`b473ad862`](https://github.com/clerk/javascript/commit/b473ad8622b370f140e023759136cc30a84276a2), [`f77e8cdbd`](https://github.com/clerk/javascript/commit/f77e8cdbd24411f7f9dbfdafcab0596c598f66c1), [`0d1052ac2`](https://github.com/clerk/javascript/commit/0d1052ac284b909786fd0e4744b02fcf4d1a8be6), [`5471c7e8d`](https://github.com/clerk/javascript/commit/5471c7e8dd0155348748fa90e5ae97093f59efe9), [`477170962`](https://github.com/clerk/javascript/commit/477170962f486fd4e6b0653a64826573f0d8621b), [`e0e79b4fe`](https://github.com/clerk/javascript/commit/e0e79b4fe47f64006718d547c898b9f67fe4d424)]: + - @clerk/shared@2.0.0-alpha-v5.1 + - @clerk/types@4.0.0-alpha-v5.1 + - @clerk/localizations@2.0.0-alpha-v5.1 + ## 5.0.0-alpha-v5.0 ### Major Changes diff --git a/packages/clerk-js/package.json b/packages/clerk-js/package.json index 1cc6b3c1472..20c0fad067f 100644 --- a/packages/clerk-js/package.json +++ b/packages/clerk-js/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-js", - "version": "5.0.0-alpha-v5.0", + "version": "5.0.0-alpha-v5.1", "description": "Clerk JS library", "keywords": [ "clerk", @@ -50,9 +50,9 @@ }, "browserslist": "last 2 versions, ios_saf > 12, Safari > 12, > 1%, not dead, not ie > 0", "dependencies": { - "@clerk/localizations": "1.26.8-alpha-v5.0", - "@clerk/shared": "2.0.0-alpha-v5.0", - "@clerk/types": "4.0.0-alpha-v5.0", + "@clerk/localizations": "2.0.0-alpha-v5.1", + "@clerk/shared": "2.0.0-alpha-v5.1", + "@clerk/types": "4.0.0-alpha-v5.1", "@emotion/cache": "11.11.0", "@emotion/react": "11.11.1", "@floating-ui/react": "0.25.4", diff --git a/packages/expo/CHANGELOG.md b/packages/expo/CHANGELOG.md index c2e40bb5a7b..8076d0e323f 100644 --- a/packages/expo/CHANGELOG.md +++ b/packages/expo/CHANGELOG.md @@ -1,5 +1,56 @@ # Change Log +## 1.0.0-alpha-v5.1 + +### 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';` + - use `import { Clerk } from '@clerk/clerk-js';` + - use `import { Clerk } from '@clerk/clerk-js/headless';` + - 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` + - use `EmailLinkErrorCode` instead of `MagicLinkErrorCode` + - use `useEmailLink` instead of `useMagicLink` + - drop `orgs` jwt claim from session token + - use `ExternalAccount.imageUrl` instead of `ExternalAccount.avatarUrl` + - use `Organization.imageUrl` instead of `Organization.logoUrl` + - use `User.imageUrl` instead of `User.profileImageUrl` + - use `OrganizationMembershipPublicUserData.imageUrl` instead of `OrganizationMembershipPublicUserData.profileImageUrl` + - use `useOrganizationList` instead of `useOrganizations` + - use `userProfileProps` instead of `userProfile` in `Appearance` + - use `Clerk.setActive()` instead of `Clerk.setSession()` + - drop `password` param in `User.update()` + - use `afterSelectOrganizationUrl` instead of `afterSwitchOrganizationUrl` in `OrganizationSwitcher` + - drop `Clerk.experimental_canUseCaptcha` / `Clerk.Clerk.experimental_captchaSiteKey` / `Clerk.experimental_captchaURL` (were meant for internal use) + - use `User.getOrganizationMemberships()` instead of `Clerk.getOrganizationMemberships()` + - drop `lastOrganizationInvitation` / `lastOrganizationMember` from Clerk emitted events + - drop `Clerk.__unstable__invitationUpdate` / `Clerk.__unstable__membershipUpdate` + - drop support for string param in `Organization.create()` + - use `Organization.getInvitations()` instead of `Organization.getPendingInvitations()` + - use `pageSize` instead of `limit` in `OrganizationMembership.retrieve()` + - use `initialPage` instead of `offset` in `OrganizationMembership.retrieve()` + - drop `lastOrganizationInvitation` / `lastOrganizationMember` from ClerkProvider + - use `invitations` instead of `invitationList` in `useOrganization` + - use `memberships` instead of `membershipList` in `useOrganization` + - use `redirectUrl` instead of `redirect_url` in `User.createExternalAccount()` + - use `signature` instead of `generatedSignature` in `Signup.attemptWeb3WalletVerification()` + +### Patch Changes + +- Updated dependencies [[`1ddffb67e`](https://github.com/clerk/javascript/commit/1ddffb67e90c3a784d1616814d86f43d2c8b7de0), [`64d3763ec`](https://github.com/clerk/javascript/commit/64d3763ec73747ad04c4b47017195cf4114e150c), [`deac67c1c`](https://github.com/clerk/javascript/commit/deac67c1c40d6d3ccc3559746c0c31cc29a93b84), [`034abeb76`](https://github.com/clerk/javascript/commit/034abeb762744c4948ef6600b21cd9dd68d165a8), [`83e9d0846`](https://github.com/clerk/javascript/commit/83e9d08469e7c2840f06aa7d86831055e23f67a5), [`08dd88c4a`](https://github.com/clerk/javascript/commit/08dd88c4a829afd8c4fee48b9a31a39162381761), [`5f49568f6`](https://github.com/clerk/javascript/commit/5f49568f6e345ce63b15a4c301fc81c3af30211a), [`7f833da9e`](https://github.com/clerk/javascript/commit/7f833da9ebc1b2ec9c65513628c377d0584e5d72), [`9e10d577e`](https://github.com/clerk/javascript/commit/9e10d577e2a4b9b2cbf8b3272d6e58f4627ae922), [`27052469e`](https://github.com/clerk/javascript/commit/27052469e89558c57bfd19466a11b47bdb3a4d38), [`492b8a7b1`](https://github.com/clerk/javascript/commit/492b8a7b12f14658a384566012e5807f0a171710), [`d005992e0`](https://github.com/clerk/javascript/commit/d005992e0514970730d2f516a99bf20fcfac47f7), [`f77e8cdbd`](https://github.com/clerk/javascript/commit/f77e8cdbd24411f7f9dbfdafcab0596c598f66c1), [`b0ca7b801`](https://github.com/clerk/javascript/commit/b0ca7b801f77210e78a33e7023fb671120f1cfc3), [`d1b524ffb`](https://github.com/clerk/javascript/commit/d1b524ffba0be0cd683e6ace85b91b382ad442bb), [`db3eefe8c`](https://github.com/clerk/javascript/commit/db3eefe8c0fc04ce1de47610dc23769a18f1629c), [`0d1052ac2`](https://github.com/clerk/javascript/commit/0d1052ac284b909786fd0e4744b02fcf4d1a8be6), [`5471c7e8d`](https://github.com/clerk/javascript/commit/5471c7e8dd0155348748fa90e5ae97093f59efe9), [`477170962`](https://github.com/clerk/javascript/commit/477170962f486fd4e6b0653a64826573f0d8621b), [`59336d3d4`](https://github.com/clerk/javascript/commit/59336d3d468edd205c0e5501b7d5046611ee217d), [`e0e79b4fe`](https://github.com/clerk/javascript/commit/e0e79b4fe47f64006718d547c898b9f67fe4d424), [`3c4209068`](https://github.com/clerk/javascript/commit/3c42090688166b74badfdefc7ed8c428601a0ba7)]: + - @clerk/clerk-js@5.0.0-alpha-v5.1 + - @clerk/shared@2.0.0-alpha-v5.1 + - @clerk/clerk-react@5.0.0-alpha-v5.1 + ## 1.0.0-alpha-v5.0 ### Major Changes diff --git a/packages/expo/package.json b/packages/expo/package.json index e43b6e5c4a8..09221d5ffb3 100644 --- a/packages/expo/package.json +++ b/packages/expo/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-expo", - "version": "1.0.0-alpha-v5.0", + "version": "1.0.0-alpha-v5.1", "description": "Clerk React Native/Expo library", "keywords": [ "react", @@ -39,14 +39,14 @@ "publish:local": "npx yalc push --replace --sig" }, "dependencies": { - "@clerk/clerk-js": "5.0.0-alpha-v5.0", - "@clerk/clerk-react": "5.0.0-alpha-v5.0", - "@clerk/shared": "2.0.0-alpha-v5.0", + "@clerk/clerk-js": "5.0.0-alpha-v5.1", + "@clerk/clerk-react": "5.0.0-alpha-v5.1", + "@clerk/shared": "2.0.0-alpha-v5.1", "base-64": "1.0.0", "react-native-url-polyfill": "2.0.0" }, "devDependencies": { - "@clerk/types": "^4.0.0-alpha-v5.0", + "@clerk/types": "^4.0.0-alpha-v5.1", "@types/base-64": "^1.0.0", "@types/node": "^18.18.0", "@types/react": "*", diff --git a/packages/fastify/CHANGELOG.md b/packages/fastify/CHANGELOG.md index 3fd698992e5..f3049a2bde2 100644 --- a/packages/fastify/CHANGELOG.md +++ b/packages/fastify/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 1.0.0-alpha-v5.1 + +### Patch Changes + +- Updated dependencies [[`64d3763ec`](https://github.com/clerk/javascript/commit/64d3763ec73747ad04c4b47017195cf4114e150c), [`deac67c1c`](https://github.com/clerk/javascript/commit/deac67c1c40d6d3ccc3559746c0c31cc29a93b84), [`83e9d0846`](https://github.com/clerk/javascript/commit/83e9d08469e7c2840f06aa7d86831055e23f67a5), [`7f833da9e`](https://github.com/clerk/javascript/commit/7f833da9ebc1b2ec9c65513628c377d0584e5d72), [`492b8a7b1`](https://github.com/clerk/javascript/commit/492b8a7b12f14658a384566012e5807f0a171710), [`dd5703013`](https://github.com/clerk/javascript/commit/dd57030133fb8ce98681ff0bcad7e53ee826bb0e), [`f77e8cdbd`](https://github.com/clerk/javascript/commit/f77e8cdbd24411f7f9dbfdafcab0596c598f66c1), [`9615e6cda`](https://github.com/clerk/javascript/commit/9615e6cda8fb1cbc3c2e464e6e891d56e245fac4), [`cace85374`](https://github.com/clerk/javascript/commit/cace85374cb0bb13578cf63fe1f3e6ee59f7f3c2), [`0d1052ac2`](https://github.com/clerk/javascript/commit/0d1052ac284b909786fd0e4744b02fcf4d1a8be6), [`5471c7e8d`](https://github.com/clerk/javascript/commit/5471c7e8dd0155348748fa90e5ae97093f59efe9), [`477170962`](https://github.com/clerk/javascript/commit/477170962f486fd4e6b0653a64826573f0d8621b), [`e0e79b4fe`](https://github.com/clerk/javascript/commit/e0e79b4fe47f64006718d547c898b9f67fe4d424), [`a6451aece`](https://github.com/clerk/javascript/commit/a6451aecef0bac578b295b524f1246dede3a7598)]: + - @clerk/shared@2.0.0-alpha-v5.1 + - @clerk/backend@1.0.0-alpha-v5.1 + - @clerk/types@4.0.0-alpha-v5.1 + ## 1.0.0-alpha-v5.0 ### Major Changes diff --git a/packages/fastify/package.json b/packages/fastify/package.json index 329e3f565c6..545c194e164 100644 --- a/packages/fastify/package.json +++ b/packages/fastify/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/fastify", - "version": "1.0.0-alpha-v5.0", + "version": "1.0.0-alpha-v5.1", "description": "Clerk SDK for Fastify", "keywords": [ "auth", @@ -40,9 +40,9 @@ "test:cache:clear": "jest --clearCache --useStderr" }, "dependencies": { - "@clerk/backend": "1.0.0-alpha-v5.0", - "@clerk/shared": "2.0.0-alpha-v5.0", - "@clerk/types": "4.0.0-alpha-v5.0", + "@clerk/backend": "1.0.0-alpha-v5.1", + "@clerk/shared": "2.0.0-alpha-v5.1", + "@clerk/types": "4.0.0-alpha-v5.1", "cookies": "0.8.0" }, "devDependencies": { diff --git a/packages/gatsby-plugin-clerk/CHANGELOG.md b/packages/gatsby-plugin-clerk/CHANGELOG.md index aced0d6ab20..aea020c2e18 100644 --- a/packages/gatsby-plugin-clerk/CHANGELOG.md +++ b/packages/gatsby-plugin-clerk/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 5.0.0-alpha-v5.1 + +### Patch Changes + +- Updated dependencies [[`deac67c1c`](https://github.com/clerk/javascript/commit/deac67c1c40d6d3ccc3559746c0c31cc29a93b84), [`83e9d0846`](https://github.com/clerk/javascript/commit/83e9d08469e7c2840f06aa7d86831055e23f67a5), [`7f833da9e`](https://github.com/clerk/javascript/commit/7f833da9ebc1b2ec9c65513628c377d0584e5d72), [`dd5703013`](https://github.com/clerk/javascript/commit/dd57030133fb8ce98681ff0bcad7e53ee826bb0e), [`ee432df4e`](https://github.com/clerk/javascript/commit/ee432df4e26e00549dbe0613e52867fc8882e96f), [`9615e6cda`](https://github.com/clerk/javascript/commit/9615e6cda8fb1cbc3c2e464e6e891d56e245fac4), [`cace85374`](https://github.com/clerk/javascript/commit/cace85374cb0bb13578cf63fe1f3e6ee59f7f3c2), [`477170962`](https://github.com/clerk/javascript/commit/477170962f486fd4e6b0653a64826573f0d8621b), [`e0e79b4fe`](https://github.com/clerk/javascript/commit/e0e79b4fe47f64006718d547c898b9f67fe4d424), [`3c4209068`](https://github.com/clerk/javascript/commit/3c42090688166b74badfdefc7ed8c428601a0ba7), [`a6451aece`](https://github.com/clerk/javascript/commit/a6451aecef0bac578b295b524f1246dede3a7598)]: + - @clerk/clerk-sdk-node@5.0.0-alpha-v5.1 + - @clerk/backend@1.0.0-alpha-v5.1 + - @clerk/clerk-react@5.0.0-alpha-v5.1 + ## 5.0.0-alpha-v5.0 ### Major Changes diff --git a/packages/gatsby-plugin-clerk/package.json b/packages/gatsby-plugin-clerk/package.json index a8297fa216d..6069145a240 100644 --- a/packages/gatsby-plugin-clerk/package.json +++ b/packages/gatsby-plugin-clerk/package.json @@ -1,6 +1,6 @@ { "name": "gatsby-plugin-clerk", - "version": "5.0.0-alpha-v5.0", + "version": "5.0.0-alpha-v5.1", "description": "Clerk SDK for Gatsby", "keywords": [ "clerk", @@ -44,14 +44,14 @@ "publish:local": "npx yalc push --replace --sig" }, "dependencies": { - "@clerk/backend": "1.0.0-alpha-v5.0", - "@clerk/clerk-react": "5.0.0-alpha-v5.0", - "@clerk/clerk-sdk-node": "5.0.0-alpha-v5.0", + "@clerk/backend": "1.0.0-alpha-v5.1", + "@clerk/clerk-react": "5.0.0-alpha-v5.1", + "@clerk/clerk-sdk-node": "5.0.0-alpha-v5.1", "cookie": "0.5.0", "tslib": "2.4.1" }, "devDependencies": { - "@clerk/types": "4.0.0-alpha-v5.0", + "@clerk/types": "4.0.0-alpha-v5.1", "@types/cookie": "^0.5.0", "@types/node": "^18.18.0", "eslint-config-custom": "*", diff --git a/packages/localizations/CHANGELOG.md b/packages/localizations/CHANGELOG.md index 18436287445..1cb9d10510e 100644 --- a/packages/localizations/CHANGELOG.md +++ b/packages/localizations/CHANGELOG.md @@ -1,5 +1,28 @@ # Change Log +## 2.0.0-alpha-v5.1 + +### 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 + - drop `formFieldInputPlaceholder__emailAddress_phoneNumber` from localization keys + - drop `formFieldInputPlaceholder__phoneNumber_username` from localization keys + - drop `formFieldInputPlaceholder__emailAddress_phoneNumber_username` from localization keys + - use `title__connectionFailed` instead of `title__conectionFailed` from localization keys + - use `actionLabel__connectionFailed` instead of `actionLabel__conectionFailed` from localization keys + - use `headerTitle__members` instead of `headerTitle__active` from localization keys + - use `headerTitle__invitations` instead of `headerTitle__invited` from localization keys + - drop `createOrganization.subtitle` from localization keys + - use `deDE` instead of `deDe` localization from `@clerk/localizations` + +### Patch Changes + +- Fix zh-TW localization and export zh-TW from index.ts ([#2098](https://github.com/clerk/javascript/pull/2098)) by [@tszhong0411](https://github.com/tszhong0411) + ## 1.26.8-alpha-v5.0 ### Patch Changes diff --git a/packages/localizations/package.json b/packages/localizations/package.json index be2f952b20e..924a7cefcaa 100644 --- a/packages/localizations/package.json +++ b/packages/localizations/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/localizations", - "version": "1.26.8-alpha-v5.0", + "version": "2.0.0-alpha-v5.1", "description": "Localizations for the Clerk components", "keywords": [ "react", @@ -38,7 +38,7 @@ "lint": "eslint src/" }, "devDependencies": { - "@clerk/types": "4.0.0-alpha-v5.0", + "@clerk/types": "4.0.0-alpha-v5.1", "@types/node": "^18.18.0", "eslint-config-custom": "*", "tsup": "*", diff --git a/packages/nextjs/CHANGELOG.md b/packages/nextjs/CHANGELOG.md index 6f869fda222..eeb659a200b 100644 --- a/packages/nextjs/CHANGELOG.md +++ b/packages/nextjs/CHANGELOG.md @@ -1,5 +1,76 @@ # Change Log +## 5.0.0-alpha-v5.1 + +### Major Changes + +- 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` + - use `EmailLinkErrorCode` instead of `MagicLinkErrorCode` + - use `useEmailLink` instead of `useMagicLink` + - drop `orgs` jwt claim from session token + - use `ExternalAccount.imageUrl` instead of `ExternalAccount.avatarUrl` + - use `Organization.imageUrl` instead of `Organization.logoUrl` + - use `User.imageUrl` instead of `User.profileImageUrl` + - use `OrganizationMembershipPublicUserData.imageUrl` instead of `OrganizationMembershipPublicUserData.profileImageUrl` + - use `useOrganizationList` instead of `useOrganizations` + - use `userProfileProps` instead of `userProfile` in `Appearance` + - use `Clerk.setActive()` instead of `Clerk.setSession()` + - drop `password` param in `User.update()` + - use `afterSelectOrganizationUrl` instead of `afterSwitchOrganizationUrl` in `OrganizationSwitcher` + - drop `Clerk.experimental_canUseCaptcha` / `Clerk.Clerk.experimental_captchaSiteKey` / `Clerk.experimental_captchaURL` (were meant for internal use) + - use `User.getOrganizationMemberships()` instead of `Clerk.getOrganizationMemberships()` + - drop `lastOrganizationInvitation` / `lastOrganizationMember` from Clerk emitted events + - drop `Clerk.__unstable__invitationUpdate` / `Clerk.__unstable__membershipUpdate` + - drop support for string param in `Organization.create()` + - use `Organization.getInvitations()` instead of `Organization.getPendingInvitations()` + - use `pageSize` instead of `limit` in `OrganizationMembership.retrieve()` + - use `initialPage` instead of `offset` in `OrganizationMembership.retrieve()` + - drop `lastOrganizationInvitation` / `lastOrganizationMember` from ClerkProvider + - use `invitations` instead of `invitationList` in `useOrganization` + - use `memberships` instead of `membershipList` in `useOrganization` + - use `redirectUrl` instead of `redirect_url` in `User.createExternalAccount()` + - use `signature` instead of `generatedSignature` in `Signup.attemptWeb3WalletVerification()` + +- Change the response payload of Backend API requests to return `{ data, errors }` instead of return the data and throwing on error response. ([#2126](https://github.com/clerk/javascript/pull/2126)) by [@dimkl](https://github.com/dimkl) + + Code example to keep the same behavior: + + ```typescript + import { users } from '@clerk/backend'; + import { ClerkAPIResponseError } from '@clerk/shared/error'; + + const { data, errors, clerkTraceId, status, statusText } = await users.getUser('user_deadbeef'); + if (errors) { + throw new ClerkAPIResponseError(statusText, { data: errors, status, clerkTraceId }); + } + ``` + +### Minor Changes + +- Move and export the following from @clerk/clerk-js and @clerk/nextjs to @clerk/shared: ([#2149](https://github.com/clerk/javascript/pull/2149)) by [@dimkl](https://github.com/dimkl) + + - `DEV_BROWSER_SSO_JWT_PARAMETER` + - `DEV_BROWSER_JWT_MARKER` + - `DEV_BROWSER_SSO_JWT_KEY` + - `setDevBrowserJWTInURL` + - `getDevBrowserJWTFromURL` + - `getDevBrowserJWTFromResponse` + +### Patch Changes + +- Fixes the docs link pointing to clerk.com/docs in the `authAuthHeaderMissing` error by removing the trailing `.` ([#2077](https://github.com/clerk/javascript/pull/2077)) by [@marcadrian-it](https://github.com/marcadrian-it) + +- Add Autocomplete TS generic for union literals ([#2132](https://github.com/clerk/javascript/pull/2132)) by [@tmilewski](https://github.com/tmilewski) + +- Updated dependencies [[`64d3763ec`](https://github.com/clerk/javascript/commit/64d3763ec73747ad04c4b47017195cf4114e150c), [`deac67c1c`](https://github.com/clerk/javascript/commit/deac67c1c40d6d3ccc3559746c0c31cc29a93b84), [`83e9d0846`](https://github.com/clerk/javascript/commit/83e9d08469e7c2840f06aa7d86831055e23f67a5), [`7f833da9e`](https://github.com/clerk/javascript/commit/7f833da9ebc1b2ec9c65513628c377d0584e5d72), [`492b8a7b1`](https://github.com/clerk/javascript/commit/492b8a7b12f14658a384566012e5807f0a171710), [`dd5703013`](https://github.com/clerk/javascript/commit/dd57030133fb8ce98681ff0bcad7e53ee826bb0e), [`9615e6cda`](https://github.com/clerk/javascript/commit/9615e6cda8fb1cbc3c2e464e6e891d56e245fac4), [`cace85374`](https://github.com/clerk/javascript/commit/cace85374cb0bb13578cf63fe1f3e6ee59f7f3c2), [`0d1052ac2`](https://github.com/clerk/javascript/commit/0d1052ac284b909786fd0e4744b02fcf4d1a8be6), [`5471c7e8d`](https://github.com/clerk/javascript/commit/5471c7e8dd0155348748fa90e5ae97093f59efe9), [`477170962`](https://github.com/clerk/javascript/commit/477170962f486fd4e6b0653a64826573f0d8621b), [`e0e79b4fe`](https://github.com/clerk/javascript/commit/e0e79b4fe47f64006718d547c898b9f67fe4d424), [`3c4209068`](https://github.com/clerk/javascript/commit/3c42090688166b74badfdefc7ed8c428601a0ba7), [`a6451aece`](https://github.com/clerk/javascript/commit/a6451aecef0bac578b295b524f1246dede3a7598)]: + - @clerk/shared@2.0.0-alpha-v5.1 + - @clerk/backend@1.0.0-alpha-v5.1 + - @clerk/clerk-react@5.0.0-alpha-v5.1 + ## 5.0.0-alpha-v5.0 ### Major Changes diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json index 216985966b0..7e9ac011109 100644 --- a/packages/nextjs/package.json +++ b/packages/nextjs/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/nextjs", - "version": "5.0.0-alpha-v5.0", + "version": "5.0.0-alpha-v5.1", "description": "Clerk SDK for NextJS", "keywords": [ "clerk", @@ -58,13 +58,13 @@ "test:ci": "jest --maxWorkers=70%" }, "dependencies": { - "@clerk/backend": "1.0.0-alpha-v5.0", - "@clerk/clerk-react": "5.0.0-alpha-v5.0", - "@clerk/shared": "2.0.0-alpha-v5.0", + "@clerk/backend": "1.0.0-alpha-v5.1", + "@clerk/clerk-react": "5.0.0-alpha-v5.1", + "@clerk/shared": "2.0.0-alpha-v5.1", "path-to-regexp": "6.2.1" }, "devDependencies": { - "@clerk/types": "4.0.0-alpha-v5.0", + "@clerk/types": "4.0.0-alpha-v5.1", "@types/node": "^18.18.0", "@types/react": "*", "@types/react-dom": "*", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index e97ee403a1c..03bd98612a6 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,91 @@ # Change Log +## 5.0.0-alpha-v5.1 + +### 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';` + - use `import { Clerk } from '@clerk/clerk-js';` + - use `import { Clerk } from '@clerk/clerk-js/headless';` + - use `import { IsomorphicClerk } from '@clerk/clerk-react'` + +- Drop deprecations. Migration steps: ([#2102](https://github.com/clerk/javascript/pull/2102)) by [@dimkl](https://github.com/dimkl) + + - use `EmailLinkError` instead of `MagicLinkError` + - use `isEmailLinkError` instead of `isMagicLinkError` + - use `EmailLinkErrorCode` instead of `MagicLinkErrorCode` + - use `useEmailLink` instead of `useMagicLink` + - use `buildRequestUrl` from `@clerk/backend` instead of `getRequestUrl` from `@clerk/shared` + - use `OrganizationProvider` instead of `OrganizationContext` + - use `userMemberships` instead of `organizationList` from `useOrganizationList` + +- 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` + - use `EmailLinkErrorCode` instead of `MagicLinkErrorCode` + - use `useEmailLink` instead of `useMagicLink` + - drop `orgs` jwt claim from session token + - use `ExternalAccount.imageUrl` instead of `ExternalAccount.avatarUrl` + - use `Organization.imageUrl` instead of `Organization.logoUrl` + - use `User.imageUrl` instead of `User.profileImageUrl` + - use `OrganizationMembershipPublicUserData.imageUrl` instead of `OrganizationMembershipPublicUserData.profileImageUrl` + - use `useOrganizationList` instead of `useOrganizations` + - use `userProfileProps` instead of `userProfile` in `Appearance` + - use `Clerk.setActive()` instead of `Clerk.setSession()` + - drop `password` param in `User.update()` + - use `afterSelectOrganizationUrl` instead of `afterSwitchOrganizationUrl` in `OrganizationSwitcher` + - drop `Clerk.experimental_canUseCaptcha` / `Clerk.Clerk.experimental_captchaSiteKey` / `Clerk.experimental_captchaURL` (were meant for internal use) + - use `User.getOrganizationMemberships()` instead of `Clerk.getOrganizationMemberships()` + - drop `lastOrganizationInvitation` / `lastOrganizationMember` from Clerk emitted events + - drop `Clerk.__unstable__invitationUpdate` / `Clerk.__unstable__membershipUpdate` + - drop support for string param in `Organization.create()` + - use `Organization.getInvitations()` instead of `Organization.getPendingInvitations()` + - use `pageSize` instead of `limit` in `OrganizationMembership.retrieve()` + - use `initialPage` instead of `offset` in `OrganizationMembership.retrieve()` + - drop `lastOrganizationInvitation` / `lastOrganizationMember` from ClerkProvider + - use `invitations` instead of `invitationList` in `useOrganization` + - use `memberships` instead of `membershipList` in `useOrganization` + - use `redirectUrl` instead of `redirect_url` in `User.createExternalAccount()` + - use `signature` instead of `generatedSignature` in `Signup.attemptWeb3WalletVerification()` + +- 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 + - drop `formFieldInputPlaceholder__emailAddress_phoneNumber` from localization keys + - drop `formFieldInputPlaceholder__phoneNumber_username` from localization keys + - drop `formFieldInputPlaceholder__emailAddress_phoneNumber_username` from localization keys + - use `title__connectionFailed` instead of `title__conectionFailed` from localization keys + - use `actionLabel__connectionFailed` instead of `actionLabel__conectionFailed` from localization keys + - use `headerTitle__members` instead of `headerTitle__active` from localization keys + - use `headerTitle__invitations` instead of `headerTitle__invited` from localization keys + - drop `createOrganization.subtitle` from localization keys + - use `deDE` instead of `deDe` localization from `@clerk/localizations` + +- 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` + - use `isEmailLinkError` instead of `isMagicLinkError` + - use `EmailLinkErrorCode` instead of `MagicLinkErrorCode` + - use `useEmailLink` instead of `useMagicLink` + +### Patch Changes + +- Use the errorThrower shared utility when throwing errors ([#1999](https://github.com/clerk/javascript/pull/1999)) by [@anagstef](https://github.com/anagstef) + +- Updated dependencies [[`64d3763ec`](https://github.com/clerk/javascript/commit/64d3763ec73747ad04c4b47017195cf4114e150c), [`83e9d0846`](https://github.com/clerk/javascript/commit/83e9d08469e7c2840f06aa7d86831055e23f67a5), [`7f833da9e`](https://github.com/clerk/javascript/commit/7f833da9ebc1b2ec9c65513628c377d0584e5d72), [`492b8a7b1`](https://github.com/clerk/javascript/commit/492b8a7b12f14658a384566012e5807f0a171710), [`f77e8cdbd`](https://github.com/clerk/javascript/commit/f77e8cdbd24411f7f9dbfdafcab0596c598f66c1), [`0d1052ac2`](https://github.com/clerk/javascript/commit/0d1052ac284b909786fd0e4744b02fcf4d1a8be6), [`5471c7e8d`](https://github.com/clerk/javascript/commit/5471c7e8dd0155348748fa90e5ae97093f59efe9), [`477170962`](https://github.com/clerk/javascript/commit/477170962f486fd4e6b0653a64826573f0d8621b), [`e0e79b4fe`](https://github.com/clerk/javascript/commit/e0e79b4fe47f64006718d547c898b9f67fe4d424)]: + - @clerk/shared@2.0.0-alpha-v5.1 + - @clerk/types@4.0.0-alpha-v5.1 + ## 5.0.0-alpha-v5.0 ### Major Changes diff --git a/packages/react/package.json b/packages/react/package.json index 74aa1952078..6aef2f537ed 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-react", - "version": "5.0.0-alpha-v5.0", + "version": "5.0.0-alpha-v5.1", "description": "Clerk React library", "keywords": [ "clerk", @@ -56,8 +56,8 @@ "test:ci": "jest --maxWorkers=70%" }, "dependencies": { - "@clerk/shared": "2.0.0-alpha-v5.0", - "@clerk/types": "4.0.0-alpha-v5.0", + "@clerk/shared": "2.0.0-alpha-v5.1", + "@clerk/types": "4.0.0-alpha-v5.1", "eslint-config-custom": "*", "semver": "^7.5.4", "tslib": "2.4.1" diff --git a/packages/remix/CHANGELOG.md b/packages/remix/CHANGELOG.md index 429c17d68e8..755af5ba172 100644 --- a/packages/remix/CHANGELOG.md +++ b/packages/remix/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 4.0.0-alpha-v5.1 + +### Patch Changes + +- Updated dependencies [[`64d3763ec`](https://github.com/clerk/javascript/commit/64d3763ec73747ad04c4b47017195cf4114e150c), [`deac67c1c`](https://github.com/clerk/javascript/commit/deac67c1c40d6d3ccc3559746c0c31cc29a93b84), [`83e9d0846`](https://github.com/clerk/javascript/commit/83e9d08469e7c2840f06aa7d86831055e23f67a5), [`7f833da9e`](https://github.com/clerk/javascript/commit/7f833da9ebc1b2ec9c65513628c377d0584e5d72), [`492b8a7b1`](https://github.com/clerk/javascript/commit/492b8a7b12f14658a384566012e5807f0a171710), [`dd5703013`](https://github.com/clerk/javascript/commit/dd57030133fb8ce98681ff0bcad7e53ee826bb0e), [`9615e6cda`](https://github.com/clerk/javascript/commit/9615e6cda8fb1cbc3c2e464e6e891d56e245fac4), [`cace85374`](https://github.com/clerk/javascript/commit/cace85374cb0bb13578cf63fe1f3e6ee59f7f3c2), [`0d1052ac2`](https://github.com/clerk/javascript/commit/0d1052ac284b909786fd0e4744b02fcf4d1a8be6), [`5471c7e8d`](https://github.com/clerk/javascript/commit/5471c7e8dd0155348748fa90e5ae97093f59efe9), [`477170962`](https://github.com/clerk/javascript/commit/477170962f486fd4e6b0653a64826573f0d8621b), [`e0e79b4fe`](https://github.com/clerk/javascript/commit/e0e79b4fe47f64006718d547c898b9f67fe4d424), [`3c4209068`](https://github.com/clerk/javascript/commit/3c42090688166b74badfdefc7ed8c428601a0ba7), [`a6451aece`](https://github.com/clerk/javascript/commit/a6451aecef0bac578b295b524f1246dede3a7598)]: + - @clerk/shared@2.0.0-alpha-v5.1 + - @clerk/backend@1.0.0-alpha-v5.1 + - @clerk/clerk-react@5.0.0-alpha-v5.1 + ## 4.0.0-alpha-v5.0 ### Major Changes diff --git a/packages/remix/package.json b/packages/remix/package.json index 600854e3c2b..f7dc4e3fa2f 100644 --- a/packages/remix/package.json +++ b/packages/remix/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/remix", - "version": "4.0.0-alpha-v5.0", + "version": "4.0.0-alpha-v5.1", "description": "Clerk SDK for Remix", "keywords": [ "clerk", @@ -69,14 +69,14 @@ "publish:local": "npx yalc push --replace --sig" }, "dependencies": { - "@clerk/backend": "1.0.0-alpha-v5.0", - "@clerk/clerk-react": "5.0.0-alpha-v5.0", - "@clerk/shared": "2.0.0-alpha-v5.0", + "@clerk/backend": "1.0.0-alpha-v5.1", + "@clerk/clerk-react": "5.0.0-alpha-v5.1", + "@clerk/shared": "2.0.0-alpha-v5.1", "cookie": "0.5.0", "tslib": "2.4.1" }, "devDependencies": { - "@clerk/types": "4.0.0-alpha-v5.0", + "@clerk/types": "4.0.0-alpha-v5.1", "@remix-run/react": "^2.0.0", "@remix-run/server-runtime": "^2.0.0", "@types/cookie": "^0.5.0", diff --git a/packages/sdk-node/CHANGELOG.md b/packages/sdk-node/CHANGELOG.md index 63eb27de948..38b7c696987 100644 --- a/packages/sdk-node/CHANGELOG.md +++ b/packages/sdk-node/CHANGELOG.md @@ -1,5 +1,57 @@ # Change Log +## 5.0.0-alpha-v5.1 + +### 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';` + - use `import { Clerk } from '@clerk/clerk-js';` + - use `import { Clerk } from '@clerk/clerk-js/headless';` + - use `import { IsomorphicClerk } from '@clerk/clerk-react'` + +- Change the response payload of Backend API requests to return `{ data, errors }` instead of return the data and throwing on error response. ([#2126](https://github.com/clerk/javascript/pull/2126)) by [@dimkl](https://github.com/dimkl) + + Code example to keep the same behavior: + + ```typescript + import { users } from '@clerk/backend'; + import { ClerkAPIResponseError } from '@clerk/shared/error'; + + const { data, errors, clerkTraceId, status, statusText } = await users.getUser('user_deadbeef'); + if (errors) { + throw new ClerkAPIResponseError(statusText, { data: errors, status, clerkTraceId }); + } + ``` + +- Drop deprecations. Migration steps: ([#2021](https://github.com/clerk/javascript/pull/2021)) 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 + - use `publishableKey` instead of `frontendApi` + - drop Redwood hotfix (upgrade to latest version) + - use `createClerkClient` with options to create a new clerkClient instead of using + the following setters: + - `setClerkApiVersion` + - `setClerkHttpOptions` + - `setClerkServerApiUrl` + - `setClerkApiKey` + - use `@clerk/clerk-sdk-node` instead of `@clerk/clerk-sdk-node/{cjs|esm}/instance` + + Extra: + + - bundle only index.ts and instance.ts + +### Patch Changes + +- Updated dependencies [[`64d3763ec`](https://github.com/clerk/javascript/commit/64d3763ec73747ad04c4b47017195cf4114e150c), [`deac67c1c`](https://github.com/clerk/javascript/commit/deac67c1c40d6d3ccc3559746c0c31cc29a93b84), [`83e9d0846`](https://github.com/clerk/javascript/commit/83e9d08469e7c2840f06aa7d86831055e23f67a5), [`7f833da9e`](https://github.com/clerk/javascript/commit/7f833da9ebc1b2ec9c65513628c377d0584e5d72), [`492b8a7b1`](https://github.com/clerk/javascript/commit/492b8a7b12f14658a384566012e5807f0a171710), [`dd5703013`](https://github.com/clerk/javascript/commit/dd57030133fb8ce98681ff0bcad7e53ee826bb0e), [`9615e6cda`](https://github.com/clerk/javascript/commit/9615e6cda8fb1cbc3c2e464e6e891d56e245fac4), [`cace85374`](https://github.com/clerk/javascript/commit/cace85374cb0bb13578cf63fe1f3e6ee59f7f3c2), [`0d1052ac2`](https://github.com/clerk/javascript/commit/0d1052ac284b909786fd0e4744b02fcf4d1a8be6), [`5471c7e8d`](https://github.com/clerk/javascript/commit/5471c7e8dd0155348748fa90e5ae97093f59efe9), [`e0e79b4fe`](https://github.com/clerk/javascript/commit/e0e79b4fe47f64006718d547c898b9f67fe4d424), [`a6451aece`](https://github.com/clerk/javascript/commit/a6451aecef0bac578b295b524f1246dede3a7598)]: + - @clerk/shared@2.0.0-alpha-v5.1 + - @clerk/backend@1.0.0-alpha-v5.1 + ## 5.0.0-alpha-v5.0 ### Major Changes diff --git a/packages/sdk-node/package.json b/packages/sdk-node/package.json index 558b2433648..c9dca395fa6 100644 --- a/packages/sdk-node/package.json +++ b/packages/sdk-node/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-sdk-node", - "version": "5.0.0-alpha-v5.0", + "version": "5.0.0-alpha-v5.1", "description": "Clerk server SDK for usage with node", "keywords": [ "clerk", @@ -53,13 +53,13 @@ "test:ci": "jest --maxWorkers=70%" }, "dependencies": { - "@clerk/backend": "1.0.0-alpha-v5.0", - "@clerk/shared": "2.0.0-alpha-v5.0", + "@clerk/backend": "1.0.0-alpha-v5.1", + "@clerk/shared": "2.0.0-alpha-v5.1", "camelcase-keys": "6.2.2", "snakecase-keys": "3.2.1" }, "devDependencies": { - "@clerk/types": "4.0.0-alpha-v5.0", + "@clerk/types": "4.0.0-alpha-v5.1", "@types/express": "4.17.14", "@types/node": "^18.18.0", "eslint-config-custom": "*", diff --git a/packages/shared/CHANGELOG.md b/packages/shared/CHANGELOG.md index a3e77512574..9f66b1298a0 100644 --- a/packages/shared/CHANGELOG.md +++ b/packages/shared/CHANGELOG.md @@ -1,5 +1,71 @@ # Change Log +## 2.0.0-alpha-v5.1 + +### Major Changes + +- Drop deprecations. Migration steps: ([#2102](https://github.com/clerk/javascript/pull/2102)) by [@dimkl](https://github.com/dimkl) + + - use `EmailLinkError` instead of `MagicLinkError` + - use `isEmailLinkError` instead of `isMagicLinkError` + - use `EmailLinkErrorCode` instead of `MagicLinkErrorCode` + - use `useEmailLink` instead of `useMagicLink` + - use `buildRequestUrl` from `@clerk/backend` instead of `getRequestUrl` from `@clerk/shared` + - use `OrganizationProvider` instead of `OrganizationContext` + - use `userMemberships` instead of `organizationList` from `useOrganizationList` + +- 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` + - use `EmailLinkErrorCode` instead of `MagicLinkErrorCode` + - use `useEmailLink` instead of `useMagicLink` + - drop `orgs` jwt claim from session token + - use `ExternalAccount.imageUrl` instead of `ExternalAccount.avatarUrl` + - use `Organization.imageUrl` instead of `Organization.logoUrl` + - use `User.imageUrl` instead of `User.profileImageUrl` + - use `OrganizationMembershipPublicUserData.imageUrl` instead of `OrganizationMembershipPublicUserData.profileImageUrl` + - use `useOrganizationList` instead of `useOrganizations` + - use `userProfileProps` instead of `userProfile` in `Appearance` + - use `Clerk.setActive()` instead of `Clerk.setSession()` + - drop `password` param in `User.update()` + - use `afterSelectOrganizationUrl` instead of `afterSwitchOrganizationUrl` in `OrganizationSwitcher` + - drop `Clerk.experimental_canUseCaptcha` / `Clerk.Clerk.experimental_captchaSiteKey` / `Clerk.experimental_captchaURL` (were meant for internal use) + - use `User.getOrganizationMemberships()` instead of `Clerk.getOrganizationMemberships()` + - drop `lastOrganizationInvitation` / `lastOrganizationMember` from Clerk emitted events + - drop `Clerk.__unstable__invitationUpdate` / `Clerk.__unstable__membershipUpdate` + - drop support for string param in `Organization.create()` + - use `Organization.getInvitations()` instead of `Organization.getPendingInvitations()` + - use `pageSize` instead of `limit` in `OrganizationMembership.retrieve()` + - use `initialPage` instead of `offset` in `OrganizationMembership.retrieve()` + - drop `lastOrganizationInvitation` / `lastOrganizationMember` from ClerkProvider + - use `invitations` instead of `invitationList` in `useOrganization` + - use `memberships` instead of `membershipList` in `useOrganization` + - use `redirectUrl` instead of `redirect_url` in `User.createExternalAccount()` + - use `signature` instead of `generatedSignature` in `Signup.attemptWeb3WalletVerification()` + +### Minor Changes + +- Increase the duration until data become stale for organization hooks. ([#2093](https://github.com/clerk/javascript/pull/2093)) by [@panteliselef](https://github.com/panteliselef) + +- Add a private \_\_navigateWithError util function to clerk for use in User Lockout scenarios ([#2043](https://github.com/clerk/javascript/pull/2043)) by [@yourtallness](https://github.com/yourtallness) + +- Move and export the following from @clerk/clerk-js and @clerk/nextjs to @clerk/shared: ([#2149](https://github.com/clerk/javascript/pull/2149)) by [@dimkl](https://github.com/dimkl) + + - `DEV_BROWSER_SSO_JWT_PARAMETER` + - `DEV_BROWSER_JWT_MARKER` + - `DEV_BROWSER_SSO_JWT_KEY` + - `setDevBrowserJWTInURL` + - `getDevBrowserJWTFromURL` + - `getDevBrowserJWTFromResponse` + +### Patch Changes + +- Fix incorrect pagination counters in data tables inside ``. ([#2056](https://github.com/clerk/javascript/pull/2056)) by [@panteliselef](https://github.com/panteliselef) + +- Use the errorThrower shared utility when throwing errors ([#1999](https://github.com/clerk/javascript/pull/1999)) by [@anagstef](https://github.com/anagstef) + ## 2.0.0-alpha-v5.0 ### Major Changes diff --git a/packages/shared/package.json b/packages/shared/package.json index 17839eef8aa..7b824f18a13 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/shared", - "version": "2.0.0-alpha-v5.0", + "version": "2.0.0-alpha-v5.1", "description": "Internal package utils used by the Clerk SDKs", "repository": { "type": "git", @@ -89,7 +89,7 @@ "swr": "2.2.0" }, "devDependencies": { - "@clerk/types": "4.0.0-alpha-v5.0", + "@clerk/types": "4.0.0-alpha-v5.1", "@types/glob-to-regexp": "0.4.1", "@types/js-cookie": "3.0.2", "@types/node": "^18.18.0", diff --git a/packages/themes/package.json b/packages/themes/package.json index 2c9434e0df7..9168025a888 100644 --- a/packages/themes/package.json +++ b/packages/themes/package.json @@ -37,7 +37,7 @@ "lint": "eslint src/" }, "devDependencies": { - "@clerk/types": "4.0.0-alpha-v5.0", + "@clerk/types": "4.0.0-alpha-v5.1", "@types/node": "^18.18.0", "eslint-config-custom": "*", "typescript": "*" diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md index 4b8fd2cba6f..278c00763d3 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/CHANGELOG.md @@ -1,5 +1,59 @@ # Change Log +## 4.0.0-alpha-v5.1 + +### Major Changes + +- 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` + - use `EmailLinkErrorCode` instead of `MagicLinkErrorCode` + - use `useEmailLink` instead of `useMagicLink` + - drop `orgs` jwt claim from session token + - use `ExternalAccount.imageUrl` instead of `ExternalAccount.avatarUrl` + - use `Organization.imageUrl` instead of `Organization.logoUrl` + - use `User.imageUrl` instead of `User.profileImageUrl` + - use `OrganizationMembershipPublicUserData.imageUrl` instead of `OrganizationMembershipPublicUserData.profileImageUrl` + - use `useOrganizationList` instead of `useOrganizations` + - use `userProfileProps` instead of `userProfile` in `Appearance` + - use `Clerk.setActive()` instead of `Clerk.setSession()` + - drop `password` param in `User.update()` + - use `afterSelectOrganizationUrl` instead of `afterSwitchOrganizationUrl` in `OrganizationSwitcher` + - drop `Clerk.experimental_canUseCaptcha` / `Clerk.Clerk.experimental_captchaSiteKey` / `Clerk.experimental_captchaURL` (were meant for internal use) + - use `User.getOrganizationMemberships()` instead of `Clerk.getOrganizationMemberships()` + - drop `lastOrganizationInvitation` / `lastOrganizationMember` from Clerk emitted events + - drop `Clerk.__unstable__invitationUpdate` / `Clerk.__unstable__membershipUpdate` + - drop support for string param in `Organization.create()` + - use `Organization.getInvitations()` instead of `Organization.getPendingInvitations()` + - use `pageSize` instead of `limit` in `OrganizationMembership.retrieve()` + - use `initialPage` instead of `offset` in `OrganizationMembership.retrieve()` + - drop `lastOrganizationInvitation` / `lastOrganizationMember` from ClerkProvider + - use `invitations` instead of `invitationList` in `useOrganization` + - use `memberships` instead of `membershipList` in `useOrganization` + - use `redirectUrl` instead of `redirect_url` in `User.createExternalAccount()` + - use `signature` instead of `generatedSignature` in `Signup.attemptWeb3WalletVerification()` + +- 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 + - drop `formFieldInputPlaceholder__emailAddress_phoneNumber` from localization keys + - drop `formFieldInputPlaceholder__phoneNumber_username` from localization keys + - drop `formFieldInputPlaceholder__emailAddress_phoneNumber_username` from localization keys + - use `title__connectionFailed` instead of `title__conectionFailed` from localization keys + - use `actionLabel__connectionFailed` instead of `actionLabel__conectionFailed` from localization keys + - use `headerTitle__members` instead of `headerTitle__active` from localization keys + - use `headerTitle__invitations` instead of `headerTitle__invited` from localization keys + - drop `createOrganization.subtitle` from localization keys + - use `deDE` instead of `deDe` localization from `@clerk/localizations` + +### Patch Changes + +- Add Autocomplete TS generic for union literals ([#2132](https://github.com/clerk/javascript/pull/2132)) by [@tmilewski](https://github.com/tmilewski) + ## 4.0.0-alpha-v5.0 ### Major Changes diff --git a/packages/types/package.json b/packages/types/package.json index 93a474a9b2f..2ca0b02dda9 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/types", - "version": "4.0.0-alpha-v5.0", + "version": "4.0.0-alpha-v5.1", "description": "Typings for Clerk libraries.", "keywords": [ "clerk",