@clerk/upgrade 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/guide-generators/text-generation.js +109 -0
- package/dist/guide-generators/v5/backend/__output.mdx +580 -0
- package/dist/guide-generators/v5/backend/import-moves.mdx +3 -0
- package/dist/guide-generators/v5/backend/import-paths.mdx +3 -0
- package/dist/guide-generators/v5/backend/index.js +22 -0
- package/dist/guide-generators/v5/backend/intro.mdx +3 -0
- package/dist/guide-generators/v5/chrome-extension/index.js +19 -0
- package/dist/guide-generators/v5/chrome-extension/intro.mdx +3 -0
- package/dist/guide-generators/v5/chromeExtension/__output.mdx +409 -0
- package/dist/guide-generators/v5/chromeExtension/index.js +24 -0
- package/dist/guide-generators/v5/chromeExtension/intro.mdx +3 -0
- package/dist/guide-generators/v5/expo/__output.mdx +455 -0
- package/dist/guide-generators/v5/expo/index.js +24 -0
- package/dist/guide-generators/v5/expo/intro.mdx +3 -0
- package/dist/guide-generators/v5/fastify/__output.mdx +373 -0
- package/dist/guide-generators/v5/fastify/index.js +22 -0
- package/dist/guide-generators/v5/fastify/intro.mdx +3 -0
- package/dist/guide-generators/v5/gatsby/__output.mdx +472 -0
- package/dist/guide-generators/v5/gatsby/index.js +24 -0
- package/dist/guide-generators/v5/gatsby/intro.mdx +3 -0
- package/dist/guide-generators/v5/generate-all.js +0 -0
- package/dist/guide-generators/v5/generate-all.sh +16 -0
- package/dist/guide-generators/v5/generate.js +263 -0
- package/dist/guide-generators/v5/intro.mdx +15 -0
- package/dist/guide-generators/v5/js/__output.mdx +528 -0
- package/dist/guide-generators/v5/js/index.js +27 -0
- package/dist/guide-generators/v5/js/intro.mdx +3 -0
- package/dist/guide-generators/v5/js/pagination-args.mdx +3 -0
- package/dist/guide-generators/v5/js/pagination-return.mdx +3 -0
- package/dist/guide-generators/v5/nextjs/__output.mdx +1091 -0
- package/dist/guide-generators/v5/nextjs/after-sign-x-handling.mdx +10 -0
- package/dist/guide-generators/v5/nextjs/deprecation-removals.mdx +9 -0
- package/dist/guide-generators/v5/nextjs/import-changes.mdx +98 -0
- package/dist/guide-generators/v5/nextjs/index.js +24 -0
- package/dist/guide-generators/v5/nextjs/intro.mdx +3 -0
- package/dist/guide-generators/v5/nextjs/middleware-changes.mdx +251 -0
- package/dist/guide-generators/v5/nextjs/nextjs-versio.mdx +34 -0
- package/dist/guide-generators/v5/nextjs/nextjs-version.mdx +6 -0
- package/dist/guide-generators/v5/nextjs/retheme-changes.mdx +10 -0
- package/dist/guide-generators/v5/nextjs/version-requirements.mdx +34 -0
- package/dist/guide-generators/v5/node/__output.mdx +511 -0
- package/dist/guide-generators/v5/node/index.js +22 -0
- package/dist/guide-generators/v5/node/intro.mdx +3 -0
- package/dist/guide-generators/v5/node/node-setters-removals.mdx +34 -0
- package/dist/guide-generators/v5/overview/__output.mdx +37 -0
- package/dist/guide-generators/v5/overview/index.js +12 -0
- package/dist/guide-generators/v5/overview/intro.mdx +31 -0
- package/dist/guide-generators/v5/overview/per-sdk.mdx +16 -0
- package/dist/guide-generators/v5/per-sdk.mdx +16 -0
- package/dist/guide-generators/v5/prepare.mdx +135 -0
- package/dist/guide-generators/v5/react/__output.mdx +679 -0
- package/dist/guide-generators/v5/react/hof-removals.mdx +3 -0
- package/dist/guide-generators/v5/react/index.js +24 -0
- package/dist/guide-generators/v5/react/intro.mdx +3 -0
- package/dist/guide-generators/v5/redesigned-components.mdx +11 -0
- package/dist/guide-generators/v5/remix/__output.mdx +401 -0
- package/dist/guide-generators/v5/remix/index.js +24 -0
- package/dist/guide-generators/v5/remix/intro.mdx +3 -0
- package/dist/guide-generators/v5/retheme/__output.mdx +437 -0
- package/dist/guide-generators/v5/retheme/index.js +24 -0
- package/dist/guide-generators/v5/retheme/intro.mdx +9 -0
- package/dist/guide-generators/v5/shared/after-sign-x-handling.mdx +10 -0
- package/dist/guide-generators/v5/shared/cli.mdx +22 -0
- package/dist/guide-generators/v5/shared/deprecation-removals.mdx +6 -0
- package/dist/guide-generators/v5/shared/hof-removals.mdx +3 -0
- package/dist/guide-generators/v5/shared/image-url.mdx +3 -0
- package/dist/guide-generators/v5/shared/node-setters-removals.mdx +34 -0
- package/dist/guide-generators/v5/shared/node-version.mdx +3 -0
- package/dist/guide-generators/v5/shared/orgs-claim.mdx +50 -0
- package/dist/guide-generators/v5/shared/pagination-args.mdx +3 -0
- package/dist/guide-generators/v5/shared/pagination-return.mdx +3 -0
- package/dist/guide-generators/v5/shared/path-routing.mdx +57 -0
- package/dist/guide-generators/v5/shared/prepare.mdx +10 -0
- package/dist/guide-generators/v5/shared/react-version.mdx +20 -0
- package/dist/guide-generators/v5/shared/redesign-preview.mdx +5 -0
- package/dist/guide-generators/v5/shared/update-v5.mdx +17 -0
- package/dist/guide-generators/v5/shared/update-version.mdx +18 -0
- package/dist/guide-generators/v5/single-page-old.js +192 -0
- package/dist/guide-generators/v5-guides/deprecation-removals.mdx +7 -0
- package/dist/guide-generators/v5-guides/generate.js +263 -0
- package/dist/guide-generators/v5-guides/hof-removals.mdx +3 -0
- package/dist/guide-generators/v5-guides/intro.mdx +15 -0
- package/dist/guide-generators/v5-guides/nextjs/after-sign-x-handling.mdx +10 -0
- package/dist/guide-generators/v5-guides/nextjs/deprecation-removals.mdx +9 -0
- package/dist/guide-generators/v5-guides/nextjs/import-changes.mdx +98 -0
- package/dist/guide-generators/v5-guides/nextjs/index.js +80 -0
- package/dist/guide-generators/v5-guides/nextjs/intro.mdx +21 -0
- package/dist/guide-generators/v5-guides/nextjs/middleware-changes.mdx +251 -0
- package/dist/guide-generators/v5-guides/nextjs/retheme-changes.mdx +10 -0
- package/dist/guide-generators/v5-guides/nextjs/version-requirements.mdx +34 -0
- package/dist/guide-generators/v5-guides/node-setters-removals.mdx +34 -0
- package/dist/guide-generators/v5-guides/pagination-args.mdx +3 -0
- package/dist/guide-generators/v5-guides/pagination-return.mdx +3 -0
- package/dist/guide-generators/v5-guides/path-routing.mdx +50 -0
- package/dist/guide-generators/v5-guides/per-sdk.mdx +16 -0
- package/dist/guide-generators/v5-guides/prepare.mdx +135 -0
- package/dist/guide-generators/v5-guides/redesign-preview.mdx +5 -0
- package/dist/guide-generators/v5-guides/redesigned-components.mdx +11 -0
- package/dist/guide-generators/v5-guides/remix/index.js +15 -0
- package/dist/guide-generators/v5-guides/remix/intro.mdx +1 -0
- package/dist/guide-generators/v5-guides/remix/output.mdx +362 -0
- package/dist/guide-generators/v5-guides/shared/breaking-changes-intro.mdx +0 -0
- package/dist/guide-generators/v5-guides/shared/cli.mdx +21 -0
- package/dist/guide-generators/v5-guides/shared/deprecation-removals.mdx +7 -0
- package/dist/guide-generators/v5-guides/shared/hof-removals.mdx +3 -0
- package/dist/guide-generators/v5-guides/shared/node-setters-removals.mdx +34 -0
- package/dist/guide-generators/v5-guides/shared/node-version.mdx +3 -0
- package/dist/guide-generators/v5-guides/shared/pagination-args.mdx +3 -0
- package/dist/guide-generators/v5-guides/shared/pagination-return.mdx +3 -0
- package/dist/guide-generators/v5-guides/shared/path-routing.mdx +50 -0
- package/dist/guide-generators/v5-guides/shared/prepare.mdx +7 -0
- package/dist/guide-generators/v5-guides/shared/react-version.mdx +19 -0
- package/dist/guide-generators/v5-guides/shared/redesign-preview.mdx +5 -0
- package/dist/guide-generators/v5-guides/shared/update-v5.mdx +17 -0
- package/dist/guide-generators/v5-guides/shared/upgrade-v5.mdx +17 -0
- package/dist/scan.js +4 -2
- package/dist/util/generate-nextjs-migration-guide.js +0 -0
- package/dist/util/generate-nextjs-v5-migration-guide.js +0 -0
- package/dist/util/load-change.js +1 -0
- package/dist/util/text-generation.js +29 -0
- package/dist/util/v5-guide/deprecation-removals.mdx +7 -0
- package/dist/util/v5-guide/generate.js +200 -0
- package/dist/util/v5-guide/getting-up-to-date.mdx +114 -0
- package/dist/util/v5-guide/hof-removals.mdx +3 -0
- package/dist/util/v5-guide/intro.mdx +15 -0
- package/dist/util/v5-guide/node-setters-removals.mdx +34 -0
- package/dist/util/v5-guide/pagination-args.mdx +3 -0
- package/dist/util/v5-guide/pagination-return.mdx +3 -0
- package/dist/util/v5-guide/path-routing.mdx +50 -0
- package/dist/util/v5-guide/per-sdk.mdx +16 -0
- package/dist/util/v5-guide/prepare.mdx +135 -0
- package/dist/util/v5-guide/redesign-preview.mdx +5 -0
- package/dist/util/v5-guide/redesigned-components.mdx +11 -0
- package/dist/util/v5-guide/remix.mdx +0 -0
- package/dist/util/v5-guides/deprecation-removals.mdx +7 -0
- package/dist/util/v5-guides/generate.js +200 -0
- package/dist/util/v5-guides/hof-removals.mdx +3 -0
- package/dist/util/v5-guides/intro.mdx +15 -0
- package/dist/util/v5-guides/nextjs/after-sign-x-handling.mdx +10 -0
- package/dist/util/v5-guides/nextjs/deprecation-removals.mdx +9 -0
- package/dist/util/v5-guides/nextjs/generate.js +80 -0
- package/dist/util/v5-guides/nextjs/import-changes.mdx +98 -0
- package/dist/util/v5-guides/nextjs/index.js +0 -0
- package/dist/util/v5-guides/nextjs/intro.mdx +21 -0
- package/dist/util/v5-guides/nextjs/middleware-changes.mdx +251 -0
- package/dist/util/v5-guides/nextjs/retheme-changes.mdx +10 -0
- package/dist/util/v5-guides/nextjs/version-requirements.mdx +34 -0
- package/dist/util/v5-guides/node-setters-removals.mdx +34 -0
- package/dist/util/v5-guides/pagination-args.mdx +3 -0
- package/dist/util/v5-guides/pagination-return.mdx +3 -0
- package/dist/util/v5-guides/path-routing.mdx +50 -0
- package/dist/util/v5-guides/per-sdk.mdx +16 -0
- package/dist/util/v5-guides/prepare.mdx +135 -0
- package/dist/util/v5-guides/redesign-preview.mdx +5 -0
- package/dist/util/v5-guides/redesigned-components.mdx +11 -0
- package/dist/util/v5-guides/remix/index.js +5 -0
- package/dist/util/v5-nextjs-guide/after-sign-x-handling.mdx +10 -0
- package/dist/util/v5-nextjs-guide/deprecation-removals.mdx +9 -0
- package/dist/util/v5-nextjs-guide/generate-nextjs-v5-migration-guide.js +0 -0
- package/dist/util/v5-nextjs-guide/generate.js +80 -0
- package/dist/util/v5-nextjs-guide/import-changes.mdx +98 -0
- package/dist/util/v5-nextjs-guide/intro.md +0 -0
- package/dist/util/v5-nextjs-guide/intro.mdx +21 -0
- package/dist/util/v5-nextjs-guide/middleware-changes.mdx +251 -0
- package/dist/util/v5-nextjs-guide/retheme-changes.mdx +11 -0
- package/dist/util/v5-nextjs-guide/version-requirements.mdx +34 -0
- package/dist/versions/v5/backend/appearance-organizationpreview-organizationswitcher.md +9 -0
- package/dist/versions/v5/backend/authenticaterequest-params-change.md +1 -0
- package/dist/versions/v5/backend/clockskewinseconds.md +1 -0
- package/dist/versions/v5/backend/constants-import-path-move.md +1 -0
- package/dist/versions/v5/backend/createauthenticaterequest-import-path-move.md +1 -0
- package/dist/versions/v5/backend/createclerkclient-apikey.md +1 -0
- package/dist/versions/v5/backend/createclerkclient-frontendapi.md +1 -0
- package/dist/versions/v5/backend/createisomorphicrequest-import-path-move.md +1 -0
- package/dist/versions/v5/backend/createisomorphicrequest-removed.md +1 -0
- package/dist/versions/v5/backend/decodejwt-import-path-move.md +1 -0
- package/dist/versions/v5/backend/externalaccount-picture.md +1 -0
- package/dist/versions/v5/backend/externalaccountjson-avatarurl.md +1 -0
- package/dist/versions/v5/backend/getorganizationinvitationlist-return-signature.md +1 -0
- package/dist/versions/v5/backend/getorganizationinvitationlist-return-type-change.md +17 -0
- package/dist/versions/v5/backend/getorganizationlist-return-signature.md +1 -0
- package/dist/versions/v5/backend/getorganizationmembershiplist-return-signature.md +1 -0
- package/dist/versions/v5/backend/httpoptions-removed.md +2 -1
- package/dist/versions/v5/backend/organizationjson-logourl.md +1 -0
- package/dist/versions/v5/backend/organizationmembershippublicuserdatajson-profileimageurl.md +1 -0
- package/dist/versions/v5/backend/redirect-import-path-move.md +1 -0
- package/dist/versions/v5/backend/signjwt-import-path-move.md +1 -0
- package/dist/versions/v5/backend/signjwterror-import-move.md +1 -0
- package/dist/versions/v5/backend/tokenverificationerror-import-move.md +1 -0
- package/dist/versions/v5/backend/tokenverificationerroraction-import-move.md +1 -0
- package/dist/versions/v5/backend/tokenverificationerrorcode-import-move.md +1 -0
- package/dist/versions/v5/backend/tokenverificationerrorreason-import-move.md +1 -0
- package/dist/versions/v5/backend/userjson-profileimageurl.md +1 -0
- package/dist/versions/v5/backend/verifyjwt-import-path-move.md +1 -0
- package/dist/versions/v5/chromeExtension/clerkprovider-tokencache.md +8 -10
- package/dist/versions/v5/common/aftersigninurl-behavior-change-2.md +1 -0
- package/dist/versions/v5/common/aftersignouturl-behavior-change.md +1 -0
- package/dist/versions/v5/common/aftersignupurl-behavior-change.md +1 -0
- package/dist/versions/v5/common/afterswitchorganizationurl.md +1 -0
- package/dist/versions/v5/common/alternativemethods-backlink.md +1 -0
- package/dist/versions/v5/common/api-key-to-secret-key.md +1 -0
- package/dist/versions/v5/common/appearance-organizationpreview-organizationswitcher.md +1 -0
- package/dist/versions/v5/common/button-to-organizationlistcreateorganizationactionbutton.md +1 -0
- package/dist/versions/v5/common/card-changes.md +3 -2
- package/dist/versions/v5/common/changed-localization-keys.md +121 -120
- package/dist/versions/v5/common/clerkprovider-frontendapi-2.md +1 -0
- package/dist/versions/v5/common/clerkprovideroptionswrapper-dropped.md +1 -0
- package/dist/versions/v5/common/connected-accounts-dropdown.md +1 -0
- package/dist/versions/v5/common/emaillinkerrorcode-import-change.md +1 -0
- package/dist/versions/v5/common/externalaccount-avatarurl.md +7 -0
- package/dist/versions/v5/common/externalaccount-picture.md +7 -0
- package/dist/versions/v5/common/externalaccountjson-avatarurl.md +7 -0
- package/dist/versions/v5/common/frontend-api-to-publishable-key.md +1 -0
- package/dist/versions/v5/common/getorganizationinvitationlist-return-signature.md +15 -0
- package/dist/versions/v5/common/getorganizationinvitationlist-return-type-change.md +8 -5
- package/dist/versions/v5/common/getorganizationlist-return-signature.md +15 -0
- package/dist/versions/v5/common/getorganizationlist-return-type-change.md +2 -1
- package/dist/versions/v5/common/getorganizationmembershiplist-return-type-change.md +2 -1
- package/dist/versions/v5/common/isclerkapiresponserror-import-change.md +1 -0
- package/dist/versions/v5/common/isemaillinkerror-import-change.md +1 -0
- package/dist/versions/v5/common/isknownerror-import-change.md +1 -0
- package/dist/versions/v5/common/ismetamaskerror-import-change.md +6 -5
- package/dist/versions/v5/common/mfa-dropdown.md +1 -0
- package/dist/versions/v5/common/min-react-version.md +2 -0
- package/dist/versions/v5/common/multisessionappsupport-import-change.md +1 -1
- package/dist/versions/v5/common/navigate-to-routerpush-routerreplace.md +1 -0
- package/dist/versions/v5/common/new-localization-keys.md +121 -120
- package/dist/versions/v5/common/organization-create-string.md +12 -0
- package/dist/versions/v5/common/organization-getdomains-arguments-change.md +1 -0
- package/dist/versions/v5/common/organization-getinvitations-arguments-changed.md +1 -0
- package/dist/versions/v5/common/organization-getmembershiprequests-arguments-changed.md +1 -0
- package/dist/versions/v5/common/organization-getmemberships-arguments-changed.md +1 -0
- package/dist/versions/v5/common/organization-getpendinginvitations.md +11 -0
- package/dist/versions/v5/common/organization-getroles-arguments-changed.md +1 -0
- package/dist/versions/v5/common/organization-logourl.md +8 -0
- package/dist/versions/v5/common/organizationmembershippublicuserdata-profileimageurl.md +7 -0
- package/dist/versions/v5/common/organizationprofile-settings.md +1 -0
- package/dist/versions/v5/common/organizationswitcherpopoveractionbuttontext-removed.md +1 -0
- package/dist/versions/v5/common/remove-identitypreview-avatar.md +1 -0
- package/dist/versions/v5/common/remove-socialbuttonsblockbuttonarrow.md +1 -0
- package/dist/versions/v5/common/removed-localization-keys.md +74 -73
- package/dist/versions/v5/common/user-getorganizationinvitations-arguments-chanaged.md +1 -0
- package/dist/versions/v5/common/user-getorganizationinvitations-arguments-changed.md +16 -0
- package/dist/versions/v5/common/user-getorganizationmemberships-arguments-chanaged.md +1 -0
- package/dist/versions/v5/common/user-getorganizationmemberships-arguments-changed.md +16 -0
- package/dist/versions/v5/common/user-getorganizationsuggestions-arguments-chanaged.md +1 -0
- package/dist/versions/v5/common/user-getorganizationsuggestions-arguments-changed.md +16 -0
- package/dist/versions/v5/common/user-profileimageurl.md +7 -0
- package/dist/versions/v5/common/user-update-password.md +18 -0
- package/dist/versions/v5/common/userbuttonpopoveractionbuttontext-removed.md +1 -0
- package/dist/versions/v5/common/userbuttontrigger-userbuttonbox-invert.md +2 -1
- package/dist/versions/v5/common/userprofile-security.md +1 -0
- package/dist/versions/v5/common/withclerk-hof-removed.md +15 -14
- package/dist/versions/v5/common/withclerk-removed.md +1 -0
- package/dist/versions/v5/common/withsession-hof-removed.md +15 -14
- package/dist/versions/v5/common/withsession-removed.md +1 -0
- package/dist/versions/v5/common/withuser-hof-removed.md +15 -14
- package/dist/versions/v5/common/withuser-removed-2.md +1 -2
- package/dist/versions/v5/expo/apikey-to-publishable-key.md +1 -0
- package/dist/versions/v5/expo/clerkprovider-frontendapi.md +1 -0
- package/dist/versions/v5/fastify/clerkplugin-frontendapi.md +2 -1
- package/dist/versions/v5/fastify/createclerkclient-apikey.md +1 -0
- package/dist/versions/v5/fastify/createclerkclient-frontendapi.md +1 -0
- package/dist/versions/v5/gatsby/api-url-value-change.md +1 -1
- package/dist/versions/v5/gatsby/apikey-to-publishable-key.md +1 -0
- package/dist/versions/v5/gatsby/createclerkclient-apikey.md +1 -0
- package/dist/versions/v5/gatsby/createclerkclient-frontendapi.md +1 -0
- package/dist/versions/v5/gatsby/withserverauth-return-type.md +22 -30
- package/dist/versions/v5/index.js +16 -26
- package/dist/versions/v5/js/experimental-canusecaptcha.md +1 -0
- package/dist/versions/v5/js/experimental-captchasitekey.md +1 -0
- package/dist/versions/v5/js/experimental-captchaurl.md +1 -0
- package/dist/versions/v5/js/getorganizationmemberships.md +3 -6
- package/dist/versions/v5/js/redirecttohome.md +4 -4
- package/dist/versions/v5/js/signup-attemptweb3walletverification-generatedsignature.md +3 -2
- package/dist/versions/v5/js/unstable-invitationupdate.md +1 -0
- package/dist/versions/v5/js/unstable-membershipupdate.md +1 -0
- package/dist/versions/v5/js/user-createexternalaccount-redirecturl.md +1 -0
- package/dist/versions/v5/js/user-update-password.md +8 -9
- package/dist/versions/v5/next/auth-import-change.md +1 -0
- package/dist/versions/v5/next/auth-middleware-deprecated.md +8 -7
- package/dist/versions/v5/next/authmiddleware-apikey.md +5 -7
- package/dist/versions/v5/next/authmiddleware-frontendapi.md +2 -1
- package/dist/versions/v5/next/authmiddleware-import-change.md +1 -0
- package/dist/versions/v5/next/buildclerkprops-import-change.md +1 -0
- package/dist/versions/v5/next/clerk-import-change.md +1 -0
- package/dist/versions/v5/next/clerk-js-version-next-public.md +1 -0
- package/dist/versions/v5/next/constants-import-change.md +2 -1
- package/dist/versions/v5/next/createauthenticaterequest-import-change.md +1 -0
- package/dist/versions/v5/next/createclerkclient-apikey.md +2 -1
- package/dist/versions/v5/next/createclerkclient-frontendapi.md +2 -1
- package/dist/versions/v5/next/createisomorphicrequest-import-change.md +1 -0
- package/dist/versions/v5/next/currentuser-import-change.md +1 -0
- package/dist/versions/v5/next/decodejwt-import-change.md +1 -0
- package/dist/versions/v5/next/emaillinkerrorcode-import-change.md +1 -0
- package/dist/versions/v5/next/getauth-apikey.md +2 -1
- package/dist/versions/v5/next/import-api-url.md +2 -1
- package/dist/versions/v5/next/import-api-version.md +2 -1
- package/dist/versions/v5/next/import-clerk-js-url.md +2 -1
- package/dist/versions/v5/next/import-clerk-js-version.md +2 -1
- package/dist/versions/v5/next/import-domain.md +2 -1
- package/dist/versions/v5/next/import-is-satellite.md +2 -1
- package/dist/versions/v5/next/import-nextjs-api.md +7 -6
- package/dist/versions/v5/next/import-nextjs-app-beta.md +2 -1
- package/dist/versions/v5/next/import-nextjs-edge-middleware.md +1 -0
- package/dist/versions/v5/next/import-nextjs-edge-middlewarefiles.md +1 -0
- package/dist/versions/v5/next/import-nextjs-ssr.md +1 -0
- package/dist/versions/v5/next/import-proxy-url.md +2 -1
- package/dist/versions/v5/next/import-publishable-key.md +2 -1
- package/dist/versions/v5/next/import-secret-key.md +2 -1
- package/dist/versions/v5/next/import-sign-in-url.md +2 -1
- package/dist/versions/v5/next/import-sign-up-url.md +2 -1
- package/dist/versions/v5/next/isclerkapiresponserror-import-change.md +1 -0
- package/dist/versions/v5/next/isemaillinkerror-import-change.md +1 -0
- package/dist/versions/v5/next/isknownerror-import-change.md +1 -0
- package/dist/versions/v5/next/ismetamaskerror-import-change.md +1 -0
- package/dist/versions/v5/next/min-nextjs-version.md +2 -0
- package/dist/versions/v5/next/multisessionappsupport-import-change.md +1 -0
- package/dist/versions/v5/next/next-public-clerk-js-url.md +2 -1
- package/dist/versions/v5/next/redirect-import-change.md +1 -0
- package/dist/versions/v5/next/redirecttosignin-import-path.md +2 -1
- package/dist/versions/v5/next/redirecttosignup-import-path.md +2 -1
- package/dist/versions/v5/next/signjwt-import-change.md +1 -0
- package/dist/versions/v5/next/verifyjwt-import-change.md +1 -0
- package/dist/versions/v5/next/verifytoken-import-change.md +1 -0
- package/dist/versions/v5/next/with-clerk-middleware-removed.md +1 -0
- package/dist/versions/v5/nextjs/api-url-value-change.md +8 -0
- package/dist/versions/v5/nextjs/auth-import-change.md +14 -0
- package/dist/versions/v5/nextjs/auth-middleware-deprecated.md +50 -0
- package/dist/versions/v5/nextjs/authmiddleware-apikey.md +15 -0
- package/dist/versions/v5/nextjs/authmiddleware-frontendapi.md +15 -0
- package/dist/versions/v5/nextjs/authmiddleware-import-change.md +14 -0
- package/dist/versions/v5/nextjs/buildclerkprops-import-change.md +14 -0
- package/dist/versions/v5/nextjs/clerk-import-change.md +13 -0
- package/dist/versions/v5/nextjs/clerk-js-version-next-public.md +9 -0
- package/dist/versions/v5/nextjs/constants-import-change.md +14 -0
- package/dist/versions/v5/nextjs/createauthenticaterequest-import-change.md +14 -0
- package/dist/versions/v5/nextjs/createclerkclient-apikey.md +15 -0
- package/dist/versions/v5/nextjs/createclerkclient-frontendapi.md +15 -0
- package/dist/versions/v5/nextjs/createisomorphicrequest-import-change.md +14 -0
- package/dist/versions/v5/nextjs/currentuser-import-change.md +14 -0
- package/dist/versions/v5/nextjs/decodejwt-import-change.md +14 -0
- package/dist/versions/v5/nextjs/emaillinkerrorcode-import-change.md +14 -0
- package/dist/versions/v5/nextjs/getauth-apikey.md +13 -0
- package/dist/versions/v5/nextjs/import-api-url.md +8 -0
- package/dist/versions/v5/nextjs/import-api-version.md +8 -0
- package/dist/versions/v5/nextjs/import-clerk-js-url.md +8 -0
- package/dist/versions/v5/nextjs/import-clerk-js-version.md +8 -0
- package/dist/versions/v5/nextjs/import-domain.md +8 -0
- package/dist/versions/v5/nextjs/import-is-satellite.md +8 -0
- package/dist/versions/v5/nextjs/import-nextjs-api.md +21 -0
- package/dist/versions/v5/nextjs/import-nextjs-app-beta.md +11 -0
- package/dist/versions/v5/nextjs/import-nextjs-edge-middleware.md +7 -0
- package/dist/versions/v5/nextjs/import-nextjs-edge-middlewarefiles.md +7 -0
- package/dist/versions/v5/nextjs/import-nextjs-ssr.md +8 -0
- package/dist/versions/v5/nextjs/import-proxy-url.md +8 -0
- package/dist/versions/v5/nextjs/import-publishable-key.md +8 -0
- package/dist/versions/v5/nextjs/import-secret-key.md +8 -0
- package/dist/versions/v5/nextjs/import-sign-in-url.md +8 -0
- package/dist/versions/v5/nextjs/import-sign-up-url.md +8 -0
- package/dist/versions/v5/nextjs/isclerkapiresponserror-import-change.md +14 -0
- package/dist/versions/v5/nextjs/isemaillinkerror-import-change.md +14 -0
- package/dist/versions/v5/nextjs/isknownerror-import-change.md +14 -0
- package/dist/versions/v5/nextjs/min-nextjs-version.md +11 -0
- package/dist/versions/v5/nextjs/multisessionappsupport-import-change.md +14 -0
- package/dist/versions/v5/nextjs/next-public-clerk-js-url.md +7 -0
- package/dist/versions/v5/nextjs/redirect-import-change.md +14 -0
- package/dist/versions/v5/nextjs/redirecttosignin-import-path.md +13 -0
- package/dist/versions/v5/nextjs/redirecttosignup-import-path.md +13 -0
- package/dist/versions/v5/nextjs/signjwt-import-change.md +14 -0
- package/dist/versions/v5/nextjs/verifyjwt-import-change.md +14 -0
- package/dist/versions/v5/nextjs/verifytoken-import-change.md +14 -0
- package/dist/versions/v5/nextjs/with-clerk-middleware-removed.md +56 -0
- package/dist/versions/v5/node/cjs-esm-instance.md +1 -0
- package/dist/versions/v5/node/clerkexpressrequireauth-apikey.md +1 -0
- package/dist/versions/v5/node/clerkexpressrequireauth-frontendapi.md +1 -0
- package/dist/versions/v5/node/clerkexpresswithauth-apikey.md +1 -0
- package/dist/versions/v5/node/clerkexpresswithauth-frontendapi.md +1 -0
- package/dist/versions/v5/node/createclerkclient-apikey.md +1 -0
- package/dist/versions/v5/node/createclerkclient-frontendapi.md +1 -0
- package/dist/versions/v5/node/createclerkexpressrequireauth-apikey.md +1 -0
- package/dist/versions/v5/node/createclerkexpressrequireauth-frontendapi.md +1 -0
- package/dist/versions/v5/node/createclerkexpresswithauth-apikey.md +1 -0
- package/dist/versions/v5/node/createclerkexpresswithauth-frontendapi.md +1 -0
- package/dist/versions/v5/node/legacyauthobject-removed.md +3 -3
- package/dist/versions/v5/node/setclerkapikey.md +1 -0
- package/dist/versions/v5/node/setclerkapiversion.md +1 -0
- package/dist/versions/v5/node/setclerkhttpoptions.md +1 -0
- package/dist/versions/v5/node/setclerkserverapiurl.md +1 -0
- package/dist/versions/v5/react/api-url-value-change.md +1 -1
- package/dist/versions/v5/remix/clerk-import-change.md +1 -0
- package/dist/versions/v5/remix/clerkerrorboundary-removed.md +1 -0
- package/dist/versions/v5/remix/createclerkclient-apikey.md +1 -0
- package/dist/versions/v5/remix/getauth-apikey.md +1 -0
- package/dist/versions/v5/remix/rootauthloader-apikey.md +1 -0
- package/dist/versions/v5/remix/rootauthloader-frontendapi.md +1 -0
- package/package.json +5 -2
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`SIGN_IN_URL` constant removed'
|
|
3
3
|
matcher: "import\\s+{[\\s\\S]*?SIGN_IN_URL[\\s\\S]*?from\\s+['\"]@clerk\\/nextjs[\\s\\S]*?['\"]"
|
|
4
|
+
category: 'deprecation-removal'
|
|
4
5
|
matcherFlags: 'm'
|
|
5
6
|
---
|
|
6
7
|
|
|
7
|
-
This deprecated constant has been removed as an export from `@clerk/nextjs`.
|
|
8
|
+
This deprecated constant has been removed as an export from `@clerk/nextjs`. Instead, set and use the `NEXT_PUBLIC_CLERK_SIGN_IN_URL` environment variable.
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`SIGN_UP_URL` constant removed'
|
|
3
3
|
matcher: "import\\s+{[\\s\\S]*?SIGN_UP_URL[\\s\\S]*?from\\s+['\"]@clerk\\/nextjs[\\s\\S]*?['\"]"
|
|
4
|
+
category: 'deprecation-removal'
|
|
4
5
|
matcherFlags: 'm'
|
|
5
6
|
---
|
|
6
7
|
|
|
7
|
-
This deprecated constant has been removed as an export from `@clerk/nextjs`.
|
|
8
|
+
This deprecated constant has been removed as an export from `@clerk/nextjs`. Instead, set and use the `NEXT_PUBLIC_CLERK_SIGN_UP_URL` environment variable.
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
title: '`isClerkAPIResponseError` import moved under `/errors`'
|
|
3
3
|
matcher: "import\\s+{[\\s\\S]*?isClerkAPIResponseError[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
4
4
|
matcherFlags: 'm'
|
|
5
|
+
category: 'top-level-imports'
|
|
5
6
|
replaceWithString: 'nextjs/errors'
|
|
6
7
|
---
|
|
7
8
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: 'Upgrade nextjs to v13 or higher'
|
|
3
|
+
category: 'version'
|
|
3
4
|
matcher: "dependencies\":\\s*{[\\s\\S]*?\"next\":\\s*\"(?:^|~|>|=|\\s)*(?:10|11|12)\\..*?"
|
|
5
|
+
matcherFlags: 'm'
|
|
4
6
|
---
|
|
5
7
|
|
|
6
8
|
If you're using `@clerk/nextjs`, you will need to update your Next.js project to `13.0.4` or later. Check out Next's upgrade guides for help:
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`MultiSessionAppSupport` import moved under `/internal`'
|
|
3
3
|
matcher: "import\\s+{[\\s\\S]*?MultiSessionAppSupport[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
4
|
+
category: 'deprecation-removal'
|
|
4
5
|
matcherFlags: 'm'
|
|
5
6
|
replaceWithString: 'nextjs/internal'
|
|
6
7
|
---
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '`NEXT_PUBLIC_CLERK_JS` should be `NEXT_PUBLIC_CLERK_JS_URL`'
|
|
3
|
+
category: 'deprecation-removal'
|
|
3
4
|
matcher: 'NEXT_PUBLIC_CLERK_JS[^_]*$'
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
If you are using `NEXT_PUBLIC_CLERK_JS` as an environment variable, it should be changed to `NEXT_PUBLIC_CLERK_JS_URL` instead.
|
|
7
|
+
If you are using `NEXT_PUBLIC_CLERK_JS` as an environment variable, it should be changed to `NEXT_PUBLIC_CLERK_JS_URL` instead. This variable was renamed for consistency across public APIs. Make sure to also check your production host configuration when changing environment variable values.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: '`redirectToSignIn` import moved under `/server
|
|
2
|
+
title: '`redirectToSignIn` import moved under `/server'
|
|
3
3
|
matcher: "import\\s+{[\\s\\S]*?[,\\s]redirectToSignIn[,\\s][\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
4
|
+
category: 'top-level-imports'
|
|
4
5
|
replaceWithString: 'nextjs/server'
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: '`redirectToSignUp` import
|
|
2
|
+
title: '`redirectToSignUp` import moved under `/server`'
|
|
3
3
|
matcher: "import\\s+{[\\s\\S]*?[,\\s]redirectToSignUp[,\\s][\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
4
|
+
category: 'top-level-imports'
|
|
4
5
|
replaceWithString: 'nextjs/server'
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`API_URL` value has changed'
|
|
3
|
+
matcher: "API_URL[\\s\\S]+?from\\s+['\"]@clerk\\/nextjs\\/server['\"]"
|
|
4
|
+
matcherFlags: 'm'
|
|
5
|
+
warning: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
The value of this export has changed from `https://api.clerk.dev` to `https://api.clerk.com`. If you were relying on the text content of this value not changing, you may need to make adjustments.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`auth` import moved under `/server`'
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?[,\\s]auth[,\\s][\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
4
|
+
matcherFlags: 'm'
|
|
5
|
+
category: 'top-level-imports'
|
|
6
|
+
replaceWithString: 'nextjs/server'
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
The `auth` import path has changed from `@clerk/nextjs` to `@clerk/nextjs/server`, as this is a helper that should be only used on the server side. You must update your import path in order for it to work correctly. Example below of the fix that needs to be made:
|
|
10
|
+
|
|
11
|
+
```diff
|
|
12
|
+
- import { auth } from "@clerk/nextjs"
|
|
13
|
+
+ import { auth } from "@clerk/nextjs/server"
|
|
14
|
+
```
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`authMiddleware` deprecated'
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?authMiddleware[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/nextjs[\\s\\S]*?['\"]"
|
|
4
|
+
category: 'middleware'
|
|
5
|
+
matcherFlags: 'm'
|
|
6
|
+
warning: true
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
The [`authMiddleware`](https://clerk.com/docs/references/nextjs/auth-middleware) API from `@clerk/nextjs` has been marked as deprecated. We highly recommend using [`clerkMiddleware`](https://clerk.com/docs/references/nextjs/clerk-middleware) going forward. `clerkMiddleware` protects no routes by default and you need to add your individual routes you want to opt into protection. Here's an example of having all routes public except for everything under `/dashboard`.
|
|
10
|
+
|
|
11
|
+
For more documentation on the new `clerkMiddleware` function, check out [our official docs](https://clerk.com/docs/references/nextjs/clerk-middleware)!
|
|
12
|
+
|
|
13
|
+
**Before:**
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
// middleware.ts
|
|
17
|
+
|
|
18
|
+
import { authMiddleware } from '@clerk/nextjs';
|
|
19
|
+
|
|
20
|
+
export default authMiddleware({
|
|
21
|
+
publicRoutes: req => !req.url.includes('/dashboard'),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export const config = {
|
|
25
|
+
matcher: ['/((?!.+\\.[\\w]+$|_next)._)', '/', '/(api|trpc)(._)'],
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**After:**
|
|
30
|
+
|
|
31
|
+
```ts
|
|
32
|
+
// middleware.ts
|
|
33
|
+
|
|
34
|
+
import { clerkMiddleware, createRouteMatcher } from '@clerk/nextjs/server';
|
|
35
|
+
import { NextResponse } from 'next/server';
|
|
36
|
+
|
|
37
|
+
const isProtectedRoute = createRouteMatcher(['/dashboard(.*)']);
|
|
38
|
+
|
|
39
|
+
export default clerkMiddleware((auth, request) => {
|
|
40
|
+
if (isProtectedRoute(request)) {
|
|
41
|
+
auth().protect();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return NextResponse.next();
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export const config = {
|
|
48
|
+
matcher: ['/((?!.+\\.[\\w]+$|_next)._)', '/', '/(api|trpc)(._)'],
|
|
49
|
+
};
|
|
50
|
+
```
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`apiKey` -> `secretKey` as param to `authMiddleware`'
|
|
3
|
+
matcher: "authMiddleware\\({[\\s\\S]*?apiKey:[\\s\\S]*?}\\)"
|
|
4
|
+
category: 'deprecation-removal'
|
|
5
|
+
matcherFlags: 'm'
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
The `apiKey` argument passed to `authMiddleware` must be changed to `secretKey`.
|
|
9
|
+
|
|
10
|
+
```diff
|
|
11
|
+
import { authMiddleware } from '@clerk/nextjs';
|
|
12
|
+
|
|
13
|
+
- authMiddleware({ apiKey: '...' });
|
|
14
|
+
+ authMiddleware({ secretKey: '...' });
|
|
15
|
+
```
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`frontendApi` -> `publishableKey` as param to `authMiddleware`'
|
|
3
|
+
matcher: "authMiddleware\\({[\\s\\S]*?frontendApi:[\\s\\S]*?}\\)"
|
|
4
|
+
category: 'deprecation-removal'
|
|
5
|
+
matcherFlags: 'm'
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
The `frontendApi` argument passed to `authMiddleware` must be changed to `publishableKey`
|
|
9
|
+
|
|
10
|
+
```diff
|
|
11
|
+
import { authMiddleware } from "@clerk/nextjs/server"
|
|
12
|
+
|
|
13
|
+
- authMiddleware({ frontendApi: '...' })
|
|
14
|
+
+ authMiddleware({ publishableKey: '...' })
|
|
15
|
+
```
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`authMiddleware` import moved under `/server`'
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?authMiddleware[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
4
|
+
matcherFlags: 'm'
|
|
5
|
+
category: 'top-level-imports'
|
|
6
|
+
replaceWithString: 'nextjs/server'
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
The `authMiddleware` import path has changed from `@clerk/nextjs` to `@clerk/nextjs/server`, as this is a helper that should be only used on the server side. You must update your import path in order for it to work correctly. Note as well that `authMiddleware` is deprecated as of this release, and we recommend [using `clerkMiddleware` instead](https://clerk.com/docs/references/nextjs/clerk-middleware). Example below of the fix that needs to be made:
|
|
10
|
+
|
|
11
|
+
```diff
|
|
12
|
+
- import { authMiddleware } from "@clerk/nextjs"
|
|
13
|
+
+ import { authMiddleware } from "@clerk/nextjs/server"
|
|
14
|
+
```
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`buildClerkProps` import moved under `/server`'
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?buildClerkProps[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
4
|
+
matcherFlags: 'm'
|
|
5
|
+
category: 'top-level-imports'
|
|
6
|
+
replaceWithString: 'nextjs/server'
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
The `buildClerkProps` import path has changed from `@clerk/nextjs` to `@clerk/nextjs/server`, as this is a helper that should be only used on the server side. You must update your import path in order for it to work correctly. Example below of the fix that needs to be made:
|
|
10
|
+
|
|
11
|
+
```diff
|
|
12
|
+
- import { buildClerkProps } from "@clerk/nextjs"
|
|
13
|
+
+ import { buildClerkProps } from "@clerk/nextjs/server"
|
|
14
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`Clerk` import moved under `/server`'
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?[,\\s]Clerk[,\\s][\\s\\S]*?from\\s+['\"]@clerk\\/nextjs[\\s\\S]*?['\"]"
|
|
4
|
+
category: 'top-level-imports'
|
|
5
|
+
matcherFlags: 'm'
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
The `Clerk` import path has changed from `@clerk/nextjs` to `@clerk/nextjs/server`, as this is a helper that should be only used on the server side. You must update your import path in order for it to work correctly. Note as well that the `Clerk` export has changed to `createClerkClient` as part of the v5 changes. Example below of the fix that needs to be made:
|
|
9
|
+
|
|
10
|
+
```diff
|
|
11
|
+
- import { Clerk } from "@clerk/nextjs"
|
|
12
|
+
+ import { createClerkClient } from "@clerk/nextjs/server"
|
|
13
|
+
```
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`CLERK_JS_VERSION` should be `NEXT_PUBLIC_CLERK_JS_VERSION`'
|
|
3
|
+
category: 'deprecation-removal'
|
|
4
|
+
matcher: '^[^_]*CLERK_JS_VERSION'
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
If you are using `CLERK_JS_VERSION` as an environment variable, it should be changed to `NEXT_PUBLIC_CLERK_JS_VERSION` instead.
|
|
8
|
+
|
|
9
|
+
This change brings our SDK up to date with the latest standards for next.js - that public environment variables should have the `NEXT_PUBLIC_` prefix. This env variable is not private, so it should get the public prefix.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`constants` import moved under `/server`'
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?constants[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
4
|
+
matcherFlags: 'm'
|
|
5
|
+
category: 'top-level-imports'
|
|
6
|
+
replaceWithString: 'nextjs/server'
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
The `constants` import path has changed from `@clerk/nextjs` to `@clerk/nextjs/server`, as this is a helper that should be only used on the server side. You must update your import path in order for it to work correctly. Example below of the fix that needs to be made:
|
|
10
|
+
|
|
11
|
+
```diff
|
|
12
|
+
- import { constants } from "@clerk/nextjs"
|
|
13
|
+
+ import { constants } from "@clerk/nextjs/server"
|
|
14
|
+
```
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`createAuthenticateRequest` import moved under `/server`'
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?createAuthenticateRequest[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
4
|
+
matcherFlags: 'm'
|
|
5
|
+
category: 'top-level-imports'
|
|
6
|
+
replaceWithString: 'nextjs/server'
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
The `createAuthenticateRequest` import path has changed from `@clerk/nextjs` to `@clerk/nextjs/server`, as this is a helper that should be only used on the server side. You must update your import path in order for it to work correctly. Example below of the fix that needs to be made:
|
|
10
|
+
|
|
11
|
+
```diff
|
|
12
|
+
- import { createAuthenticateRequest } from "@clerk/nextjs"
|
|
13
|
+
+ import { createAuthenticateRequest } from "@clerk/nextjs/server"
|
|
14
|
+
```
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`apiKey` -> `secretKey` as param to `createClerkClient`'
|
|
3
|
+
matcher: "createClerkClient\\({[\\s\\S]*?apiKey:[\\s\\S]*?}\\)"
|
|
4
|
+
category: 'deprecation-removal'
|
|
5
|
+
matcherFlags: 'm'
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
The `apiKey` argument passed to `createClerkClient` must be changed to `secretKey`.
|
|
9
|
+
|
|
10
|
+
```diff
|
|
11
|
+
import { createClerkClient } from '@clerk/nextjs/server';
|
|
12
|
+
|
|
13
|
+
- createClerkClient({ apiKey: '...' });
|
|
14
|
+
+ createClerkClient({ secretKey: '...' });
|
|
15
|
+
```
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`frontendApi` -> `publishableKey` as param to `createClerkClient`'
|
|
3
|
+
matcher: "createClerkClient\\({[\\s\\S]*?frontendApi:[\\s\\S]*?}\\)"
|
|
4
|
+
category: 'deprecation-removal'
|
|
5
|
+
matcherFlags: 'm'
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
The `frontendApi` argument passed to `createClerkClient` must be changed to `publishableKey`. Note that the values of the two keys are different, so both keys and values need to be changed. You can find your application's publishable key in the Clerk dashboard.
|
|
9
|
+
|
|
10
|
+
```diff
|
|
11
|
+
import { createClerkClient } from '@clerk/nextjs/server';
|
|
12
|
+
|
|
13
|
+
- createClerkClient({ frontendApi: '...' });
|
|
14
|
+
+ createClerkClient({ publishableKey: '...' });
|
|
15
|
+
```
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`createIsomorphicRequest` import moved under `/server`'
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?createIsomorphicRequest[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
4
|
+
matcherFlags: 'm'
|
|
5
|
+
category: 'top-level-imports'
|
|
6
|
+
replaceWithString: 'nextjs/server'
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
The `createIsomorphicRequest` import path has changed from `@clerk/nextjs` to `@clerk/nextjs/server`, as this is a helper that should be only used on the server side. You must update your import path in order for it to work correctly. Example below of the fix that needs to be made:
|
|
10
|
+
|
|
11
|
+
```diff
|
|
12
|
+
- import { createIsomorphicRequest } from "@clerk/nextjs"
|
|
13
|
+
+ import { createIsomorphicRequest } from "@clerk/nextjs/server"
|
|
14
|
+
```
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`currentUser` import moved under `/server`'
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?currentUser[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
4
|
+
matcherFlags: 'm'
|
|
5
|
+
category: 'top-level-imports'
|
|
6
|
+
replaceWithString: 'nextjs/server'
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
The `currentUser` import path has changed from `@clerk/nextjs` to `@clerk/nextjs/server`, as this is a helper that should be only used on the server side. You must update your import path in order for it to work correctly. Example below of the fix that needs to be made:
|
|
10
|
+
|
|
11
|
+
```diff
|
|
12
|
+
- import { currentUser } from "@clerk/nextjs"
|
|
13
|
+
+ import { currentUser } from "@clerk/nextjs/server"
|
|
14
|
+
```
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`decodeJwt` import moved under `/server`'
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?decodeJwt[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
4
|
+
matcherFlags: 'm'
|
|
5
|
+
category: 'top-level-imports'
|
|
6
|
+
replaceWithString: 'nextjs/server'
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
The `decodeJwt` import path has changed from `@clerk/nextjs` to `@clerk/nextjs/server`, as this is a helper that should be only used on the server side. You must update your import path in order for it to work correctly. Example below of the fix that needs to be made:
|
|
10
|
+
|
|
11
|
+
```diff
|
|
12
|
+
- import { decodeJwt } from "@clerk/nextjs"
|
|
13
|
+
+ import { decodeJwt } from "@clerk/nextjs/server"
|
|
14
|
+
```
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`EmailLinkErrorCode` import moved under `/errors`'
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?EmailLinkErrorCode[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
4
|
+
matcherFlags: 'm'
|
|
5
|
+
category: 'top-level-imports'
|
|
6
|
+
replaceWithString: 'nextjs/errors'
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
The `EmailLinkErrorCode` import path has changed from `@clerk/nextjs` to `@clerk/nextjs/errors`. You must update your import path in order for it to work correctly. Example below of the fix that needs to be made:
|
|
10
|
+
|
|
11
|
+
```diff
|
|
12
|
+
- import { EmailLinkErrorCode } from "@clerk/nextjs"
|
|
13
|
+
+ import { EmailLinkErrorCode } from "@clerk/nextjs/errors"
|
|
14
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`apiKey` -> `secretKey` as param to `getAuth`'
|
|
3
|
+
matcher: "getAuth\\({[\\s\\S]*?apiKey:[\\s\\S]*?}\\)"
|
|
4
|
+
category: 'deprecation-removal'
|
|
5
|
+
matcherFlags: 'm'
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
The `apiKey` argument passed to `getAuth` must be changed to `secretKey`.
|
|
9
|
+
|
|
10
|
+
```diff
|
|
11
|
+
- getAuth({ apiKey: '...' })
|
|
12
|
+
+ getAuth({ secretKey: '...' })
|
|
13
|
+
```
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`API_URL` constant removed'
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?API_URL[\\s\\S]*?from\\s+['\"]@clerk\\/nextjs[\\s\\S]*?['\"]"
|
|
4
|
+
category: 'deprecation-removal'
|
|
5
|
+
matcherFlags: 'm'
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
This deprecated constant has been removed as an export from `@clerk/nextjs`. Instead, set and use the `CLERK_API_URL` environment variable.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`API_VERSION` constant removed'
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?API_VERSION[\\s\\S]*?from\\s+['\"]@clerk\\/nextjs[\\s\\S]*?['\"]"
|
|
4
|
+
category: 'deprecation-removal'
|
|
5
|
+
matcherFlags: 'm'
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
This deprecated constant has been removed as an export from `@clerk/nextjs`. Instead, set and use the `CLERK_API_VERSION` environment variable.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`CLERK_JS_URL` constant removed'
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?CLERK_JS_URL[\\s\\S]*?from\\s+['\"]@clerk\\/nextjs[\\s\\S]*?['\"]"
|
|
4
|
+
category: 'deprecation-removal'
|
|
5
|
+
matcherFlags: 'm'
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
This deprecated constant has been removed as an export from `@clerk/nextjs`. Instead, set and use the `NEXT_PUBLIC_CLERK_JS` environment variable.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`CLERK_JS_VERSION` constant removed'
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?CLERK_JS_VERSION[\\s\\S]*?from\\s+['\"]@clerk\\/nextjs[\\s\\S]*?['\"]"
|
|
4
|
+
category: 'deprecation-removal'
|
|
5
|
+
matcherFlags: 'm'
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
This deprecated constant has been removed as an export from `@clerk/nextjs`. Instead, set and use the `NEXT_PUBLIC_CLERK_JS_VERSION` environment variable.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`DOMAIN` constant removed'
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?DOMAIN[\\s\\S]*?from\\s+['\"]@clerk\\/nextjs[\\s\\S]*?['\"]"
|
|
4
|
+
category: 'deprecation-removal'
|
|
5
|
+
matcherFlags: 'm'
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
This deprecated constant has been removed as an export from `@clerk/nextjs`. Instead, set and use the `NEXT_PUBLIC_CLERK_DOMAIN` environment variable.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`IS_SATELLITE` constant removed'
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?IS_SATELLITE[\\s\\S]*?from\\s+['\"]@clerk\\/nextjs[\\s\\S]*?['\"]"
|
|
4
|
+
category: 'deprecation-removal'
|
|
5
|
+
matcherFlags: 'm'
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
This deprecated constant has been removed as an export from `@clerk/nextjs`. Instead, set and use the `NEXT_PUBLIC_CLERK_IS_SATELLITE` environment variable.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`@clerk/nextjs/api` import removed'
|
|
3
|
+
category: 'deprecation-removal'
|
|
4
|
+
matcher: "@clerk\\/nextjs\\/api"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
The import subpath `@clerk/nextjs/api` has been removed. This includes the following imports:
|
|
8
|
+
|
|
9
|
+
```js
|
|
10
|
+
// These have been removed
|
|
11
|
+
import {
|
|
12
|
+
ClerkMiddleware,
|
|
13
|
+
ClerkMiddlewareOptions,
|
|
14
|
+
LooseAuthProp,
|
|
15
|
+
RequireAuthProp,
|
|
16
|
+
StrictAuthProp,
|
|
17
|
+
WithAuthProp,
|
|
18
|
+
} from '@clerk/nextjs/api';
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
If you still need to use any of these functions, they can be instead imported from `@clerk/clerk-sdk-node`.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`@clerk/nextjs/app-beta` import removed'
|
|
3
|
+
category: 'deprecation-removal'
|
|
4
|
+
matcher: "@clerk\\/nextjs\\/app-beta"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
If you are using the `@clerk/nextjs/app-beta` import anywhere, it should use `@clerk/nextjs` instead. The `app-beta` import has been removed as our approuter support is stable, if there are any places you’re using it you can remove.
|
|
8
|
+
|
|
9
|
+
Make this change carefully as some behavior may have changed between our beta and stable releases. You can refer to [our documentation](https://clerk.com/docs/quickstarts/nextjs) and/or [approuter example](https://github.com/clerk/clerk-nextjs-app-quickstart) for up-to-date usage.
|
|
10
|
+
|
|
11
|
+
The `@clerk/nextjs` import will work with both App Router and Pages Router.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`@clerk/nextjs/edge-middleware` import removed'
|
|
3
|
+
category: 'deprecation-removal'
|
|
4
|
+
matcher: "@clerk\\/nextjs\\/edge-middleware"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
This deprecated import has been replaced by `@clerk/nextjs`. Usage should now look as such: `import { authMiddleware } from @clerk/nextjs`. There may be changes in functionality between the two exports depending on how old the version used is, so upgrade with caution.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`@clerk/nextjs/edge-middlewarefiles` import removed'
|
|
3
|
+
category: 'deprecation-removal'
|
|
4
|
+
matcher: "@clerk\\/nextjs\\/edge-middlewarefiles"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
This deprecated import has been replaced by `@clerk/nextjs`. Usage should now look as such: `import { authMiddleware } from @clerk/nextjs`. There may be changes in functionality between the two exports depending on how old the version used is, so upgrade with caution.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`@clerk/nextjs/ssr` import removed'
|
|
3
|
+
matcher: "@clerk\\/nextjs\\/ssr"
|
|
4
|
+
category: 'deprecation-removal'
|
|
5
|
+
replaceWithString: '@clerk/nextjs'
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
If you are importing from `@clerk/nextjs/ssr`, you can use `@clerk/nextjs` instead. Our top-level import supports SSR functionality by default now, so the subpath on the import is no longer needed. This import can be directly replaced without any other considerations.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`PROXY_URL` constant removed'
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?PROXY_URL[\\s\\S]*?from\\s+['\"]@clerk\\/nextjs[\\s\\S]*?['\"]"
|
|
4
|
+
category: 'deprecation-removal'
|
|
5
|
+
matcherFlags: 'm'
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
This deprecated constant has been removed as an export from `@clerk/nextjs`. Instead, set and use the `NEXT_PUBLIC_CLERK_PROXY_URL` environment variable.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`PUBLISHABLE_KEY` constant removed'
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?PUBLISHABLE_KEY[\\s\\S]*?from\\s+['\"]@clerk\\/nextjs[\\s\\S]*?['\"]"
|
|
4
|
+
category: 'deprecation-removal'
|
|
5
|
+
matcherFlags: 'm'
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
This deprecated constant has been removed as an export from `@clerk/nextjs`. Instead, set and use the `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` environment variable.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`SECRET_KEY` constant removed'
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?SECRET_KEY[\\s\\S]*?from\\s+['\"]@clerk\\/nextjs[\\s\\S]*?['\"]"
|
|
4
|
+
category: 'deprecation-removal'
|
|
5
|
+
matcherFlags: 'm'
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
This deprecated constant has been removed as an export from `@clerk/nextjs`. Instead, set and use the `CLERK_SECRET_KEY` environment variable.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '`SIGN_IN_URL` constant removed'
|
|
3
|
+
matcher: "import\\s+{[\\s\\S]*?SIGN_IN_URL[\\s\\S]*?from\\s+['\"]@clerk\\/nextjs[\\s\\S]*?['\"]"
|
|
4
|
+
category: 'deprecation-removal'
|
|
5
|
+
matcherFlags: 'm'
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
This deprecated constant has been removed as an export from `@clerk/nextjs`. Instead, set and use the `NEXT_PUBLIC_CLERK_SIGN_IN_URL` environment variable.
|