@clerk/shared
4.45.1 · 14 Nov 2026MIT11.8M / weekRepositorynpmAtom feed
Your version
2.22.1 is the newest release of 2.x.
In short
2 fixed1 internal
Security
1 advisory affects 2.20.17; 2.22.1 fixes them
- CriticalOfficial Clerk JavaScript SDKs: Middleware-based route protection bypassGHSA-vqx2-fgx2-5wq9 · 16 Apr 2026Fixed in 2.22.1
Release note
Patch Changes
Previously the
createPathMatcher()function was re-implemented both in@clerk/astroand@clerk/nextjs, this PR moves this logic to@clerk/shared.You can use it like so:
import { createPathMatcher } from '@clerk/shared/pathMatcher';Improve JSDoc comments to provide better IntelliSense in your IDE
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.