Packages

@clerk/shared

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

Your version

3.0.0

major26 Feb 2025Where it was published

3.48.1 is the newest release of 3.x.

In short

3 breaking1 new1 fixed1 internal

  • Breaking

    Introduced a new retry utility function to replace the deprecated callWithRetry.

  • Breaking

    Removed the callWithRetry function and its associated tests.

  • Breaking

    Renamed runWithExponentialBackOff to retry for consistency.

Security

2 advisories affect 3.0.0; 3.47.5 fixes them

Release note

Major Changes

  • Breaking

    This new version introduces the following breaking changes:

    • Introduced a new retry utility function to replace the deprecated callWithRetry.

    • Removed the callWithRetry function and its associated tests.

    • Renamed runWithExponentialBackOff to retry for consistency.

    Migration steps:

    • Replace any usage of callWithRetry with the new retry function.

    • Update import statements from:

      import { callWithRetry } from '@clerk/shared/callWithRetry';

      to:

      import { retry } from '@clerk/shared/retry';
    • Replace any usage of runWithExponentialBackOff with retry.

    • Update import statements from:

      import { runWithExponentialBackOff } from '@clerk/shared/utils';

      to:

      import { retry } from '@clerk/shared/retry';

Minor Changes

  • Surface new pending session as a signed-in state

Patch Changes

  • Update TelemetryCollector to throttle events after they've been sampled.

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.