Packages

@clerk/express

2.1.90 · 14 Nov 2026MIT591.3k / weekRepositoryHomepagenpmAtom feed

Your version

2.0.0

major3 Mar 2026Where it was published

2.1.97 is the newest release of 2.x.

In short

3 breaking2 new1 fixed2 internal

  • Breaking

    Remove deprecated enableHandshake option and req.auth object-access pattern.

  • Breaking

    Require Node.js 20.9.0 in all packages

  • Breaking

    Remove clerkJSUrl, clerkJSVersion, clerkUIUrl, and clerkUIVersion props from all SDKs. To pin a specific version of @clerk/clerk-js, import the Clerk constructor from @clerk/clerk-js and pass it to ClerkProvider via the Clerk prop. To pin a specific version of @clerk/ui, import ui from @clerk/ui and pass it via the ui prop. This bundles the modules directly with your application instead of loading them from the CDN.

Security

Release note

Major Changes

  • Breaking

    Remove deprecated enableHandshake option and req.auth object-access pattern.

    enableHandshake removed

    This option had no effect and was previously deprecated. Remove it from your clerkMiddleware call:

    // Before
    app.use(clerkMiddleware({ enableHandshake: false }));
    
    // After
    app.use(clerkMiddleware());

    req.auth must now be called as a function

    Accessing req.auth as a plain object (legacy clerk-sdk-node style) no longer works. Use getAuth() instead:

    // Before
    const { userId } = req.auth;
    
    // After
    const { userId } = getAuth(req);
  • Breaking

    Require Node.js 20.9.0 in all packages

  • Breaking

    Remove clerkJSUrl, clerkJSVersion, clerkUIUrl, and clerkUIVersion props from all SDKs. To pin a specific version of @clerk/clerk-js, import the Clerk constructor from @clerk/clerk-js and pass it to ClerkProvider via the Clerk prop. To pin a specific version of @clerk/ui, import ui from @clerk/ui and pass it via the ui prop. This bundles the modules directly with your application instead of loading them from the CDN.

Minor Changes

  • Add Frontend API proxy support via frontendApiProxy option in clerkMiddleware

  • Add /types subpath export to re-export types from @clerk/shared/types along with SDK-specific types. This allows importing Clerk types directly from the SDK package (e.g., import type { UserResource } from '@clerk/react/types') without needing to install @clerk/types as a separate dependency.

Patch Changes

  • Wire clerkUIVersion option through all framework packages

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.