Releases: clerk/javascript
@clerk/vue@1.2.1
Patch Changes
-
Previously, the
getCurrentOrganizationMembership()
function was duplicated in both@clerk/vue
and@clerk/shared/react
. This change moves the function to@clerk/shared/organization
. (#5168) by @wobsoriano -
Re-export error handling utilities from
@clerk/shared
(#5155) by @wobsorianoExample:
<script setup lang="ts"> import { useSignIn } from '@clerk/vue'; import { isClerkAPIResponseError } from '@clerk/vue/errors'; // ... form state refs and other setup ... const { signIn } = useSignIn(); const handleSubmit = async () => { try { const signInAttempt = await signIn.value.create({ identifier: email.value, password: password.value, }); // ... handle successful sign in ... } catch (err) { // Type guard to safely handle Clerk API errors if (isClerkAPIResponseError(err)) { errors.value = err.errors; // err.errors is properly typed as ClerkAPIError[] } } }; </script> <template> <!-- Form template here --> </template>
-
Updated dependencies [
d76c4699990b8477745c2584b1b98d5c92f9ace6
,a9b0087fca3f427f65907b358d9b5bc0c95921d8
,92d17d7c087470b262fa5407cb6720fe6b17d333
]:- @clerk/shared@2.22.0
- @clerk/types@4.46.1
@clerk/ui@0.3.24
Patch Changes
- Updated dependencies [
d76c4699990b8477745c2584b1b98d5c92f9ace6
,a9b0087fca3f427f65907b358d9b5bc0c95921d8
,92d17d7c087470b262fa5407cb6720fe6b17d333
,4001e0388a705e6dbdbb82eaaa494a688a1c6e9f
]:- @clerk/shared@2.22.0
- @clerk/types@4.46.1
- @clerk/localizations@3.10.7
- @clerk/elements@0.22.23
@clerk/types@4.46.1
@clerk/themes@2.2.19
Patch Changes
- Updated dependencies [
a9b0087fca3f427f65907b358d9b5bc0c95921d8
]:- @clerk/types@4.46.1
@clerk/testing@1.4.23
Patch Changes
-
Fix captcha triggering on Cypress tests (#5182) by @anagstef
-
Updated dependencies [
d76c4699990b8477745c2584b1b98d5c92f9ace6
,a9b0087fca3f427f65907b358d9b5bc0c95921d8
,92d17d7c087470b262fa5407cb6720fe6b17d333
]:- @clerk/shared@2.22.0
- @clerk/types@4.46.1
- @clerk/backend@1.24.2
@clerk/tanstack-start@0.10.0
Minor Changes
-
Introduce
EmailLinkErrorCodeStatus
to support users in custom flows and markEmailLinkErrorCode
as deprecated. (#5151) by @alexcarpenter- import { EmailLinkErrorCode } from '@clerk/tanstack-start/errors' + import { EmailLinkErrorCodeStatus } from '@clerk/tanstack-start/errors'
PR #5142
Patch Changes
- Updated dependencies [
d76c4699990b8477745c2584b1b98d5c92f9ace6
,a9b0087fca3f427f65907b358d9b5bc0c95921d8
,92d17d7c087470b262fa5407cb6720fe6b17d333
,30f6f3808e9b3778d5a9eb275780f94f9e9c7651
]:- @clerk/shared@2.22.0
- @clerk/clerk-react@5.23.0
- @clerk/types@4.46.1
- @clerk/backend@1.24.2
@clerk/shared@2.22.0
Minor Changes
-
Introduce
EmailLinkErrorCodeStatus
to support users in custom flows and markEmailLinkErrorCode
as deprecated. (#5142) by @alexcarpenter- import { EmailLinkErrorCode } from '@clerk/nextjs/errors' + import { EmailLinkErrorCodeStatus } from '@clerk/nextjs/errors'
-
Support passing additional properties to
eventPrebuiltComponentMounted()
, and ensurewithSignUp
is collected onSignIn
mount. (#5150) by @brkalow
Patch Changes
-
Previously, the
getCurrentOrganizationMembership()
function was duplicated in both@clerk/vue
and@clerk/shared/react
. This change moves the function to@clerk/shared/organization
. (#5168) by @wobsoriano -
Updated dependencies [
a9b0087fca3f427f65907b358d9b5bc0c95921d8
]:- @clerk/types@4.46.1
@clerk/remix@4.5.0
Minor Changes
-
Introduce
EmailLinkErrorCodeStatus
to support users in custom flows and markEmailLinkErrorCode
as deprecated. (#5142) by @alexcarpenter- import { EmailLinkErrorCode } from '@clerk/nextjs/errors' + import { EmailLinkErrorCodeStatus } from '@clerk/nextjs/errors'
Patch Changes
- Updated dependencies [
d76c4699990b8477745c2584b1b98d5c92f9ace6
,a9b0087fca3f427f65907b358d9b5bc0c95921d8
,92d17d7c087470b262fa5407cb6720fe6b17d333
,30f6f3808e9b3778d5a9eb275780f94f9e9c7651
]:- @clerk/shared@2.22.0
- @clerk/clerk-react@5.23.0
- @clerk/types@4.46.1
- @clerk/backend@1.24.2
@clerk/react-router@1.1.0
Minor Changes
-
Introduce
EmailLinkErrorCodeStatus
to support users in custom flows and markEmailLinkErrorCode
as deprecated. (#5142) by @alexcarpenter- import { EmailLinkErrorCode } from '@clerk/nextjs/errors' + import { EmailLinkErrorCodeStatus } from '@clerk/nextjs/errors'
Patch Changes
- Updated dependencies [
d76c4699990b8477745c2584b1b98d5c92f9ace6
,a9b0087fca3f427f65907b358d9b5bc0c95921d8
,92d17d7c087470b262fa5407cb6720fe6b17d333
,30f6f3808e9b3778d5a9eb275780f94f9e9c7651
]:- @clerk/shared@2.22.0
- @clerk/clerk-react@5.23.0
- @clerk/types@4.46.1
- @clerk/backend@1.24.2
@clerk/nuxt@1.2.0
Minor Changes
-
Introduce
getAuth()
helper to retrieve authentication state from the event object. (#5158) by @wobsorianoExample:
import { getAuth } from '@clerk/nuxt/server'; export default eventHandler(event => { const { userId } = getAuth(event); if (!userId) { // User is not authenticated } });
Patch Changes
-
Re-export error handling utilities from
@clerk/shared
(#5155) by @wobsorianoExample:
<script setup lang="ts"> import { useSignIn } from '@clerk/vue'; import { isClerkAPIResponseError } from '@clerk/vue/errors'; // ... form state refs and other setup ... const { signIn } = useSignIn(); const handleSubmit = async () => { try { const signInAttempt = await signIn.value.create({ identifier: email.value, password: password.value, }); // ... handle successful sign in ... } catch (err) { // Type guard to safely handle Clerk API errors if (isClerkAPIResponseError(err)) { errors.value = err.errors; // err.errors is properly typed as ClerkAPIError[] } } }; </script> <template> <!-- Form template here --> </template>
-
Updated dependencies [
d76c4699990b8477745c2584b1b98d5c92f9ace6
,a9b0087fca3f427f65907b358d9b5bc0c95921d8
,92d17d7c087470b262fa5407cb6720fe6b17d333
,62200fad4431d625fcb4bf2a521e4650eb615381
]:- @clerk/shared@2.22.0
- @clerk/types@4.46.1
- @clerk/vue@1.2.1
- @clerk/backend@1.24.2