createPathMatcher deprecated; use native routing instead
@clerk/shared@4.25.1
1 enhancementThis release1 enhancementImprovements to existing featuresAI-tallied from the release notes
Patch Changes
- Deprecate
createPathMatcher()and its pattern types (PathMatcherParam,PathPattern,WithPathSegmentWildcard). Pattern-based path matching is being phased out along with the framework-levelcreateRouteMatcher()helpers and will be removed in the next major version. Use your framework's native routing primitives to decide which paths to protect instead. (#9094) by @jacekradko
Fetched July 9, 2026

