Packages

@clerk/types

4.101.20 · 27 Feb 2026MIT3.2M / weekRepositoryHomepagenpmAtom feed

Deprecated by its maintainers: This package is no longer supported. Please import types from @clerk/shared/types instead. See the upgrade guide for more info: https://clerk.com/docs/guides/development/upgrading/upgrade-guides/core-3What to use instead
Your version

3.60.0

13 Dec 2023Where it was published

3.65.5 is the newest release of 3.x.

npm marks 3.60.0 as deprecated: This package is no longer supported. Please import types from @clerk/shared/types instead. See the upgrade guide for more info: clerk.com/docs/guides/development/upgrading/upg…

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 experimental tags and prefixes

    • Drop some from the has utility and Protect. Protect now accepts a condition prop where a function is expected with the has being exposed as the param.

    • Protect can now be used without required props. In this case behaves as <SignedIn>, if no authorization props are passed.

    • has will throw an error if neither permission or role is 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-found component set by the developer

      • inside a route handler it will return empty response body with a 404 status code

Patch Changes

  • Adjust ZxcvbnResult interface to use current feedback.warning type as used in the upstream @zxcvbn-ts/core library.

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.