-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(clerk-js): Drop deprecations (#2082)
* chore(clerk-react): Drop `frontendApi` * chore(clerk-react,chrome-extension): Drop `*MagicLink*` related exports * chore(clerk-js): Drop `*MagicLink*` related exports * chore(types): Drop `*MagicLink*` related exports * chore(clerk-js): Drop `orgs` claim * chore(clerk-js,types): Drop `afterSwitchOrganizationUrl` claim * chore(clerk-js): Drop support for `frontendApi` as parameter * chore(clerk-js,types): Drop image related properties - `ExternalAccount.avatarUrl` - `ExternalAccountJSON.avatar_url` - `Organization.logoUrl` - `OrganizationJSON.logo_url` - `User.profileImageUrl` - `UserJSON.profile_image_url` - `OrganizationMembershipPublicUserData.profileImageUrl` - `OrganizationMembershipPublicUserDataJSON.profile_image_url` * chore(clerk-js,types): Drop `*captcha` related methods from Clerk * chore(clerk-js,types): Drop `Organization` related deprecations * chore(*): Drop `useOrganizations` * chore(clerk-js,types): Drop `appearance.userProfile` * chore(clerk-js,clerk-react): Drop `membershipList` and `invitationList` params deprecations * chore(clerk-js,types): Drop `Clerk.setSession` * chore(clerk-js,types): Drop `redirect_url` deprecations * chore(clerk-js,types): Drop `GetMembershipsParams` * chore(clerk-js): Drop `generateSignature` * chore(clerk-js,types): Drop `password` * chore(clerk-js,types): Drop deprecated `addListener/removeListener` from matchMedia return * chore(repo): Add word spelling in vscode workspace + fix typos * chore(clerk-js,types): Use paginated responses in get memberships endpoints * chore(repo): Add changeset * chore(clerk-js,types): Address PR comments
- Loading branch information
Showing
77 changed files
with
285 additions
and
1,538 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
'@clerk/chrome-extension': major | ||
'@clerk/clerk-js': major | ||
'@clerk/nextjs': major | ||
'@clerk/shared': major | ||
'@clerk/clerk-react': major | ||
'@clerk/types': major | ||
'@clerk/clerk-expo': major | ||
--- | ||
|
||
Drop deprecations. Migration steps: | ||
- 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()` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.