github clerk/javascript @clerk/vue@1.2.1

latest releases: @clerk/types@4.92.0, @clerk/clerk-js@5.99.0, @clerk/fastify@2.4.37...
8 months ago

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 @wobsoriano

    Example:

    <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

Don't miss a new javascript release

NewReleases is sending notifications on new releases.