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.50.0

28 Aug 2023Where it was published

3.65.5 is the newest release of 3.x.

npm marks 3.50.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

13 new5 fixed

Release note

Minor Changes

  • Introducing validatePassword for SignIn and SignUp resources

    • Validate a password based on the instance's configuration set in Password Policies in Dashboard

  • Introduce a new resource called OrganizationSuggestion along with retrieve() & accept() methods

    Also make available the user's suggestions from the useOrganizationList hook

  • Introduces userInvitations from useOrganizationList

    userInvitations is a paginated list of data. It can be used to create Paginated tables or Infinite lists.

  • Introduce hasImage in User / Organization / Session resources

  • Improve redirects on OAuth callback. Now, if you try to sign up with a provider that allows unverified accounts, it will

    navigate to the appropriate change when needed, fixing the broken flow.

  • Introduce logoLinkUrl prop in appearance.layout

    A new logoLinkUrl prop has been added to appearance.layout and used in ApplicationLogo to change the href of the link.
    By default, the logo link url will be the Home URL you've set in the Clerk Dashboard.

Patch Changes

  • Introduces a new resource called OrganizationMembership

    • useOrganization has been updated in order to return a list of domain with the above type

  • Introduces Membership Requests in <OrganizationProfile />

    • This is a list of users that have requested to join the active organization

  • Updates signature of OrganizationMembership.retrieve to support backwards compatibility while allowing using the new paginated responses.

    • userMemberships is now also part of the returned values of useOrganizationList

  • Introduces the accept method in UserOrganizationInvitation class

  • Display a notification counter for organization invitations in OrganizationSwitcher

  • Introduces a new resource called OrganizationDomain

    • useOrganization has been updated in order to return a list of domain with the above type

  • Introduces domains and invitations in <OrganizationProfile />

    • The "Members" page now accommodates Domain and Individual invitations

    • The "Settings" page allows for the addition, edit and removal of a domain

  • A OrganizationMembershipRequest can now be rejected

    • New OrganizationMembershipRequest.reject method alongside accept

    • As an organization admin, navigate to Organization Profile > Members > Requests. You can now reject a request from the table.

  • Introduces an invitation list within <OrganizationSwitcher/>

    • Users can accept the invitation that is sent to them

  • When updating enrollment mode of a domain uses can now delete any pending invitations or suggestions.

  • Construct urls based on context in <OrganizationSwitcher/>

    • Deprecate afterSwitchOrganizationUrl

    • Introduce afterSelectOrganizationUrl & afterSelectPersonalUrl

    afterSelectOrganizationUrl accepts

    • Full URL -> 'clerk.com'

    • relative path -> '/organizations'

    • relative path -> with param '/organizations/:id'

    • function that returns a string -> (org) => /org/${org.slug}
      afterSelectPersonalUrl accepts

    • Full URL -> 'clerk.com'

    • relative path -> '/users'

    • relative path -> with param '/users/:username'

    • function that returns a string -> (user) => /users/${user.id}

  • Introduces list of suggestions within <OrganizationSwitcher/>

    • Users can request to join a suggested organization

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.