@clerk/types
4.101.20 · 27 Feb 2026MIT3.2M / weekRepositoryHomepagenpmAtom feed
3.65.5 is the newest release of 3.x.
In short
1 new1 fixed
Release note
Minor Changes
Introduce Protect for authorization.
Changes in public APIs:
Rename Gate to Protect
Support for permission checks. (Previously only roles could be used)
Remove the
experimentaltags and prefixesDrop
somefrom thehasutility and Protect. Protect now accepts aconditionprop where a function is expected with thehasbeing exposed as the param.Protect can now be used without required props. In this case behaves as
<SignedIn>, if no authorization props are passed.haswill throw an error if neitherpermissionorroleis passed.auth().protect()for Nextjs App Router. Allow per page protection in app router. This utility will automatically throw a 404 error if user is not authorized or authenticated.inside a page or layout file it will render the nearest
not-foundcomponent set by the developerinside a route handler it will return empty response body with a 404 status code
Patch Changes
Adjust
ZxcvbnResultinterface to use currentfeedback.warningtype as used in the upstream@zxcvbn-ts/corelibrary.
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.