Packages

@clerk/vue

2.5.22 · 17 Nov 2026MIT65.9k / weekRepositoryHomepagenpmAtom feed

Your version

1.2.1

18 Feb 2025Where it was published

1.17.27 is the newest release of 1.x.

In short

2 fixed2 internal

Security

1 advisory affects 1.2.1; 1.17.21 fixes them

Release note

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.

  • Re-export error handling utilities from @clerk/shared

    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>

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.