Packages

@clerk/shared

4.45.1 · 14 Nov 2026MIT11.8M / weekRepositorynpmAtom feed

Your version

2.21.0

10 Feb 2025Where it was published

2.22.1 is the newest release of 2.x.

In short

1 new1 fixed1 internal

Security

1 advisory affects 2.21.0; 2.22.1 fixes them

Release note

Minor Changes

  • Introduce unified environment variable handling across all supported platforms

    Usage:

    import { getEnvVariable } from '@clerk/shared/getEnvVariable';
    
    const publishableKey = getEnvVariable('CLERK_PUBLISHABLE_KEY');

Patch Changes

  • Small JSDoc and type improvements

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.