@clerk/upgrade 0.3.0 → 0.4.1
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/app.js +2 -2
- package/dist/cli.js +4 -3
- package/dist/constants/sdks.js +4 -5
- package/dist/constants/versions.js +4 -4
- package/dist/guide-generators/{v5 → core-2}/backend/index.js +1 -1
- package/dist/guide-generators/{v5/expo → core-2/backend}/intro.mdx +2 -2
- package/dist/guide-generators/{v5/chromeExtension → core-2/chrome-extension}/index.js +3 -3
- package/dist/guide-generators/core-2/chrome-extension/intro.mdx +3 -0
- package/dist/guide-generators/{v5 → core-2}/expo/index.js +3 -2
- package/dist/guide-generators/core-2/expo/intro.mdx +3 -0
- package/dist/guide-generators/{v5 → core-2}/fastify/index.js +3 -2
- package/dist/guide-generators/{v5 → core-2}/fastify/intro.mdx +1 -1
- package/dist/guide-generators/{v5 → core-2}/gatsby/index.js +6 -5
- package/dist/guide-generators/core-2/gatsby/intro.mdx +3 -0
- package/dist/guide-generators/{v5 → core-2}/generate-all.sh +1 -1
- package/dist/guide-generators/{v5 → core-2}/js/index.js +3 -2
- package/dist/guide-generators/core-2/js/intro.mdx +3 -0
- package/dist/guide-generators/{v5 → core-2}/nextjs/import-changes.mdx +2 -2
- package/dist/guide-generators/{v5 → core-2}/nextjs/index.js +4 -3
- package/dist/guide-generators/core-2/nextjs/intro.mdx +3 -0
- package/dist/guide-generators/{v5-guides → core-2}/nextjs/middleware-changes.mdx +44 -66
- package/dist/guide-generators/{v5 → core-2}/node/index.js +3 -2
- package/dist/guide-generators/{v5 → core-2}/node/intro.mdx +1 -1
- package/dist/guide-generators/{v5 → core-2}/overview/index.js +3 -3
- package/dist/guide-generators/core-2/overview/intro.mdx +25 -0
- package/dist/guide-generators/{v5 → core-2}/react/index.js +3 -2
- package/dist/guide-generators/core-2/react/intro.mdx +3 -0
- package/dist/guide-generators/{v5 → core-2}/remix/index.js +3 -2
- package/dist/guide-generators/core-2/remix/intro.mdx +3 -0
- package/dist/guide-generators/{v5 → core-2}/retheme/index.js +7 -8
- package/dist/guide-generators/{v5 → core-2}/shared/cli.mdx +1 -1
- package/dist/guide-generators/{v5 → core-2}/shared/prepare.mdx +1 -1
- package/dist/{util/v5-guides → guide-generators/core-2/shared}/redesign-preview.mdx +1 -1
- package/dist/scan.js +1 -1
- package/dist/util/load-change.js +2 -2
- package/dist/versions/core-2/common/appearance-variables-breaking-changes.md +15 -0
- package/dist/versions/{v5 → core-2}/common/changed-localization-keys.md +17 -17
- package/dist/versions/core-2/common/new-localization-keys.md +115 -0
- package/dist/versions/{v5 → core-2}/common/removed-localization-keys.md +66 -42
- package/dist/versions/{v5 → core-2}/common/useorganization-invitationlist.md +5 -5
- package/dist/versions/{v5 → core-2}/common/useorganization-membershiplist.md +5 -5
- package/dist/versions/{v5 → core-2}/index.js +5 -5
- package/dist/versions/{v5 → core-2}/shared/useorganizationlist-organizationlist.md +2 -2
- package/package.json +1 -1
- package/dist/guide-generators/v5/backend/__output.mdx +0 -580
- package/dist/guide-generators/v5/backend/import-moves.mdx +0 -3
- package/dist/guide-generators/v5/backend/intro.mdx +0 -3
- package/dist/guide-generators/v5/chrome-extension/index.js +0 -19
- package/dist/guide-generators/v5/chrome-extension/intro.mdx +0 -3
- package/dist/guide-generators/v5/chromeExtension/__output.mdx +0 -409
- package/dist/guide-generators/v5/chromeExtension/intro.mdx +0 -3
- package/dist/guide-generators/v5/expo/__output.mdx +0 -455
- package/dist/guide-generators/v5/fastify/__output.mdx +0 -373
- package/dist/guide-generators/v5/gatsby/__output.mdx +0 -472
- package/dist/guide-generators/v5/gatsby/intro.mdx +0 -3
- package/dist/guide-generators/v5/generate-all.js +0 -0
- package/dist/guide-generators/v5/generate.js +0 -263
- package/dist/guide-generators/v5/intro.mdx +0 -15
- package/dist/guide-generators/v5/js/__output.mdx +0 -528
- package/dist/guide-generators/v5/js/intro.mdx +0 -3
- package/dist/guide-generators/v5/js/pagination-args.mdx +0 -3
- package/dist/guide-generators/v5/js/pagination-return.mdx +0 -3
- package/dist/guide-generators/v5/nextjs/__output.mdx +0 -1091
- package/dist/guide-generators/v5/nextjs/after-sign-x-handling.mdx +0 -10
- package/dist/guide-generators/v5/nextjs/deprecation-removals.mdx +0 -9
- package/dist/guide-generators/v5/nextjs/intro.mdx +0 -3
- package/dist/guide-generators/v5/nextjs/middleware-changes.mdx +0 -251
- package/dist/guide-generators/v5/nextjs/nextjs-versio.mdx +0 -34
- package/dist/guide-generators/v5/nextjs/retheme-changes.mdx +0 -10
- package/dist/guide-generators/v5/nextjs/version-requirements.mdx +0 -34
- package/dist/guide-generators/v5/node/__output.mdx +0 -511
- package/dist/guide-generators/v5/overview/__output.mdx +0 -37
- package/dist/guide-generators/v5/overview/intro.mdx +0 -31
- package/dist/guide-generators/v5/overview/per-sdk.mdx +0 -16
- package/dist/guide-generators/v5/per-sdk.mdx +0 -16
- package/dist/guide-generators/v5/prepare.mdx +0 -135
- package/dist/guide-generators/v5/react/__output.mdx +0 -679
- package/dist/guide-generators/v5/react/intro.mdx +0 -3
- package/dist/guide-generators/v5/redesigned-components.mdx +0 -11
- package/dist/guide-generators/v5/remix/__output.mdx +0 -401
- package/dist/guide-generators/v5/remix/intro.mdx +0 -3
- package/dist/guide-generators/v5/retheme/__output.mdx +0 -437
- package/dist/guide-generators/v5/shared/hof-removals.mdx +0 -3
- package/dist/guide-generators/v5/shared/node-setters-removals.mdx +0 -34
- package/dist/guide-generators/v5/shared/redesign-preview.mdx +0 -5
- package/dist/guide-generators/v5/shared/update-v5.mdx +0 -17
- package/dist/guide-generators/v5/single-page-old.js +0 -192
- package/dist/guide-generators/v5-guides/deprecation-removals.mdx +0 -7
- package/dist/guide-generators/v5-guides/generate.js +0 -263
- package/dist/guide-generators/v5-guides/hof-removals.mdx +0 -3
- package/dist/guide-generators/v5-guides/intro.mdx +0 -15
- package/dist/guide-generators/v5-guides/nextjs/after-sign-x-handling.mdx +0 -10
- package/dist/guide-generators/v5-guides/nextjs/deprecation-removals.mdx +0 -9
- package/dist/guide-generators/v5-guides/nextjs/import-changes.mdx +0 -98
- package/dist/guide-generators/v5-guides/nextjs/index.js +0 -80
- package/dist/guide-generators/v5-guides/nextjs/intro.mdx +0 -21
- package/dist/guide-generators/v5-guides/nextjs/retheme-changes.mdx +0 -10
- package/dist/guide-generators/v5-guides/nextjs/version-requirements.mdx +0 -34
- package/dist/guide-generators/v5-guides/node-setters-removals.mdx +0 -34
- package/dist/guide-generators/v5-guides/pagination-args.mdx +0 -3
- package/dist/guide-generators/v5-guides/pagination-return.mdx +0 -3
- package/dist/guide-generators/v5-guides/path-routing.mdx +0 -50
- package/dist/guide-generators/v5-guides/per-sdk.mdx +0 -16
- package/dist/guide-generators/v5-guides/prepare.mdx +0 -135
- package/dist/guide-generators/v5-guides/redesign-preview.mdx +0 -5
- package/dist/guide-generators/v5-guides/redesigned-components.mdx +0 -11
- package/dist/guide-generators/v5-guides/remix/index.js +0 -15
- package/dist/guide-generators/v5-guides/remix/intro.mdx +0 -1
- package/dist/guide-generators/v5-guides/remix/output.mdx +0 -362
- package/dist/guide-generators/v5-guides/shared/breaking-changes-intro.mdx +0 -0
- package/dist/guide-generators/v5-guides/shared/cli.mdx +0 -21
- package/dist/guide-generators/v5-guides/shared/deprecation-removals.mdx +0 -7
- package/dist/guide-generators/v5-guides/shared/hof-removals.mdx +0 -3
- package/dist/guide-generators/v5-guides/shared/node-setters-removals.mdx +0 -34
- package/dist/guide-generators/v5-guides/shared/node-version.mdx +0 -3
- package/dist/guide-generators/v5-guides/shared/pagination-args.mdx +0 -3
- package/dist/guide-generators/v5-guides/shared/pagination-return.mdx +0 -3
- package/dist/guide-generators/v5-guides/shared/path-routing.mdx +0 -50
- package/dist/guide-generators/v5-guides/shared/prepare.mdx +0 -7
- package/dist/guide-generators/v5-guides/shared/react-version.mdx +0 -19
- package/dist/guide-generators/v5-guides/shared/redesign-preview.mdx +0 -5
- package/dist/guide-generators/v5-guides/shared/update-v5.mdx +0 -17
- package/dist/guide-generators/v5-guides/shared/upgrade-v5.mdx +0 -17
- package/dist/util/generate-export-change.js +0 -7
- package/dist/util/generate-nextjs-migration-guide.js +0 -0
- package/dist/util/generate-nextjs-v5-migration-guide.js +0 -0
- package/dist/util/step-sequencer.js +0 -31
- package/dist/util/text-generation.js +0 -29
- package/dist/util/v5-guide/deprecation-removals.mdx +0 -7
- package/dist/util/v5-guide/generate.js +0 -200
- package/dist/util/v5-guide/getting-up-to-date.mdx +0 -114
- package/dist/util/v5-guide/hof-removals.mdx +0 -3
- package/dist/util/v5-guide/intro.mdx +0 -15
- package/dist/util/v5-guide/node-setters-removals.mdx +0 -34
- package/dist/util/v5-guide/pagination-args.mdx +0 -3
- package/dist/util/v5-guide/pagination-return.mdx +0 -3
- package/dist/util/v5-guide/path-routing.mdx +0 -50
- package/dist/util/v5-guide/per-sdk.mdx +0 -16
- package/dist/util/v5-guide/prepare.mdx +0 -135
- package/dist/util/v5-guide/redesign-preview.mdx +0 -5
- package/dist/util/v5-guide/redesigned-components.mdx +0 -11
- package/dist/util/v5-guide/remix.mdx +0 -0
- package/dist/util/v5-guides/deprecation-removals.mdx +0 -7
- package/dist/util/v5-guides/generate.js +0 -200
- package/dist/util/v5-guides/hof-removals.mdx +0 -3
- package/dist/util/v5-guides/intro.mdx +0 -15
- package/dist/util/v5-guides/nextjs/after-sign-x-handling.mdx +0 -10
- package/dist/util/v5-guides/nextjs/deprecation-removals.mdx +0 -9
- package/dist/util/v5-guides/nextjs/generate.js +0 -80
- package/dist/util/v5-guides/nextjs/import-changes.mdx +0 -98
- package/dist/util/v5-guides/nextjs/index.js +0 -0
- package/dist/util/v5-guides/nextjs/intro.mdx +0 -21
- package/dist/util/v5-guides/nextjs/middleware-changes.mdx +0 -251
- package/dist/util/v5-guides/nextjs/retheme-changes.mdx +0 -10
- package/dist/util/v5-guides/nextjs/version-requirements.mdx +0 -34
- package/dist/util/v5-guides/node-setters-removals.mdx +0 -34
- package/dist/util/v5-guides/pagination-args.mdx +0 -3
- package/dist/util/v5-guides/pagination-return.mdx +0 -3
- package/dist/util/v5-guides/path-routing.mdx +0 -50
- package/dist/util/v5-guides/per-sdk.mdx +0 -16
- package/dist/util/v5-guides/prepare.mdx +0 -135
- package/dist/util/v5-guides/redesigned-components.mdx +0 -11
- package/dist/util/v5-guides/remix/index.js +0 -5
- package/dist/util/v5-nextjs-guide/after-sign-x-handling.mdx +0 -10
- package/dist/util/v5-nextjs-guide/deprecation-removals.mdx +0 -9
- package/dist/util/v5-nextjs-guide/generate-nextjs-v5-migration-guide.js +0 -0
- package/dist/util/v5-nextjs-guide/generate.js +0 -80
- package/dist/util/v5-nextjs-guide/import-changes.mdx +0 -98
- package/dist/util/v5-nextjs-guide/intro.md +0 -0
- package/dist/util/v5-nextjs-guide/intro.mdx +0 -21
- package/dist/util/v5-nextjs-guide/middleware-changes.mdx +0 -251
- package/dist/util/v5-nextjs-guide/retheme-changes.mdx +0 -11
- package/dist/util/v5-nextjs-guide/version-requirements.mdx +0 -34
- package/dist/versions/v5/backend/clerkoptions-type.md +0 -0
- package/dist/versions/v5/backend/organization-logourl.md +0 -6
- package/dist/versions/v5/backend/organizationmembershippublicuserdata-profileimageurl.md +0 -6
- package/dist/versions/v5/backend/user-profileimageurl.md +0 -6
- package/dist/versions/v5/common/aftersigninurl-behavior-change-2.md +0 -8
- package/dist/versions/v5/common/aftersignouturl-behavior-change.md +0 -8
- package/dist/versions/v5/common/aftersignupurl-behavior-change.md +0 -8
- package/dist/versions/v5/common/appearance-organizationpreview-organizationswitcher.md +0 -9
- package/dist/versions/v5/common/externalaccount-picture.md +0 -7
- package/dist/versions/v5/common/externalaccountjson-avatarurl.md +0 -7
- package/dist/versions/v5/common/getorganizationinvitationlist-return-signature.md +0 -15
- package/dist/versions/v5/common/getorganizationinvitationlist-return-type-change.md +0 -17
- package/dist/versions/v5/common/getorganizationlist-return-signature.md +0 -15
- package/dist/versions/v5/common/getroles-pagination.md +0 -15
- package/dist/versions/v5/common/new-localization-keys.md +0 -134
- package/dist/versions/v5/common/user-getorganizationinvitations-arguments-chanaged.md +0 -16
- package/dist/versions/v5/common/user-getorganizationmemberships-arguments-chanaged.md +0 -16
- package/dist/versions/v5/common/user-getorganizationsuggestions-arguments-chanaged.md +0 -16
- package/dist/versions/v5/js/external-account-avatarurl.md +0 -7
- package/dist/versions/v5/js/organization-create-string.md +0 -12
- package/dist/versions/v5/js/organization-getdomains-arguments-change.md +0 -15
- package/dist/versions/v5/js/organization-getinvitations-arguments-changed.md +0 -15
- package/dist/versions/v5/js/organization-getmembershiprequests-arguments-changed.md +0 -15
- package/dist/versions/v5/js/organization-getmemberships-arguments-changed.md +0 -15
- package/dist/versions/v5/js/organization-getpendinginvitations.md +0 -11
- package/dist/versions/v5/js/organization-getroles-arguments-changed.md +0 -15
- package/dist/versions/v5/js/organization-logourl.md +0 -7
- package/dist/versions/v5/js/router-navigate-push-replace.md +0 -18
- package/dist/versions/v5/js/user-getorganizationinvitations-arguments-chanaged.md +0 -15
- package/dist/versions/v5/js/user-getorganizationmemberships-arguments-chanaged.md +0 -15
- package/dist/versions/v5/js/user-getorganizationsuggestions-arguments-chanaged.md +0 -15
- package/dist/versions/v5/js/user-update-password.md +0 -18
- package/dist/versions/v5/next/ismetamaskerror-import-change.md +0 -14
- package/dist/versions/v5/next/redirecttosignin-removed.md +0 -6
- package/dist/versions/v5/next/redirecttosignup-removed.md +0 -6
- package/dist/versions/v5/next/with-clerk-middleware-removed.md +0 -11
- package/dist/versions/v5/nextjs/api-url-value-change.md +0 -8
- package/dist/versions/v5/nextjs/auth-import-change.md +0 -14
- package/dist/versions/v5/nextjs/auth-middleware-deprecated.md +0 -50
- package/dist/versions/v5/nextjs/authmiddleware-apikey.md +0 -15
- package/dist/versions/v5/nextjs/authmiddleware-frontendapi.md +0 -15
- package/dist/versions/v5/nextjs/authmiddleware-import-change.md +0 -14
- package/dist/versions/v5/nextjs/buildclerkprops-import-change.md +0 -14
- package/dist/versions/v5/nextjs/clerk-import-change.md +0 -13
- package/dist/versions/v5/nextjs/clerk-js-version-next-public.md +0 -9
- package/dist/versions/v5/nextjs/constants-import-change.md +0 -14
- package/dist/versions/v5/nextjs/createauthenticaterequest-import-change.md +0 -14
- package/dist/versions/v5/nextjs/createclerkclient-apikey.md +0 -15
- package/dist/versions/v5/nextjs/createclerkclient-frontendapi.md +0 -15
- package/dist/versions/v5/nextjs/createisomorphicrequest-import-change.md +0 -14
- package/dist/versions/v5/nextjs/currentuser-import-change.md +0 -14
- package/dist/versions/v5/nextjs/decodejwt-import-change.md +0 -14
- package/dist/versions/v5/nextjs/emaillinkerrorcode-import-change.md +0 -14
- package/dist/versions/v5/nextjs/getauth-apikey.md +0 -13
- package/dist/versions/v5/nextjs/import-api-url.md +0 -8
- package/dist/versions/v5/nextjs/import-api-version.md +0 -8
- package/dist/versions/v5/nextjs/import-clerk-js-url.md +0 -8
- package/dist/versions/v5/nextjs/import-clerk-js-version.md +0 -8
- package/dist/versions/v5/nextjs/import-domain.md +0 -8
- package/dist/versions/v5/nextjs/import-is-satellite.md +0 -8
- package/dist/versions/v5/nextjs/import-nextjs-api.md +0 -21
- package/dist/versions/v5/nextjs/import-nextjs-app-beta.md +0 -11
- package/dist/versions/v5/nextjs/import-nextjs-edge-middleware.md +0 -7
- package/dist/versions/v5/nextjs/import-nextjs-edge-middlewarefiles.md +0 -7
- package/dist/versions/v5/nextjs/import-nextjs-ssr.md +0 -8
- package/dist/versions/v5/nextjs/import-proxy-url.md +0 -8
- package/dist/versions/v5/nextjs/import-publishable-key.md +0 -8
- package/dist/versions/v5/nextjs/import-secret-key.md +0 -8
- package/dist/versions/v5/nextjs/import-sign-in-url.md +0 -8
- package/dist/versions/v5/nextjs/import-sign-up-url.md +0 -8
- package/dist/versions/v5/nextjs/isclerkapiresponserror-import-change.md +0 -14
- package/dist/versions/v5/nextjs/isemaillinkerror-import-change.md +0 -14
- package/dist/versions/v5/nextjs/isknownerror-import-change.md +0 -14
- package/dist/versions/v5/nextjs/min-nextjs-version.md +0 -11
- package/dist/versions/v5/nextjs/multisessionappsupport-import-change.md +0 -14
- package/dist/versions/v5/nextjs/next-public-clerk-js-url.md +0 -7
- package/dist/versions/v5/nextjs/redirect-import-change.md +0 -14
- package/dist/versions/v5/nextjs/redirecttosignin-import-path.md +0 -13
- package/dist/versions/v5/nextjs/redirecttosignup-import-path.md +0 -13
- package/dist/versions/v5/nextjs/signjwt-import-change.md +0 -14
- package/dist/versions/v5/nextjs/verifyjwt-import-change.md +0 -14
- package/dist/versions/v5/nextjs/verifytoken-import-change.md +0 -14
- package/dist/versions/v5/react/router-navigate.md +0 -18
- /package/dist/guide-generators/{v5 → core-2}/backend/import-paths.mdx +0 -0
- /package/dist/guide-generators/{v5 → core-2}/nextjs/nextjs-version.mdx +0 -0
- /package/dist/guide-generators/{v5 → core-2}/node/node-setters-removals.mdx +0 -0
- /package/dist/guide-generators/{v5 → core-2}/react/hof-removals.mdx +0 -0
- /package/dist/guide-generators/{v5 → core-2}/retheme/intro.mdx +0 -0
- /package/dist/guide-generators/{v5 → core-2}/shared/after-sign-x-handling.mdx +0 -0
- /package/dist/guide-generators/{v5 → core-2}/shared/deprecation-removals.mdx +0 -0
- /package/dist/guide-generators/{v5 → core-2}/shared/image-url.mdx +0 -0
- /package/dist/guide-generators/{v5 → core-2}/shared/node-version.mdx +0 -0
- /package/dist/guide-generators/{v5 → core-2}/shared/orgs-claim.mdx +0 -0
- /package/dist/guide-generators/{v5 → core-2}/shared/pagination-args.mdx +0 -0
- /package/dist/guide-generators/{v5 → core-2}/shared/pagination-return.mdx +0 -0
- /package/dist/guide-generators/{v5 → core-2}/shared/path-routing.mdx +0 -0
- /package/dist/guide-generators/{v5 → core-2}/shared/react-version.mdx +0 -0
- /package/dist/guide-generators/{v5 → core-2}/shared/update-version.mdx +0 -0
- /package/dist/versions/{v5 → core-2}/backend/api-url-value-changed.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/authenticaterequest-params-change.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/buildrequesturl-removed.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/clerk-import.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/client-unstableoptions-removed.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/clockskewinseconds.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/constants-import-path-move.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/createauthenticaterequest-import-path-move.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/createclerkclient-apikey.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/createclerkclient-frontendapi.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/createemail-removed.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/createisomorphicrequest-import-path-move.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/createisomorphicrequest-removed.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/decodejwt-import-path-move.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/getorganizationmembershiplist-return-signature.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/getpendingorganizationinvitationlist.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/httpoptions-removed.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/membershiprole.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/organizationjson-logourl.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/organizationmembershippublicuserdatajson-profileimageurl.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/pkgversion.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/redirect-import-path-move.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/signjwt-import-path-move.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/signjwterror-import-move.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/tokenverificationerror-import-move.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/tokenverificationerroraction-import-move.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/tokenverificationerrorcode-import-move.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/tokenverificationerrorreason-import-move.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/userjson-profileimageurl.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/verifyjwt-import-path-move.md +0 -0
- /package/dist/versions/{v5/chromeExtension → core-2/chrome-extension}/clerkprovider-tokencache.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/afterswitchorganizationurl.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/alternativemethods-backlink.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/api-key-to-secret-key.md +0 -0
- /package/dist/versions/{v5/backend → core-2/common}/appearance-organizationpreview-organizationswitcher.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/button-to-organizationlistcreateorganizationactionbutton.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/card-changes.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/clerkprovider-frontendapi-2.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/clerkprovideroptionswrapper-dropped.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/connected-accounts-dropdown.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/emaillinkerrorcode-import-change.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/externalaccount-avatarurl.md +0 -0
- /package/dist/versions/{v5/backend → core-2/common}/externalaccount-picture.md +0 -0
- /package/dist/versions/{v5/backend → core-2/common}/externalaccountjson-avatarurl.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/frontend-api-to-publishable-key.md +0 -0
- /package/dist/versions/{v5/backend → core-2/common}/getorganizationinvitationlist-return-signature.md +0 -0
- /package/dist/versions/{v5/backend → core-2/common}/getorganizationinvitationlist-return-type-change.md +0 -0
- /package/dist/versions/{v5/backend → core-2/common}/getorganizationlist-return-signature.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/getorganizationlist-return-type-change.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/getorganizationmembershiplist-return-type-change.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/handlemagiclinkverification.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/isclerkapiresponserror-import-change.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/isemaillinkerror-import-change.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/isknownerror-import-change.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/ismagiclinkerror.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/ismetamaskerror-import-change.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/magiclinkerror.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/magiclinkerrorcode.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/mfa-dropdown.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/min-react-version.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/multisessionappsupport-import-change.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/navigate-to-routerpush-routerreplace.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/organization-create-string.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/organization-getdomains-arguments-change.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/organization-getinvitations-arguments-changed.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/organization-getmembershiprequests-arguments-changed.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/organization-getmemberships-arguments-changed.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/organization-getpendinginvitations.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/organization-getroles-arguments-changed.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/organization-logourl.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/organizationmembershippublicuserdata-profileimageurl.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/organizationprofile-settings.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/organizationswitcherpopoveractionbuttontext-removed.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/remove-identitypreview-avatar.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/remove-socialbuttonsblockbuttonarrow.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/setsession.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/signoutcallback-to-redirecturl.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/usemagiclink.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/useorganizations.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/user-getorganizationinvitations-arguments-changed.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/user-getorganizationmemberships-arguments-changed.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/user-getorganizationsuggestions-arguments-changed.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/user-profileimageurl.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/user-update-password.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/userbuttonpopoveractionbuttontext-removed.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/userbuttontrigger-userbuttonbox-invert.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/userprofile-prop.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/userprofile-security.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/withclerk-hof-removed.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/withclerk-removed.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/withsession-hof-removed.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/withsession-removed.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/withuser-hof-removed.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/withuser-removed-2.md +0 -0
- /package/dist/versions/{v5 → core-2}/expo/apikey-to-publishable-key.md +0 -0
- /package/dist/versions/{v5 → core-2}/expo/clerkprovider-frontendapi.md +0 -0
- /package/dist/versions/{v5 → core-2}/fastify/api-url-value-change.md +0 -0
- /package/dist/versions/{v5 → core-2}/fastify/clerk-import-change.md +0 -0
- /package/dist/versions/{v5 → core-2}/fastify/clerkplugin-frontendapi.md +0 -0
- /package/dist/versions/{v5 → core-2}/fastify/createclerkclient-apikey.md +0 -0
- /package/dist/versions/{v5 → core-2}/fastify/createclerkclient-frontendapi.md +0 -0
- /package/dist/versions/{v5 → core-2}/gatsby/api-url-value-change.md +0 -0
- /package/dist/versions/{v5 → core-2}/gatsby/apikey-to-publishable-key.md +0 -0
- /package/dist/versions/{v5 → core-2}/gatsby/clerk-import-change.md +0 -0
- /package/dist/versions/{v5 → core-2}/gatsby/createclerkclient-apikey.md +0 -0
- /package/dist/versions/{v5 → core-2}/gatsby/createclerkclient-frontendapi.md +0 -0
- /package/dist/versions/{v5 → core-2}/gatsby/withserverauth-return-type.md +0 -0
- /package/dist/versions/{v5 → core-2}/js/clerk-isready-removed.md +0 -0
- /package/dist/versions/{v5 → core-2}/js/experimental-canusecaptcha.md +0 -0
- /package/dist/versions/{v5 → core-2}/js/experimental-captchasitekey.md +0 -0
- /package/dist/versions/{v5 → core-2}/js/experimental-captchaurl.md +0 -0
- /package/dist/versions/{v5 → core-2}/js/getorganizationmemberships.md +0 -0
- /package/dist/versions/{v5 → core-2}/js/lastorganizationinvitation-member.md +0 -0
- /package/dist/versions/{v5 → core-2}/js/redirecttohome.md +0 -0
- /package/dist/versions/{v5 → core-2}/js/signup-attemptweb3walletverification-generatedsignature.md +0 -0
- /package/dist/versions/{v5 → core-2}/js/unstable-invitationupdate.md +0 -0
- /package/dist/versions/{v5 → core-2}/js/unstable-membershipupdate.md +0 -0
- /package/dist/versions/{v5 → core-2}/js/user-createexternalaccount-redirecturl.md +0 -0
- /package/dist/versions/{v5 → core-2}/js/user-orgpublicdata-profileimageurl.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/api-url-value-change.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/auth-import-change.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/auth-middleware-deprecated.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/authmiddleware-apikey.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/authmiddleware-frontendapi.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/authmiddleware-import-change.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/buildclerkprops-import-change.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/clerk-import-change.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/clerk-js-version-next-public.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/constants-import-change.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/createauthenticaterequest-import-change.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/createclerkclient-apikey.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/createclerkclient-frontendapi.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/createisomorphicrequest-import-change.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/currentuser-import-change.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/decodejwt-import-change.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/emaillinkerrorcode-import-change.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/getauth-apikey.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/import-api-url.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/import-api-version.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/import-clerk-js-url.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/import-clerk-js-version.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/import-domain.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/import-is-satellite.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/import-nextjs-api.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/import-nextjs-app-beta.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/import-nextjs-edge-middleware.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/import-nextjs-edge-middlewarefiles.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/import-nextjs-ssr.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/import-proxy-url.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/import-publishable-key.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/import-secret-key.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/import-sign-in-url.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/import-sign-up-url.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/isclerkapiresponserror-import-change.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/isemaillinkerror-import-change.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/isknownerror-import-change.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/min-nextjs-version.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/multisessionappsupport-import-change.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/next-public-clerk-js-url.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/redirect-import-change.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/redirecttosignin-import-path.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/redirecttosignup-import-path.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/signjwt-import-change.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/verifyjwt-import-change.md +0 -0
- /package/dist/versions/{v5/next → core-2/nextjs}/verifytoken-import-change.md +0 -0
- /package/dist/versions/{v5 → core-2}/nextjs/with-clerk-middleware-removed.md +0 -0
- /package/dist/versions/{v5 → core-2}/node/api-url-value-change.md +0 -0
- /package/dist/versions/{v5 → core-2}/node/cjs-esm-instance.md +0 -0
- /package/dist/versions/{v5 → core-2}/node/clerk-import-change.md +0 -0
- /package/dist/versions/{v5 → core-2}/node/clerkexpressrequireauth-apikey.md +0 -0
- /package/dist/versions/{v5 → core-2}/node/clerkexpressrequireauth-frontendapi.md +0 -0
- /package/dist/versions/{v5 → core-2}/node/clerkexpresswithauth-apikey.md +0 -0
- /package/dist/versions/{v5 → core-2}/node/clerkexpresswithauth-frontendapi.md +0 -0
- /package/dist/versions/{v5 → core-2}/node/createclerkclient-apikey.md +0 -0
- /package/dist/versions/{v5 → core-2}/node/createclerkclient-frontendapi.md +0 -0
- /package/dist/versions/{v5 → core-2}/node/createclerkexpressrequireauth-apikey.md +0 -0
- /package/dist/versions/{v5 → core-2}/node/createclerkexpressrequireauth-frontendapi.md +0 -0
- /package/dist/versions/{v5 → core-2}/node/createclerkexpresswithauth-apikey.md +0 -0
- /package/dist/versions/{v5 → core-2}/node/createclerkexpresswithauth-frontendapi.md +0 -0
- /package/dist/versions/{v5 → core-2}/node/legacyauthobject-removed.md +0 -0
- /package/dist/versions/{v5 → core-2}/node/setclerkapikey.md +0 -0
- /package/dist/versions/{v5 → core-2}/node/setclerkapiversion.md +0 -0
- /package/dist/versions/{v5 → core-2}/node/setclerkhttpoptions.md +0 -0
- /package/dist/versions/{v5 → core-2}/node/setclerkserverapiurl.md +0 -0
- /package/dist/versions/{v5 → core-2}/react/api-url-value-change.md +0 -0
- /package/dist/versions/{v5 → core-2}/remix/clerk-import-change.md +0 -0
- /package/dist/versions/{v5 → core-2}/remix/clerkerrorboundary-removed.md +0 -0
- /package/dist/versions/{v5 → core-2}/remix/createclerkclient-apikey.md +0 -0
- /package/dist/versions/{v5 → core-2}/remix/getauth-apikey.md +0 -0
- /package/dist/versions/{v5 → core-2}/remix/rootauthloader-apikey.md +0 -0
- /package/dist/versions/{v5 → core-2}/remix/rootauthloader-frontendapi.md +0 -0
- /package/dist/versions/{v5 → core-2}/shared/getrequesturl.md +0 -0
- /package/dist/versions/{v5 → core-2}/shared/organizationcontext.md +0 -0
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: 'New localization keys added'
|
|
3
|
-
matcher: "<ClerkProvider[\\s\\S]*?localization=[\\s\\S]*?>"
|
|
4
|
-
matcherFlags: 'm'
|
|
5
|
-
category: 'localization'
|
|
6
|
-
warning: true
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
As part of the redesign of Clerk's components, a number of new localization keys have been added and can be seen along with their default english values in the code block below. If you do not supply translated values for these keys in your custom localization, they will fall back to the default english values specified below.
|
|
10
|
-
|
|
11
|
-
```js
|
|
12
|
-
const newValues = {
|
|
13
|
-
formFieldLabel__organizationName: 'Name',
|
|
14
|
-
formFieldLabel__organizationSlug: 'Slug',
|
|
15
|
-
formFieldInputPlaceholder__emailAddresses: 'example@email.com, example2@email.com',
|
|
16
|
-
formFieldInputPlaceholder__organizationSlug: 'my-org',
|
|
17
|
-
signUp: {
|
|
18
|
-
start: {
|
|
19
|
-
subtitle: 'Welcome! Please fill in the details to get started.',
|
|
20
|
-
actionText: 'Already have an account?',
|
|
21
|
-
},
|
|
22
|
-
emailCode: {
|
|
23
|
-
subtitle: 'Enter the verification code sent to your email',
|
|
24
|
-
},
|
|
25
|
-
phoneCode: {
|
|
26
|
-
subtitle: 'Enter the verification code sent to your phone',
|
|
27
|
-
},
|
|
28
|
-
continue: {
|
|
29
|
-
subtitle: 'Please fill in the remaining details to continue.',
|
|
30
|
-
actionText: 'Already have an account?',
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
signIn: {
|
|
34
|
-
start: {
|
|
35
|
-
title: 'Sign in to {{applicationName}}',
|
|
36
|
-
subtitle: 'Welcome back! Please sign in to continue',
|
|
37
|
-
actionText: 'Don’t have an account?',
|
|
38
|
-
},
|
|
39
|
-
password: {
|
|
40
|
-
subtitle: 'Enter the password associated with your account',
|
|
41
|
-
},
|
|
42
|
-
forgotPasswordAlternativeMethods: {
|
|
43
|
-
label__alternativeMethods: 'Or, sign in with another method',
|
|
44
|
-
},
|
|
45
|
-
resetPassword: {
|
|
46
|
-
title: 'Set new password',
|
|
47
|
-
},
|
|
48
|
-
phoneCodeMfa: {
|
|
49
|
-
subtitle: 'To continue, please enter the verification code sent to your phone',
|
|
50
|
-
},
|
|
51
|
-
totpMfa: {
|
|
52
|
-
subtitle: 'To continue, please enter the verification code generated by your authenticator app',
|
|
53
|
-
},
|
|
54
|
-
backupCodeMfa: {
|
|
55
|
-
subtitle: 'Your backup code is the one you got when setting up two-step authentication.',
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
userProfile: {
|
|
59
|
-
formButtonPrimary__continue: 'Save',
|
|
60
|
-
start: {
|
|
61
|
-
headerTitle__account: 'Profile details',
|
|
62
|
-
profileSection: {
|
|
63
|
-
primaryButton: 'Edit profile',
|
|
64
|
-
},
|
|
65
|
-
emailAddressesSection: {
|
|
66
|
-
detailsAction__unverified: 'Verify',
|
|
67
|
-
destructiveAction: 'Remove email',
|
|
68
|
-
},
|
|
69
|
-
mfaSection: {
|
|
70
|
-
phoneCode: {
|
|
71
|
-
destructiveActionLabel: 'Remove',
|
|
72
|
-
},
|
|
73
|
-
backupCodes: {
|
|
74
|
-
actionLabel__regenerate: 'Regenerate',
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
dangerSection: {
|
|
78
|
-
title: 'Account termination',
|
|
79
|
-
deleteAccountButton: 'Delete account',
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
profilePage: {
|
|
83
|
-
imageFormSubtitle: 'Upload',
|
|
84
|
-
imageFormDestructiveActionSubtitle: 'Remove',
|
|
85
|
-
},
|
|
86
|
-
phoneNumberPage: {
|
|
87
|
-
title: 'Add a phone number',
|
|
88
|
-
infoText:
|
|
89
|
-
'A text message containing a verification link will be sent to this phone number. Message and data rates may apply.',
|
|
90
|
-
},
|
|
91
|
-
connectedAccountPage: {
|
|
92
|
-
socialButtonsBlockButton: '{{provider|titleize}}',
|
|
93
|
-
},
|
|
94
|
-
mfaPhoneCodePage: {
|
|
95
|
-
subtitle__availablePhoneNumbers:
|
|
96
|
-
'Select an existing phone number to register for SMS code two-step verification or add a new one.',
|
|
97
|
-
subtitle__unavailablePhoneNumbers:
|
|
98
|
-
'There are no available phone numbers to register for SMS code two-step verification, please add a new one.',
|
|
99
|
-
},
|
|
100
|
-
deletePage: {
|
|
101
|
-
actionDescription: 'Type "Delete account" below to continue.',
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
organizationSwitcher: {
|
|
105
|
-
action__createOrganization: 'Create organization',
|
|
106
|
-
action__manageOrganization: 'Manage',
|
|
107
|
-
},
|
|
108
|
-
organizationProfile: {
|
|
109
|
-
profilePage: {
|
|
110
|
-
title: 'Update Profile',
|
|
111
|
-
dangerSection: {
|
|
112
|
-
title: 'Danger',
|
|
113
|
-
leaveOrganization: {
|
|
114
|
-
actionDescription: 'Type "{{organizationName}}" below to continue.',
|
|
115
|
-
},
|
|
116
|
-
deleteOrganization: {
|
|
117
|
-
actionDescription: 'Type "{{organizationName}}" below to continue.',
|
|
118
|
-
},
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
invitePage: {
|
|
122
|
-
title: 'Invite new members',
|
|
123
|
-
subtitle: 'Enter or paste one or more email addresses, separated by spaces or commas.',
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
createOrganization: {
|
|
127
|
-
title: 'Create organization',
|
|
128
|
-
},
|
|
129
|
-
organizationList: {
|
|
130
|
-
title: 'Choose an account',
|
|
131
|
-
titleWithoutPersonal: 'Choose an organization',
|
|
132
|
-
},
|
|
133
|
-
};
|
|
134
|
-
```
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: '`User.getOrganizationInvitations` arguments changed'
|
|
3
|
-
matcher: "\\.getOrganizationInvitations\\("
|
|
4
|
-
category: 'pagination-args'
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
There have been a couple changes to the pagination arguments that can be passed into this function - `limit` has been renamed to `pageSize`, and `offset` has been renamed to `initialPage`. This will help to make it more clear and simple to reason about pagination control. Example of how changes might look below:
|
|
8
|
-
|
|
9
|
-
```diff
|
|
10
|
-
const { data } = await user.getOrganizationInvitations({
|
|
11
|
-
- limit: 10,
|
|
12
|
-
+ pageSize: 10,
|
|
13
|
-
- offset: 10,
|
|
14
|
-
+ initialPage: 2,
|
|
15
|
-
})
|
|
16
|
-
```
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: '`User.getOrganizationMemberships` arguments changed'
|
|
3
|
-
matcher: "\\.getOrganizationMemberships\\("
|
|
4
|
-
category: 'pagination-args'
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
There have been a couple changes to the pagination arguments that can be passed into this function - `limit` has been renamed to `pageSize`, and `offset` has been renamed to `initialPage`. This will help to make it more clear and simple to reason about pagination control. Example of how changes might look below:
|
|
8
|
-
|
|
9
|
-
```diff
|
|
10
|
-
const { data } = await user.getOrganizationMemberships({
|
|
11
|
-
- limit: 10,
|
|
12
|
-
+ pageSize: 10,
|
|
13
|
-
- offset: 10,
|
|
14
|
-
+ initialPage: 2,
|
|
15
|
-
})
|
|
16
|
-
```
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: '`User.getOrganizationSuggestions` arguments changed'
|
|
3
|
-
matcher: "\\.getOrganizationSuggestions\\("
|
|
4
|
-
category: 'pagination-args'
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
There have been a couple changes to the pagination arguments that can be passed into this function - `limit` has been renamed to `pageSize`, and `offset` has been renamed to `initialPage`. This will help to make it more clear and simple to reason about pagination control. Example of how changes might look below:
|
|
8
|
-
|
|
9
|
-
```diff
|
|
10
|
-
const { data } = await user.getOrganizationSuggestions({
|
|
11
|
-
- limit: 10,
|
|
12
|
-
+ pageSize: 10,
|
|
13
|
-
- offset: 10,
|
|
14
|
-
+ initialPage: 2,
|
|
15
|
-
})
|
|
16
|
-
```
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: '`ExternalAccount.avatarUrl` -> `ExternalAccount.imageUrl`'
|
|
3
|
-
matcher: "\\.avatarUrl"
|
|
4
|
-
replaceWithString: '.imageUrl'
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
The `avatarUrl` property of any [`ExternalAcccount` object](https://clerk.com/docs/references/javascript/external-account) has been changed to `imageUrl`.
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "`Organization.create('x')` -> `Organization.create({ name: 'x' })`"
|
|
3
|
-
matcher: "Organization\\.create\\(\\s*[\"']"
|
|
4
|
-
matcherFlags: 'm'
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
Passing a string as an argument to `Organization.create` is no longer possible - instead, pass an object with the `name` property.
|
|
8
|
-
|
|
9
|
-
```diff
|
|
10
|
-
- Organization.create('...');
|
|
11
|
-
+ Organization.create({ name: '...' });
|
|
12
|
-
```
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: '`Organization.getDomains` arguments changed'
|
|
3
|
-
matcher: "\\.getDomains\\("
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
There have been a couple changes to the pagination arguments that can be passed into this function - `limit` has been renamed to `pageSize`, and `offset` has been renamed to `initialPage`. This will help to make it more clear and simple to reason about pagination control. Example of how changes might look below:
|
|
7
|
-
|
|
8
|
-
```diff
|
|
9
|
-
const { data } = await organization.getDomains({
|
|
10
|
-
- limit: 10,
|
|
11
|
-
+ pageSize: 10,
|
|
12
|
-
- offset: 10,
|
|
13
|
-
+ initialPage: 2,
|
|
14
|
-
})
|
|
15
|
-
```
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: '`Organization.getInvitations` arguments changed'
|
|
3
|
-
matcher: "\\.getInvitations\\("
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
There have been a couple changes to the pagination arguments that can be passed into this function - `limit` has been renamed to `pageSize`, and `offset` has been renamed to `initialPage`. This will help to make it more clear and simple to reason about pagination control. Example of how changes might look below:
|
|
7
|
-
|
|
8
|
-
```diff
|
|
9
|
-
const { data } = await organization.getInvitations({
|
|
10
|
-
- limit: 10,
|
|
11
|
-
+ pageSize: 10,
|
|
12
|
-
- offset: 10,
|
|
13
|
-
+ initialPage: 2,
|
|
14
|
-
})
|
|
15
|
-
```
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: '`Organization.getMembershipRequests` arguments changed'
|
|
3
|
-
matcher: "\\.getMembershipRequests\\("
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
There have been a couple changes to the pagination arguments that can be passed into this function - `limit` has been renamed to `pageSize`, and `offset` has been renamed to `initialPage`. This will help to make it more clear and simple to reason about pagination control. Example of how changes might look below:
|
|
7
|
-
|
|
8
|
-
```diff
|
|
9
|
-
const { data } = await organization.getMembershipRequests({
|
|
10
|
-
- limit: 10,
|
|
11
|
-
+ pageSize: 10,
|
|
12
|
-
- offset: 10,
|
|
13
|
-
+ initialPage: 2,
|
|
14
|
-
})
|
|
15
|
-
```
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: '`Organization.getMemberships` arguments changed'
|
|
3
|
-
matcher: "\\.getMemberships\\("
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
There have been a couple changes to the pagination arguments that can be passed into this function - `limit` has been renamed to `pageSize`, and `offset` has been renamed to `initialPage`. This will help to make it more clear and simple to reason about pagination control. Example of how changes might look below:
|
|
7
|
-
|
|
8
|
-
```diff
|
|
9
|
-
const { data } = await organization.getMemberships({
|
|
10
|
-
- limit: 10,
|
|
11
|
-
+ pageSize: 10,
|
|
12
|
-
- offset: 10,
|
|
13
|
-
+ initialPage: 2,
|
|
14
|
-
})
|
|
15
|
-
```
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "`Organization.getPendingInvitations()` -> `Organization.getInvitations({ status: 'pending' })`"
|
|
3
|
-
matcher: "\\.getPendingInvitations\\("
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
The `Organization.getPendingInvitations()` method has been removed. You can use `Organization.getInvitations` instead.
|
|
7
|
-
|
|
8
|
-
```diff
|
|
9
|
-
- Organization.getPendingInvitations();
|
|
10
|
-
+ Organization.getInvitations({ status: 'pending' });
|
|
11
|
-
```
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: '`Organization.getRoles` arguments changed'
|
|
3
|
-
matcher: "\\.getRoles\\("
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
There have been a couple changes to the pagination arguments that can be passed into this function - `limit` has been renamed to `pageSize`, and `offset` has been renamed to `initialPage`. This will help to make it more clear and simple to reason about pagination control. Example of how changes might look below:
|
|
7
|
-
|
|
8
|
-
```diff
|
|
9
|
-
const { data } = await organization.getRoles({
|
|
10
|
-
- limit: 10,
|
|
11
|
-
+ pageSize: 10,
|
|
12
|
-
- offset: 10,
|
|
13
|
-
+ initialPage: 2,
|
|
14
|
-
})
|
|
15
|
-
```
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: '`Organization.logoUrl` -> `Organization.imageUrl`'
|
|
3
|
-
matcher: "\\.logoUrl"
|
|
4
|
-
replaceWithString: '.imageUrl'
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
The `logoUrl` property of any [`Organization` object](https://clerk.com/docs/references/javascript/organization/organization#organization) has been changed to `imageUrl`.
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: '`navigate` argument to `Clerk.load` replaced by `routerPush` and `routerReplace`'
|
|
3
|
-
matcher: "Clerk\\.load\\([\\s\\S]*?navigate:[\\s\\S]*?\\)"
|
|
4
|
-
matcherFlags: 'm'
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
The `navigate` option allowed developers to override the default navigation behavior with a custom function. However, navigate was only able to push, not replace routes. We have now added the capability for the router to push or replace, and as such, updated `Clerk.load` so that it can handle either depending on the circumstance.
|
|
8
|
-
|
|
9
|
-
Two new arguments have been added to options that can be passed to `Clerk.load` that replace the single `navigate` argument, and can be used to override the default navigation behavior for either a push or replace navigation. For more information on what push and replace mean in relation to the browser history api, [check out these wonderful MDN docs](https://developer.mozilla.org/en-US/docs/Web/API/History_API/Working_with_the_History_API).
|
|
10
|
-
|
|
11
|
-
If you’d like to keep the same behavior as you had with the single `navigate` argument, pass the exact same function to as both the `routerPush` and `routerReplace` arguments and the behavior will be identical. For example:
|
|
12
|
-
|
|
13
|
-
```diff
|
|
14
|
-
- Clerk.load({ navigate: x => x })
|
|
15
|
-
+ Clerk.load({ routerPush: x => x, routerReplace: x => x })
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
However, you now have the option to differentiate behavior based on whether the navigation will be a push or replace.
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: '`User.getOrganizationInvitations` arguments changed'
|
|
3
|
-
matcher: "\\.getOrganizationInvitations\\("
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
There have been a couple changes to the pagination arguments that can be passed into this function - `limit` has been renamed to `pageSize`, and `offset` has been renamed to `initialPage`. This will help to make it more clear and simple to reason about pagination control. Example of how changes might look below:
|
|
7
|
-
|
|
8
|
-
```diff
|
|
9
|
-
const { data } = await user.getOrganizationInvitations({
|
|
10
|
-
- limit: 10,
|
|
11
|
-
+ pageSize: 10,
|
|
12
|
-
- offset: 10,
|
|
13
|
-
+ initialPage: 2,
|
|
14
|
-
})
|
|
15
|
-
```
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: '`User.getOrganizationMemberships` arguments changed'
|
|
3
|
-
matcher: "\\.getOrganizationMemberships\\("
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
There have been a couple changes to the pagination arguments that can be passed into this function - `limit` has been renamed to `pageSize`, and `offset` has been renamed to `initialPage`. This will help to make it more clear and simple to reason about pagination control. Example of how changes might look below:
|
|
7
|
-
|
|
8
|
-
```diff
|
|
9
|
-
const { data } = await user.getOrganizationMemberships({
|
|
10
|
-
- limit: 10,
|
|
11
|
-
+ pageSize: 10,
|
|
12
|
-
- offset: 10,
|
|
13
|
-
+ initialPage: 2,
|
|
14
|
-
})
|
|
15
|
-
```
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: '`User.getOrganizationSuggestions` arguments changed'
|
|
3
|
-
matcher: "\\.getOrganizationSuggestions\\("
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
There have been a couple changes to the pagination arguments that can be passed into this function - `limit` has been renamed to `pageSize`, and `offset` has been renamed to `initialPage`. This will help to make it more clear and simple to reason about pagination control. Example of how changes might look below:
|
|
7
|
-
|
|
8
|
-
```diff
|
|
9
|
-
const { data } = await user.getOrganizationSuggestions({
|
|
10
|
-
- limit: 10,
|
|
11
|
-
+ pageSize: 10,
|
|
12
|
-
- offset: 10,
|
|
13
|
-
+ initialPage: 2,
|
|
14
|
-
})
|
|
15
|
-
```
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "`User.update({ password: 'x' })` -> `User.updatePassword('x')`"
|
|
3
|
-
matcher: "\\.update\\([\\s\\S]*?password:[\\s\\S]*?\\)"
|
|
4
|
-
category: 'deprecation-removal'
|
|
5
|
-
matcherFlags: 'm'
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
If you are updating a user's password via the [`User.update` method](https://clerk.com/docs/references/javascript/user/user#update), it must be changed to [`User.updatePassword`](https://clerk.com/docs/references/javascript/user/password-management#update-password) instead. This method will require the current password as well as the desired new password. We made this update to improve the security of password changes. Example below:
|
|
9
|
-
|
|
10
|
-
```diff
|
|
11
|
-
- user.update({ password: 'foo' });
|
|
12
|
-
|
|
13
|
-
+ user.updatePassword({
|
|
14
|
-
+ currentPassword: 'bar',
|
|
15
|
-
+ newPassword: 'foo',
|
|
16
|
-
+ signOutOfOtherSessions: true,
|
|
17
|
-
+ });
|
|
18
|
-
```
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: '`isMetamaskError` import moved under `/errors`'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?isMetamaskError[\\s\\S]*?from\\s+['\"]@clerk\\/(nextjs)[\\s\\S]*?['\"]"
|
|
4
|
-
matcherFlags: 'm'
|
|
5
|
-
category: 'top-level-imports'
|
|
6
|
-
replaceWithString: 'nextjs/errors'
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
The `isMetamaskError` 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 { isMetamaskError } from "@clerk/nextjs"
|
|
13
|
-
+ import { isMetamaskError } from "@clerk/nextjs/errors"
|
|
14
|
-
```
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: '`withClerkMiddleware` removed'
|
|
3
|
-
category: 'middleware'
|
|
4
|
-
matcher: "withClerkMiddleware\\("
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
`withClerkMiddleware` has been deprecated and is now removed in v5. We recommend moving to `clerkMiddleware` instead. Here’s an example of how the code would look before and after:
|
|
8
|
-
|
|
9
|
-
```js
|
|
10
|
-
// TODO
|
|
11
|
-
```
|
|
@@ -1,8 +0,0 @@
|
|
|
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.
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
```
|
|
@@ -1,50 +0,0 @@
|
|
|
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
|
-
```
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
```
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
```
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
```
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
```
|
|
@@ -1,9 +0,0 @@
|
|
|
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.
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
```
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
```
|