Packages

@clerk/shared

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

Your version

2.0.1

1 May 2024Where it was published

2.22.1 is the newest release of 2.x.

In short

1 fixed2 changed

Release note

Patch Changes

  • Internal change to add client-side caching to Clerk's telemetry. This prevents event flooding in frequently executed code paths, such as for React hooks or components. Gracefully falls back to the old behavior if e.g. localStorage is not available. As such, no public API changes and user changes are required.

  • The following are all internal changes and not relevant to any end-user:

    • Rename the existing eventComponentMounted function inside /telemetry to eventPrebuiltComponentMounted. This better reflects that its props argument will be filtered for a relevant list for Clerk's prebuilt/all-in-one components.

    • Reuse the now freed up eventComponentMounted name to create a new helper function that accepts a flat object for its props but doesn't filter any. This is useful for components that are not prebuilt.

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.