Skip to content

Version Packages (beta) - #3027

Merged
nikosdouvlis merged 1 commit into
mainfrom
changeset-release/main
Mar 25, 2024
Merged

Version Packages (beta)#3027
nikosdouvlis merged 1 commit into
mainfrom
changeset-release/main

Conversation

@clerk-cookie

@clerk-cookieclerk-cookie commented Mar 21, 2024

Copy link
Copy Markdown
Collaborator

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

main is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on main.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

@clerk/clerk-js@5.0.0-beta.36

Minor Changes

  • Improved error handling for registration and retrieval of passkeys. (#3025) by @panteliselef

    ClerkRuntimeError codes introduced:

    • passkey_not_supported
    • passkeys_pa_not_supported
    • passkey_invalid_rpID_or_domain
    • passkey_already_exists
    • passkey_operation_aborted
    • passkey_retrieval_cancelled
    • passkey_retrieval_failed
    • passkey_registration_cancelled
    • passkey_registration_failed

    Example usage:

    try{await__experimental_authenticateWithPasskey(...args);}catch(e){if(isClerkRuntimeError(e)){if(err.code==='passkey_operation_aborted'){
    ...
    }}}

### Patch Changes
- Updated dependencies [[`78ed58da4`](https://github.com/clerk/javascript/commit/78ed58da4b75a6324edb884b55b5c573b121e750), [`afec17953`](https://github.com/clerk/javascript/commit/afec17953d1ae4ba39ee73e4383757694375524d), [`75d6bf9ad`](https://github.com/clerk/javascript/commit/75d6bf9ade57f1b4d8d68d070fd4c20c0a40d066)]:
- @clerk/localizations@2.0.0-beta.19
- @clerk/types@4.0.0-beta.22
## 5.0.0-beta.35
### 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.
- During sign in, navigate to the `reset-password` route if the user needs a new password. This happens when you enforce password usage during sign-in in your dashboard. Previously this case wasn't handled in the password form. ([#2984](https://github.com/clerk/javascript/pull/2984)) by [@yourtallness](https://github.com/yourtallness)
The `signIn.resetPassword.requiredMessage` localization was updated to `'For security reasons, it is required to reset your password.'`.
- Throw an error in development when there is an invalid mount or modal open. This includes mounting a component when the resource is not available (i.e. `mountUserProfile()` when the user does not exist) as well as mounting a component without the feature being enabled via the clerk dashboard (i.e. `mountOrganizationProfile()` without having organizations enabled). ([#2976](https://github.com/clerk/javascript/pull/2976)) by [@desiprisg](https://github.com/desiprisg)
- Experimental support for authenticating with a passkey. ([#2970](https://github.com/clerk/javascript/pull/2970)) by [@panteliselef](https://github.com/panteliselef)
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()
- clerkCoreErrorOrganizationIsNotDefined()
- Remove the unused appearance keys for accordion and breadcrumb elements. ([#2956](https://github.com/clerk/javascript/pull/2956)) by [@desiprisg](https://github.com/desiprisg)
- Allow users to authenticate with passkeys via the `<SignIn/>`. ([#3000](https://github.com/clerk/javascript/pull/3000)) by [@panteliselef](https://github.com/panteliselef)
### Patch Changes
- Fix checkbox styling issues ([#2995](https://github.com/clerk/javascript/pull/2995)) by [@octoper](https://github.com/octoper)
- Fix font size inconsistencies when selecting method to sign in. ([#2997](https://github.com/clerk/javascript/pull/2997)) by [@octoper](https://github.com/octoper)
- Fix for input group components with prefix or suffix to match the rest of the design ([#2996](https://github.com/clerk/javascript/pull/2996)) by [@octoper](https://github.com/octoper)
- Disable emailAdress field in SignUp if fields.emailAddress.disabled is true ([#2990](https://github.com/clerk/javascript/pull/2990)) by [@nikospapcom](https://github.com/nikospapcom)
- Fix: fallback to other first factors when preferred strategy is passkey but the user has not registered a passkey yet. ([#3013](https://github.com/clerk/javascript/pull/3013)) by [@panteliselef](https://github.com/panteliselef)
- Users will no longer see an error the SignIn component when they try to close popups due to passkey autofill. ([#3015](https://github.com/clerk/javascript/pull/3015)) by [@panteliselef](https://github.com/panteliselef)
- Updated dependencies [[`08118edfa`](https://github.com/clerk/javascript/commit/08118edfa7b885c8b9be9e17ae510481bf282686), [`0d0b1d89a`](https://github.com/clerk/javascript/commit/0d0b1d89a46d2418cb05a10940f4a399cbd8ffeb), [`13ed9ac54`](https://github.com/clerk/javascript/commit/13ed9ac54b6cf948560261ccf4471036eb02b4cd), [`31570f138`](https://github.com/clerk/javascript/commit/31570f13888530cf55556aad032a0028b5740193), [`4e31fca12`](https://github.com/clerk/javascript/commit/4e31fca122762a407d196d4eaffcdcc4cb34b39c), [`1f650f30a`](https://github.com/clerk/javascript/commit/1f650f30a97939817b7b2f3cc6283e22dc431523), [`663243220`](https://github.com/clerk/javascript/commit/6632432208aa6ca507f33fa9ab79abaa40431be6), [`1a0268509`](https://github.com/clerk/javascript/commit/1a02685095fe82ac8bb8f7b6d43b3f7b330c4bd5), [`ebf9be77f`](https://github.com/clerk/javascript/commit/ebf9be77f17f8880541de67f66879324f68cf6bd)]:
- @clerk/localizations@2.0.0-beta.18
- @clerk/types@4.0.0-beta.21
## 5.0.0-beta.34
### Patch Changes
- Fix the input box-shadow on iOS 16 devices ([#2946](https://github.com/clerk/javascript/pull/2946)) by [@anagstef](https://github.com/anagstef)
- Fix the OAuth errors coming from the server to use localizations ([#2957](https://github.com/clerk/javascript/pull/2957)) by [@anagstef](https://github.com/anagstef)
- Remove the `__clerk_ticket` and `__clerk_invitation_token` query params after they are consumed. ([#2949](https://github.com/clerk/javascript/pull/2949)) by [@desiprisg](https://github.com/desiprisg)
## 5.0.0-beta.33
### 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
`clerk.user.__experimental__passkeys?.[0].update({name:'work laptop passkey'})`
- Delete a passkey
`clerk.user.__experimental__passkeys?.[0].delete()`
### Patch Changes
- The organizationPreviewSecondaryIdentifier element will no longer be rendered empty inside the organization switcher's list. ([#2936](https://github.com/clerk/javascript/pull/2936)) by [@desiprisg](https://github.com/desiprisg)
- Correct the HTML structure of the UI components to ensure validity ([#2894](https://github.com/clerk/javascript/pull/2894)) by [@anagstef](https://github.com/anagstef)
- Show counter of members/invitations/requests even if it is 0. ([#2935](https://github.com/clerk/javascript/pull/2935)) by [@desiprisg](https://github.com/desiprisg)
- Fix invite members to an Organization form to show error when invalid email addresses are submitted. ([#2928](https://github.com/clerk/javascript/pull/2928)) by [@octoper](https://github.com/octoper)
- Updated dependencies [[`178907ff6`](https://github.com/clerk/javascript/commit/178907ff69869169e065cff54f2bf4331ad3e493), [`008ac4217`](https://github.com/clerk/javascript/commit/008ac4217bc648085b3caba92a4524c31cc0925b)]:
- @clerk/localizations@2.0.0-beta.17
- @clerk/types@4.0.0-beta.20
## 5.0.0-beta.32
### Patch Changes
- Updated dependencies [[`8350f73a6`](https://github.com/clerk/javascript/commit/8350f73a67f8980be78e3bd3343e772f5653d718)]:
- @clerk/shared@2.0.0-beta.19
## 5.0.0-beta.31
### Minor Changes
- Experimental support for a user to register a passkey for their account. ([#2884](https://github.com/clerk/javascript/pull/2884)) by [@panteliselef](https://github.com/panteliselef)
Usage: `await clerk.user.__experimental__createPasskey()`
### Patch Changes
- Updated dependencies [[`fafa76fb6`](https://github.com/clerk/javascript/commit/fafa76fb66585b5836cc79985f8bdf1d1b4dca97)]:
- @clerk/types@4.0.0-beta.19
## 5.0.0-beta.30
### Patch Changes
- Fix badge misalignment on members list when title is empty ([#2908](https://github.com/clerk/javascript/pull/2908)) by [@octoper](https://github.com/octoper)
- Fix Custom Pages freeze error by using useMemo for when creating the custom pages ([#2897](https://github.com/clerk/javascript/pull/2897)) by [@desiprisg](https://github.com/desiprisg)
- Add spacing between `Add domain` button and it's subtitle that's under the Verified Domains section in `<OrganizationProfile/>` component. ([#2910](https://github.com/clerk/javascript/pull/2910)) by [@octoper](https://github.com/octoper)
- Updated dependencies [[`e5c989a03`](https://github.com/clerk/javascript/commit/e5c989a035fa16413414c213febe16fcdbeef9b1), [`2ec9f6b09`](https://github.com/clerk/javascript/commit/2ec9f6b09f98ae276658d6dc705e16df0573d817)]:
- @clerk/shared@2.0.0-beta.18
## 5.0.0-beta.29
### Minor Changes
- Pass environment into `sdkMetadata` in order to detect if production clerk-js is used by other sdks in dev mode. When it is log dev warning from clerk-js. ([#2802](https://github.com/clerk/javascript/pull/2802)) by [@panteliselef](https://github.com/panteliselef)
### Patch Changes
- Updated dependencies [[`af80d7074`](https://github.com/clerk/javascript/commit/af80d70746fb74b038d9799738483e5cbc3ecf85), [`18c0d015d`](https://github.com/clerk/javascript/commit/18c0d015d20493e14049fed73a5b6f732372a5cf)]:
- @clerk/localizations@2.0.0-beta.16
- @clerk/types@4.0.0-beta.18
## 5.0.0-beta.28
### Patch Changes
- Fix the PhoneInput country ISO text color ([#2893](https://github.com/clerk/javascript/pull/2893)) by [@anagstef](https://github.com/anagstef)
- Make useAwaitableNavigate handle navigations between pages reliably ([#2899](https://github.com/clerk/javascript/pull/2899)) by [@nikosdouvlis](https://github.com/nikosdouvlis)
- Inputs will now trim usernames and email addresses since whitespace as a prefix or suffix is invalid in these fields. ([#2881](https://github.com/clerk/javascript/pull/2881)) by [@desiprisg](https://github.com/desiprisg)
- Updated dependencies [[`fe356eebd`](https://github.com/clerk/javascript/commit/fe356eebd8ff527133e0818cf664e7def577cccc)]:
- @clerk/types@4.0.0-beta.17
## 5.0.0-beta.27
### Patch Changes
- fix(shared,clerk-js): Do not replace current URL if it does not contain a clerk token ([#2879](https://github.com/clerk/javascript/pull/2879)) by [@nikosdouvlis](https://github.com/nikosdouvlis)
- Updated dependencies [[`1834a3ee4`](https://github.com/clerk/javascript/commit/1834a3ee496ea27b9f7ceeb32ec5361f9de8ee30), [`f8328deb9`](https://github.com/clerk/javascript/commit/f8328deb96725d1a8c2cf4f86f2ce451faf96de3)]:
- @clerk/shared@2.0.0-beta.17
- @clerk/localizations@2.0.0-beta.15
## 5.0.0-beta.26
### Patch Changes
- Always drop **clerk_db_jwt and **dev_session params from the URL by [@nikosdouvlis](https://github.com/nikosdouvlis)
- Updated dependencies [[`db18787c4`](https://github.com/clerk/javascript/commit/db18787c4d9fa8ee1306db9b65f3b3f5e2fe2dad)]:
- @clerk/shared@2.0.0-beta.16
## 5.0.0-beta.25
### Patch Changes
- Remove legacy \_\_dev_session from URL search params ([#2867](https://github.com/clerk/javascript/pull/2867)) by [@nikosdouvlis](https://github.com/nikosdouvlis)
- Updated dependencies [[`6eab66050`](https://github.com/clerk/javascript/commit/6eab66050608a1bc5cb9aca6a234b1fea16106e5)]:
- @clerk/shared@2.0.0-beta.15
## 5.0.0-beta.24
### Patch Changes
- Update the debBrowser handling logic to remove hash-based devBrowser JWTs from the URL. Even if v5 does not use the hash-based JWT at all, we still need to remove it from the URL in case clerk-js is initialised on a page after a redirect from an older clerk-js version, such as an AccountPortal using the v4 components ([#2858](https://github.com/clerk/javascript/pull/2858)) by [@nikosdouvlis](https://github.com/nikosdouvlis)
- Updated dependencies [[`12f3c5c55`](https://github.com/clerk/javascript/commit/12f3c5c55580f93a81df27851fbc92ce1312107e)]:
- @clerk/shared@2.0.0-beta.14
## 5.0.0-beta.23
### Patch Changes
- Updated dependencies [[`5c239d973`](https://github.com/clerk/javascript/commit/5c239d97373ad2f2aa91ded1b84670f201f7db8f)]:
- @clerk/types@4.0.0-beta.16
## 5.0.0-beta.22
### Minor Changes
- Use sigUpUrl from props / context / repo-level to construct a redirectUrl in sign-in from email-link flow. ([#2756](https://github.com/clerk/javascript/pull/2756)) by [@dimkl](https://github.com/dimkl)
### Patch Changes
- Rename beta-v5 to beta by [@nikosdouvlis](https://github.com/nikosdouvlis)
- Ensure the token returned from `getToken()` and the token in the session cookie remain in sync. ([#2809](https://github.com/clerk/javascript/pull/2809)) by [@nikosdouvlis](https://github.com/nikosdouvlis)
- Updated dependencies [[`2de442b24`](https://github.com/clerk/javascript/commit/2de442b2465cc5d424b8a0b21aa57c557f3aa2e7)]:
- @clerk/localizations@2.0.0-beta.14
- @clerk/shared@2.0.0-beta.13
- @clerk/types@4.0.0-beta.15
## 5.0.0-beta-v5.21
### Minor Changes
- Accept `skipInvitationScreen` as a prop from OrganizationSwitcher. ([#2713](https://github.com/clerk/javascript/pull/2713)) by [@panteliselef](https://github.com/panteliselef)
`skipInvitationScreen` hides the screen for sending invitations after an organization is created.
By default, Clerk will automatically hide the screen if the number of max allowed members is equal to 1
- Add support for X/Twitter v2 OAuth provider ([#2690](https://github.com/clerk/javascript/pull/2690)) by [@kostaspt](https://github.com/kostaspt)
- Use signInUrl from props/ context / repo-level to construct a redirectUrl in email-link flow. ([#2727](https://github.com/clerk/javascript/pull/2727)) by [@dimkl](https://github.com/dimkl)
### Patch Changes
- Add data-1p-ignore to input fields that do not benefit from password manager suggestions. ([#2731](https://github.com/clerk/javascript/pull/2731)) by [@panteliselef](https://github.com/panteliselef)
- Update cookie setting to ensure cookies can be set to be read when an application is embedded in an iframe. ([#2688](https://github.com/clerk/javascript/pull/2688)) by [@SokratisVidros](https://github.com/SokratisVidros)
- Allow retries for all 300xxx error codes for CF Turnstile. ([#2738](https://github.com/clerk/javascript/pull/2738)) by [@mzhong9723](https://github.com/mzhong9723)
- Prevent Clerk component flickering when mounted in a Next.js app using App Router ([#2765](https://github.com/clerk/javascript/pull/2765)) by [@nikosdouvlis](https://github.com/nikosdouvlis)
- Replace semver with custom regex in versionSelector ([#2760](https://github.com/clerk/javascript/pull/2760)) by [@nikosdouvlis](https://github.com/nikosdouvlis)
- Escape characters in pattern for inputs of [type="email"] ([#2712](https://github.com/clerk/javascript/pull/2712)) by [@panteliselef](https://github.com/panteliselef)
- Fix redirect flow for OAuth2 IDP flow with email_link verification. ([#2677](https://github.com/clerk/javascript/pull/2677)) by [@mzhong9723](https://github.com/mzhong9723)
- Give application logo correct CSS width to prevent incorrect widths ([#2735](https://github.com/clerk/javascript/pull/2735)) by [@LekoArts](https://github.com/LekoArts)
- Updated dependencies [[`244de5ea3`](https://github.com/clerk/javascript/commit/244de5ea3a7641727cd85c544bb79fb04f2c0808), [`9737ef510`](https://github.com/clerk/javascript/commit/9737ef5104346821461972d31f3c69e93924f0e0), [`5b8d85886`](https://github.com/clerk/javascript/commit/5b8d85886843fe20c06527b9f015b8c9a03e6b1b), [`8b466a9ba`](https://github.com/clerk/javascript/commit/8b466a9ba93ca10315b534079b09fa5d76ffa305), [`8daf8451c`](https://github.com/clerk/javascript/commit/8daf8451cb564bc834dd856174ffc2cdfa932e37), [`7f751c4ef`](https://github.com/clerk/javascript/commit/7f751c4ef2d14410058cf65ea984a93b50c0b87e), [`be991365e`](https://github.com/clerk/javascript/commit/be991365e1c78d0f1dfc59bb33dd533b6fad223a)]:
- @clerk/types@4.0.0-beta-v5.14
- @clerk/localizations@2.0.0-beta-v5.13
- @clerk/shared@2.0.0-beta-v5.12
## 5.0.0-beta-v5.20
### Patch Changes
- Introduce more component animations by [@nikosdouvlis](https://github.com/nikosdouvlis)
## 5.0.0-beta-v5.19
### Major Changes
- Refresh the look and feel of the Clerk UI components ([#2622](https://github.com/clerk/javascript/pull/2622)) by [@anagstef](https://github.com/anagstef)
For more info, refer to the [upgrade guide from v4 to v5 in Clerk docs](https://clerk.com/docs/upgrade-guides/upgrading-from-v4-to-v5).
### Patch Changes
- Inform developers who are using legacy Clerk development instances that in V5 URL Based Session Syncing must be enabled. For more information refer to https://clerk.com/docs/upgrade-guides/url-based-session-syncing. ([#2614](https://github.com/clerk/javascript/pull/2614)) by [@SokratisVidros](https://github.com/SokratisVidros)
- Display a warning in the browser's console when organization components are mounted but the "Organizations" feature is disabled for the instance. ([#2603](https://github.com/clerk/javascript/pull/2603)) by [@panteliselef](https://github.com/panteliselef)
- Remove handshake-related query parameters on load of clerk-js. It's possible that these parameters will be returned from Clerk's API, but they are only applicable for SSR-compatible frameworks and so on the client they are unused. ([#2624](https://github.com/clerk/javascript/pull/2624)) by [@BRKalow](https://github.com/BRKalow)
- Updated dependencies [[`d4ff346dd`](https://github.com/clerk/javascript/commit/d4ff346dd53bb3e1970e80bdc7b188c2dd344f12), [`7886ba89d`](https://github.com/clerk/javascript/commit/7886ba89d76bfea2d6882a46baf64bf98f1148d3)]:
- @clerk/shared@2.0.0-beta-v5.11
- @clerk/localizations@2.0.0-beta-v5.12
- @clerk/types@4.0.0-beta-v5.13
## 5.0.0-alpha-v5.18
### Patch Changes
- Update `@clerk/nextjs` error messages to refer to `clerkMiddleware()` and deprecated `authMiddleware()` and fix a typo in `cannotRenderSignUpComponentWhenSessionExists` error message. ([#2589](https://github.com/clerk/javascript/pull/2589)) by [@dimkl](https://github.com/dimkl)
- Throw error for unsupported method `OrganizationMembership.reload` ([#2604](https://github.com/clerk/javascript/pull/2604)) by [@panteliselef](https://github.com/panteliselef)
- Use pattern for email input fields. ([#2575](https://github.com/clerk/javascript/pull/2575)) by [@panteliselef](https://github.com/panteliselef)
- Take account custom pages when redirecting inside OrganizationProfile. ([#2600](https://github.com/clerk/javascript/pull/2600)) by [@panteliselef](https://github.com/panteliselef)
## 5.0.0-alpha-v5.17
### Patch Changes
- Hide backup codes when adding `phone_code` mfa and instance setting is off. ([#2583](https://github.com/clerk/javascript/pull/2583)) by [@panteliselef](https://github.com/panteliselef)
- Update README for v5 ([#2577](https://github.com/clerk/javascript/pull/2577)) by [@LekoArts](https://github.com/LekoArts)
- Updated dependencies [[`34fe88f73`](https://github.com/clerk/javascript/commit/34fe88f73f12a0ee569b3e8c8c956f05a8bdc3dc)]:
- @clerk/localizations@2.0.0-alpha-v5.11
## 5.0.0-alpha-v5.16
### Patch Changes
- Allow dynamic values components props, even if these values change after the components are rendered. For example, a `SignIn` component with a `redirectUrl` prop passed in will always respect the latest value of `redirectUrl`. ([#2515](https://github.com/clerk/javascript/pull/2515)) by [@nikosdouvlis](https://github.com/nikosdouvlis)
- Updated dependencies [[`8cc45d2af`](https://github.com/clerk/javascript/commit/8cc45d2af98320ccced3768fb039b86576e424a5)]:
- @clerk/shared@2.0.0-alpha-v5.10
## 5.0.0-alpha-v5.15
### Minor Changes
- 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
- Organization.getMemberships
- User.getOrganizationInvitations
- User.getOrganizationSuggestions
- User.getOrganizationMemberships
### Patch Changes
- Exclude external custom links from route matching. Previously adding external links to custom pages would cause all pages that are defined below it to throw an error. ([#2519](https://github.com/clerk/javascript/pull/2519)) by [@panteliselef](https://github.com/panteliselef)
- Updated dependencies [[`6b316611f`](https://github.com/clerk/javascript/commit/6b316611fb9d647bd75e9ead1858492255339449)]:
- @clerk/localizations@2.0.0-alpha-v5.10
## 5.0.0-alpha-v5.14
### Patch Changes
- Update user memberships when user creates, leaves or deletes an organization. ([#2473](https://github.com/clerk/javascript/pull/2473)) by [@panteliselef](https://github.com/panteliselef)
- Updated dependencies [[`1dc28ab46`](https://github.com/clerk/javascript/commit/1dc28ab46f6930074334be183c637ce7a81bebf7), [`ea4933655`](https://github.com/clerk/javascript/commit/ea4933655863ce315324aa2a3be7d5f263c2b61f), [`eb796dd9e`](https://github.com/clerk/javascript/commit/eb796dd9e5329e066ab5f0040a15c1f939d66888), [`38d8b3e8a`](https://github.com/clerk/javascript/commit/38d8b3e8a0387bcf0b9c8d16e3bbfcfe9b643ca2)]:
- @clerk/shared@2.0.0-alpha-v5.9
- @clerk/localizations@2.0.0-alpha-v5.9
## 5.0.0-alpha-v5.13
### Patch Changes
- Bug fix: Avoid triggering prepare verification twice. (Affects only dev mode) ([#2459](https://github.com/clerk/javascript/pull/2459)) by [@panteliselef](https://github.com/panteliselef)
- Bug fix: fetch custom roles in OrganizationSwitcher ([#2430](https://github.com/clerk/javascript/pull/2430)) by [@panteliselef](https://github.com/panteliselef)
- Updated dependencies [[`7ecd6f6ab`](https://github.com/clerk/javascript/commit/7ecd6f6abb0e5bfb1a57c99cc11860de311c3e82), [`390a70732`](https://github.com/clerk/javascript/commit/390a707323fe35cecb55f7c4592ee9d18e7c56be)]:
- @clerk/shared@2.0.0-alpha-v5.8
- @clerk/localizations@2.0.0-alpha-v5.8
## 5.0.0-alpha-v5.12
### Major Changes
- Path-based routing is now the default routing strategy if the `path` prop is filled. Additionally, if the `path` and `routing` props are not filled, an error will be thrown. ([#2338](https://github.com/clerk/javascript/pull/2338)) by [@octoper](https://github.com/octoper)
```jsx
// Without path or routing props, an error with be thrown
<UserProfile />
<CreateOrganization />
<OrganizationProfile />
<SignIn />
<SignUp />
// Alternative #1
<UserProfile path="/whatever"/>
<CreateOrganization path="/whatever"/>
<OrganizationProfile path="/whatever"/>
<SignIn path="/whatever"/>
<SignUp path="/whatever"/>
// Alternative #2
<UserProfile routing="hash_or_virtual"/>
<CreateOrganization routing="hash_or_virtual"/>
<OrganizationProfile routing="hash_or_virtual"/>
<SignIn routing="hash_or_virtual"/>
<SignUp routing="hash_or_virtual"/>
  • Make the user name on clickable, i.e. part of the button's trigger. (#2411) by @marcelscruz

    This change inverts the positions of cl-userButtonTrigger and cl-userButtonBox, the latter now being a child of the former.

  • Consolidate afterSignOutOneUrl & afterSignOutAllUrl to afterSignOutUrl and drop usage of Dashboard settings in ClerkJS components. The Dashboard settings should only apply to the Account Portal application. (#2414) by @dimkl

Minor Changes

  • Remove MembershipRole. The type MembershipRole would always include the old role keys admin, basic_member, guest_member. (#2388) by @panteliselef

    If developers still depend on them after the introduction of custom roles, the can provide them as their custom types for authorization.

    // clerk.d.tsinterfaceClerkAuthorization{permission: '';role: 'admin'|'basic_member'|'guest_member';}
  • Update @clerk/clerk-js and @clerk/clerk-react to support the following examples: (#2412) by @dimkl

    Clerk.signOut({redirectUrl: '/'})<SignOutButtonredirectUrl='/'/>// uses Clerk.signOut({ redirectUrl: '/' })<UserButtonafterSignOutUrl='/after'/>// uses Clerk.signOut({ redirectUrl: '/after' })<ClerkProviderafterSignOutUrl='/after'/>// uses Clerk.signOut({ redirectUrl: '/after' })

Patch Changes

  • Prevent submitting on enter in Organization Profile form when submit button is disabled. (#2400) by @panteliselef

  • Bug fix: Clear feedback of input field if setError is called with undefined. (#2399) by @panteliselef

  • Updated dependencies [fe2607b6f, 2e4a43017]:

    • @clerk/types@4.0.0-alpha-v5.12

@clerk/localizations@2.0.0-beta.19

Minor Changes

  • Improved error handling for registration and retrieval of passkeys. (#3025) by @panteliselef

    ClerkRuntimeError codes introduced:

    • passkey_not_supported
    • passkeys_pa_not_supported
    • passkey_invalid_rpID_or_domain
    • passkey_already_exists
    • passkey_operation_aborted
    • passkey_retrieval_cancelled
    • passkey_retrieval_failed
    • passkey_registration_cancelled
    • passkey_registration_failed

    Example usage:

    try{await__experimental_authenticateWithPasskey(...args);}catch(e){if(isClerkRuntimeError(e)){if(err.code==='passkey_operation_aborted'){
    ...
    }}}

### Patch Changes
- Translate EN strings to ES in es-ES.ts ([#3020](https://github.com/clerk/javascript/pull/3020)) by [@pauloconde](https://github.com/pauloconde)
- Added Mongolian (mn-MN) localizations ([#3024](https://github.com/clerk/javascript/pull/3024)) by [@TsPuujee](https://github.com/TsPuujee)
## 2.0.0-beta.18
### 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.
- During sign in, navigate to the `reset-password` route if the user needs a new password. This happens when you enforce password usage during sign-in in your dashboard. Previously this case wasn't handled in the password form. ([#2984](https://github.com/clerk/javascript/pull/2984)) by [@yourtallness](https://github.com/yourtallness)
The `signIn.resetPassword.requiredMessage` localization was updated to `'For security reasons, it is required to reset your password.'`.
- Allow users to authenticate with passkeys via the `<SignIn/>`. ([#3000](https://github.com/clerk/javascript/pull/3000)) by [@panteliselef](https://github.com/panteliselef)
### Patch Changes
- Add missing ru-RU translations ([#2961](https://github.com/clerk/javascript/pull/2961)) by [@blackkkout](https://github.com/blackkkout)
- Improve Norwegian translations ([#2963](https://github.com/clerk/javascript/pull/2963)) by [@petter](https://github.com/petter)
- Add missing translation for profile edit button in de-DE ([#3011](https://github.com/clerk/javascript/pull/3011)) by [@dislick](https://github.com/dislick)
- Add Catalan (ca-ES) localizations ([#3006](https://github.com/clerk/javascript/pull/3006)) by [@jorvixsky](https://github.com/jorvixsky)
## 2.0.0-beta.17
### Patch Changes
- Update the danger section in the `es-ES` localization ([#2924](https://github.com/clerk/javascript/pull/2924)) by [@souvik666](https://github.com/souvik666)
## 2.0.0-beta.16
### Minor Changes
- Add Thai (th-TH) localization ([#2874](https://github.com/clerk/javascript/pull/2874)) by [@ttwrpz](https://github.com/ttwrpz)
## 2.0.0-beta.15
### Patch Changes
- Improve Japanese translations ([#2868](https://github.com/clerk/javascript/pull/2868)) by [@gunta](https://github.com/gunta)
## 2.0.0-beta.14
### Patch Changes
- Rename beta-v5 to beta by [@nikosdouvlis](https://github.com/nikosdouvlis)
## 2.0.0-beta-v5.13
### Patch Changes
- Improve German translations ([#2675](https://github.com/clerk/javascript/pull/2675)) by [@TobiasMaehl-pIX](https://github.com/TobiasMaehl-pIX)
## 2.0.0-beta-v5.12
### Major Changes
- Refresh the look and feel of the Clerk UI components ([#2622](https://github.com/clerk/javascript/pull/2622)) by [@anagstef](https://github.com/anagstef)
For more info, refer to the [upgrade guide from v4 to v5 in Clerk docs](https://clerk.com/docs/upgrade-guides/upgrading-from-v4-to-v5).
## 2.0.0-alpha-v5.11
### Patch Changes
- Add Bulgarian (bg-BG) localization (#2565) ([#2565](https://github.com/clerk/javascript/pull/2565)) by [@samusarsar](https://github.com/samusarsar)
## 2.0.0-alpha-v5.10
### Minor Changes
- Correct ko-KR strings naturally ([#2533](https://github.com/clerk/javascript/pull/2533)) by [@sunghyunzz](https://github.com/sunghyunzz)
## 2.0.0-alpha-v5.9
### Patch Changes
- Introduce es-MX localization by [@nikosdouvlis](https://github.com/nikosdouvlis)
## 2.0.0-alpha-v5.8
### Patch Changes
- Fix typo in ko-KR.ts ([#2464](https://github.com/clerk/javascript/pull/2464)) by [@FitCoderOfficial](https://github.com/FitCoderOfficial)
## 2.0.0-alpha-v5.7
### Patch Changes
- Update es-ES.ts ([#2341](https://github.com/clerk/javascript/pull/2341)) by [@codesjedi](https://github.com/codesjedi)
## 2.0.0-alpha-v5.6
### Patch Changes
- The package now allows for [subpath exports](https://nodejs.org/api/packages.html#subpath-exports). You can now import specific languages like so: ([#2236](https://github.com/clerk/javascript/pull/2236)) by [@dimkl](https://github.com/dimkl)
```diff
# Single language
- import { frFR } from "@clerk/localizations"
+ import { frFR } from "@clerk/localizations/fr-FR"
# Multiple languages
- import { enUS, esES } from "@clerk/localizations"
+ import { enUS } from "@clerk/localizations/en-US"
+ import { esES } from "@clerk/localizations/es-ES"

This helps with tree-shaking and will reduce your total bundle size in most cases.

You can continue to use the top-level @clerk/localizations import as this is a non-breaking change. You can gradually opt-in to this optimization.

@clerk/types@4.0.0-beta.22

Minor Changes

  • Improved error handling for registration and retrieval of passkeys. (#3025) by @panteliselef

    ClerkRuntimeError codes introduced:

    • passkey_not_supported
    • passkeys_pa_not_supported
    • passkey_invalid_rpID_or_domain
    • passkey_already_exists
    • passkey_operation_aborted
    • passkey_retrieval_cancelled
    • passkey_retrieval_failed
    • passkey_registration_cancelled
    • passkey_registration_failed

    Example usage:

    try{await__experimental_authenticateWithPasskey(...args);}catch(e){if(isClerkRuntimeError(e)){if(err.code==='passkey_operation_aborted'){
    ...
    }}}

## 4.0.0-beta.21
### 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.
- Experimental support for authenticating with a passkey. ([#2970](https://github.com/clerk/javascript/pull/2970)) by [@panteliselef](https://github.com/panteliselef)
Example usage: `await signIn.authenticateWithPasskey()`.
- Remove the unused appearance keys for accordion and breadcrumb elements. ([#2956](https://github.com/clerk/javascript/pull/2956)) by [@desiprisg](https://github.com/desiprisg)
- Allow users to authenticate with passkeys via the `<SignIn/>`. ([#3000](https://github.com/clerk/javascript/pull/3000)) by [@panteliselef](https://github.com/panteliselef)
## 4.0.0-beta.20
### 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
`clerk.user.__experimental__passkeys?.[0].update({name:'work laptop passkey'})`
- Delete a passkey
`clerk.user.__experimental__passkeys?.[0].delete()`
## 4.0.0-beta.19
### Minor Changes
- Experimental support for a user to register a passkey for their account. ([#2884](https://github.com/clerk/javascript/pull/2884)) by [@panteliselef](https://github.com/panteliselef)
Usage: `await clerk.user.__experimental__createPasskey()`
## 4.0.0-beta.18
### Minor Changes
- Pass environment into `sdkMetadata` in order to detect if production clerk-js is used by other sdks in dev mode. When it is log dev warning from clerk-js. ([#2802](https://github.com/clerk/javascript/pull/2802)) by [@panteliselef](https://github.com/panteliselef)
## 4.0.0-beta.17
### Patch Changes
- Fix the appearance.baseTheme type to accept array of BaseTheme ([#2887](https://github.com/clerk/javascript/pull/2887)) by [@anagstef](https://github.com/anagstef)
## 4.0.0-beta.16
### Patch Changes
- Update social provider `docsUrl` entries to point to new URLs ([#2817](https://github.com/clerk/javascript/pull/2817)) by [@kylemac](https://github.com/kylemac)
## 4.0.0-beta.15
### Patch Changes
- Rename beta-v5 to beta by [@nikosdouvlis](https://github.com/nikosdouvlis)
## 4.0.0-beta-v5.14
### Minor Changes
- Accept `skipInvitationScreen` as a prop from OrganizationSwitcher. ([#2713](https://github.com/clerk/javascript/pull/2713)) by [@panteliselef](https://github.com/panteliselef)
`skipInvitationScreen` hides the screen for sending invitations after an organization is created.
By default, Clerk will automatically hide the screen if the number of max allowed members is equal to 1
- Add support for X/Twitter v2 OAuth provider ([#2690](https://github.com/clerk/javascript/pull/2690)) by [@kostaspt](https://github.com/kostaspt)
### Patch Changes
- Fix using `ClerkPaginationRequest` type without passing a generic. ([#2714](https://github.com/clerk/javascript/pull/2714)) by [@dimkl](https://github.com/dimkl)
Before the fix the `ClerkPaginationRequest = any` and after the fix the `ClerkPaginationRequest = { limit, offset }`.
- Prevent Clerk component flickering when mounted in a Next.js app using App Router ([#2765](https://github.com/clerk/javascript/pull/2765)) by [@nikosdouvlis](https://github.com/nikosdouvlis)
## 4.0.0-beta-v5.13
### Major Changes
- Refresh the look and feel of the Clerk UI components ([#2622](https://github.com/clerk/javascript/pull/2622)) by [@anagstef](https://github.com/anagstef)
For more info, refer to the [upgrade guide from v4 to v5 in Clerk docs](https://clerk.com/docs/upgrade-guides/upgrading-from-v4-to-v5).
## 4.0.0-alpha-v5.12
### Minor Changes
- Remove MemberRole Type`MemberRole` would always include the old role keys `admin`, `member`, `guest_member`. ([#2388](https://github.com/clerk/javascript/pull/2388)) by [@panteliselef](https://github.com/panteliselef)
If developers still depend on them after the introduction of custom roles, the can provide them as their custom types for authorization.
```ts
// clerk.d.ts
export {};
interface ClerkAuthorization {
permission: '';
role: 'admin' | 'basic_member' | 'guest_member';
}
  • Update @clerk/clerk-js and @clerk/clerk-react to support the following examples: (#2412) by @dimkl

    Clerk.signOut({redirectUrl: '/'})<SignOutButtonredirectUrl='/'/>// uses Clerk.signOut({ redirectUrl: '/' })<UserButtonafterSignOutUrl='/after'/>// uses Clerk.signOut({ redirectUrl: '/after' })<ClerkProviderafterSignOutUrl='/after'/>// uses Clerk.signOut({ redirectUrl: '/after' })

@clerk/chrome-extension@1.0.0-beta.36

Patch Changes

  • Updated dependencies [afec17953]:
    • @clerk/clerk-js@5.0.0-beta.36
    • @clerk/clerk-react@5.0.0-beta.32

@clerk/clerk-expo@1.0.0-beta.36

Patch Changes

  • Updated dependencies [afec17953]:
    • @clerk/clerk-js@5.0.0-beta.36
    • @clerk/clerk-react@5.0.0-beta.32

@clerk/fastify@1.0.0-beta.36

Patch Changes

  • Updated dependencies [afec17953]:
    • @clerk/types@4.0.0-beta.22

gatsby-plugin-clerk@5.0.0-beta.36

Patch Changes

  • Updated dependencies []:
    • @clerk/clerk-react@5.0.0-beta.32

@clerk/nextjs@5.0.0-beta.36

Patch Changes

  • Adds telemetry event to clerkMiddleware initialization, passes publishableKey to createClerkClient() internally. (#3042) by @BRKalow

  • Updated dependencies []:

    • @clerk/clerk-react@5.0.0-beta.32

@clerk/clerk-react@5.0.0-beta.32

Patch Changes

  • Updated dependencies [afec17953]:
    • @clerk/types@4.0.0-beta.22

@clerk/remix@4.0.0-beta.36

Patch Changes

  • Updated dependencies []:
    • @clerk/clerk-react@5.0.0-beta.32

@clerk/themes@2.0.0-beta.7

Patch Changes

  • Updated dependencies [afec17953]:
    • @clerk/types@4.0.0-beta.22

@nikosdouvlis
nikosdouvlis merged commit 813fd3d into mainMar 25, 2024
@nikosdouvlis
nikosdouvlis deleted the changeset-release/main branch March 25, 2024 13:05
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@clerk-cookie@nikosdouvlis