@clerk/upgrade 0.2.1 → 0.4.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/constants/sdks.js +4 -5
- package/dist/guide-generators/core-2/backend/import-paths.mdx +3 -0
- package/dist/guide-generators/core-2/backend/index.js +22 -0
- package/dist/guide-generators/core-2/backend/intro.mdx +3 -0
- package/dist/guide-generators/core-2/chrome-extension/index.js +24 -0
- package/dist/guide-generators/core-2/chrome-extension/intro.mdx +3 -0
- package/dist/guide-generators/core-2/expo/index.js +25 -0
- package/dist/guide-generators/core-2/expo/intro.mdx +3 -0
- package/dist/guide-generators/core-2/fastify/index.js +23 -0
- package/dist/guide-generators/core-2/fastify/intro.mdx +3 -0
- package/dist/guide-generators/core-2/gatsby/index.js +25 -0
- package/dist/guide-generators/core-2/gatsby/intro.mdx +3 -0
- package/dist/guide-generators/core-2/generate-all.sh +16 -0
- package/dist/guide-generators/core-2/js/index.js +28 -0
- package/dist/guide-generators/core-2/js/intro.mdx +3 -0
- package/dist/guide-generators/core-2/nextjs/import-changes.mdx +98 -0
- package/dist/guide-generators/core-2/nextjs/index.js +25 -0
- package/dist/guide-generators/core-2/nextjs/intro.mdx +3 -0
- package/dist/guide-generators/core-2/nextjs/middleware-changes.mdx +229 -0
- package/dist/guide-generators/core-2/nextjs/nextjs-version.mdx +6 -0
- package/dist/guide-generators/core-2/node/index.js +23 -0
- package/dist/guide-generators/core-2/node/intro.mdx +3 -0
- package/dist/guide-generators/core-2/node/node-setters-removals.mdx +34 -0
- package/dist/guide-generators/core-2/overview/index.js +12 -0
- package/dist/guide-generators/core-2/overview/intro.mdx +25 -0
- package/dist/guide-generators/core-2/react/hof-removals.mdx +3 -0
- package/dist/guide-generators/core-2/react/index.js +25 -0
- package/dist/guide-generators/core-2/react/intro.mdx +3 -0
- package/dist/guide-generators/core-2/remix/index.js +25 -0
- package/dist/guide-generators/core-2/remix/intro.mdx +3 -0
- package/dist/guide-generators/core-2/retheme/index.js +23 -0
- package/dist/guide-generators/core-2/retheme/intro.mdx +9 -0
- package/dist/guide-generators/core-2/shared/after-sign-x-handling.mdx +10 -0
- package/dist/guide-generators/core-2/shared/cli.mdx +22 -0
- package/dist/guide-generators/core-2/shared/deprecation-removals.mdx +6 -0
- package/dist/guide-generators/core-2/shared/image-url.mdx +3 -0
- package/dist/guide-generators/core-2/shared/node-version.mdx +3 -0
- package/dist/guide-generators/core-2/shared/orgs-claim.mdx +50 -0
- package/dist/guide-generators/core-2/shared/pagination-args.mdx +3 -0
- package/dist/guide-generators/core-2/shared/pagination-return.mdx +3 -0
- package/dist/guide-generators/core-2/shared/path-routing.mdx +57 -0
- package/dist/guide-generators/core-2/shared/prepare.mdx +10 -0
- package/dist/guide-generators/core-2/shared/react-version.mdx +20 -0
- package/dist/guide-generators/core-2/shared/redesign-preview.mdx +5 -0
- package/dist/guide-generators/core-2/shared/update-version.mdx +18 -0
- package/dist/guide-generators/text-generation.js +109 -0
- package/dist/util/load-change.js +3 -2
- package/dist/versions/{v5 → core-2}/backend/authenticaterequest-params-change.md +1 -0
- package/dist/versions/{v5 → core-2}/backend/clockskewinseconds.md +1 -0
- package/dist/versions/{v5 → core-2}/backend/constants-import-path-move.md +1 -0
- package/dist/versions/{v5 → core-2}/backend/createauthenticaterequest-import-path-move.md +1 -0
- package/dist/versions/{v5 → core-2}/backend/createclerkclient-apikey.md +1 -0
- package/dist/versions/{v5 → core-2}/backend/createclerkclient-frontendapi.md +1 -0
- package/dist/versions/{v5 → core-2}/backend/createisomorphicrequest-import-path-move.md +1 -0
- package/dist/versions/{v5 → core-2}/backend/createisomorphicrequest-removed.md +1 -0
- package/dist/versions/{v5 → core-2}/backend/decodejwt-import-path-move.md +1 -0
- package/dist/versions/{v5 → core-2}/backend/getorganizationmembershiplist-return-signature.md +1 -0
- package/dist/versions/{v5 → core-2}/backend/httpoptions-removed.md +2 -1
- package/dist/versions/{v5 → core-2}/backend/organizationjson-logourl.md +1 -0
- package/dist/versions/{v5 → core-2}/backend/organizationmembershippublicuserdatajson-profileimageurl.md +1 -0
- package/dist/versions/{v5 → core-2}/backend/redirect-import-path-move.md +1 -0
- package/dist/versions/{v5 → core-2}/backend/signjwt-import-path-move.md +1 -0
- package/dist/versions/{v5 → core-2}/backend/signjwterror-import-move.md +1 -0
- package/dist/versions/{v5 → core-2}/backend/tokenverificationerror-import-move.md +1 -0
- package/dist/versions/{v5 → core-2}/backend/tokenverificationerroraction-import-move.md +1 -0
- package/dist/versions/{v5 → core-2}/backend/tokenverificationerrorcode-import-move.md +1 -0
- package/dist/versions/{v5 → core-2}/backend/tokenverificationerrorreason-import-move.md +1 -0
- package/dist/versions/{v5 → core-2}/backend/userjson-profileimageurl.md +1 -0
- package/dist/versions/{v5 → core-2}/backend/verifyjwt-import-path-move.md +1 -0
- package/dist/versions/{v5/chromeExtension → core-2/chrome-extension}/clerkprovider-tokencache.md +8 -10
- package/dist/versions/{v5 → core-2}/common/afterswitchorganizationurl.md +1 -0
- package/dist/versions/{v5 → core-2}/common/alternativemethods-backlink.md +1 -0
- package/dist/versions/{v5 → core-2}/common/api-key-to-secret-key.md +1 -0
- package/dist/versions/{v5 → core-2}/common/appearance-organizationpreview-organizationswitcher.md +1 -0
- package/dist/versions/core-2/common/appearance-variables-breaking-changes.md +15 -0
- package/dist/versions/{v5 → core-2}/common/button-to-organizationlistcreateorganizationactionbutton.md +1 -0
- package/dist/versions/{v5 → core-2}/common/card-changes.md +3 -2
- package/dist/versions/core-2/common/changed-localization-keys.md +180 -0
- package/dist/versions/{v5 → core-2}/common/clerkprovider-frontendapi-2.md +1 -0
- package/dist/versions/{v5 → core-2}/common/clerkprovideroptionswrapper-dropped.md +1 -0
- package/dist/versions/{v5 → core-2}/common/connected-accounts-dropdown.md +1 -0
- package/dist/versions/{v5 → core-2}/common/emaillinkerrorcode-import-change.md +1 -0
- package/dist/versions/{v5/js/external-account-avatarurl.md → core-2/common/externalaccount-avatarurl.md} +2 -2
- package/dist/versions/{v5/backend → core-2/common}/externalaccount-picture.md +1 -0
- package/dist/versions/{v5/backend → core-2/common}/externalaccountjson-avatarurl.md +1 -0
- package/dist/versions/{v5 → core-2}/common/frontend-api-to-publishable-key.md +1 -0
- package/dist/versions/{v5/backend → core-2/common}/getorganizationinvitationlist-return-signature.md +1 -0
- package/dist/versions/{v5 → core-2}/common/getorganizationinvitationlist-return-type-change.md +8 -5
- package/dist/versions/{v5/backend → core-2/common}/getorganizationlist-return-signature.md +1 -0
- package/dist/versions/{v5 → core-2}/common/getorganizationlist-return-type-change.md +2 -1
- package/dist/versions/{v5 → core-2}/common/getorganizationmembershiplist-return-type-change.md +2 -1
- package/dist/versions/{v5 → core-2}/common/isclerkapiresponserror-import-change.md +1 -0
- package/dist/versions/{v5 → core-2}/common/isemaillinkerror-import-change.md +1 -0
- package/dist/versions/{v5 → core-2}/common/isknownerror-import-change.md +1 -0
- package/dist/versions/core-2/common/ismetamaskerror-import-change.md +14 -0
- package/dist/versions/{v5 → core-2}/common/mfa-dropdown.md +1 -0
- package/dist/versions/{v5 → core-2}/common/min-react-version.md +2 -0
- package/dist/versions/{v5 → core-2}/common/multisessionappsupport-import-change.md +1 -1
- package/dist/versions/{v5 → core-2}/common/navigate-to-routerpush-routerreplace.md +1 -0
- package/dist/versions/core-2/common/new-localization-keys.md +115 -0
- package/dist/versions/{v5/js → core-2/common}/organization-getdomains-arguments-change.md +1 -0
- package/dist/versions/{v5/js → core-2/common}/organization-getinvitations-arguments-changed.md +1 -0
- package/dist/versions/{v5/js → core-2/common}/organization-getmembershiprequests-arguments-changed.md +1 -0
- package/dist/versions/{v5 → core-2}/common/organization-getmemberships-arguments-changed.md +1 -0
- package/dist/versions/{v5 → core-2}/common/organization-getroles-arguments-changed.md +1 -0
- package/dist/versions/{v5/js → core-2/common}/organization-logourl.md +1 -0
- package/dist/versions/{v5/backend → core-2/common}/organizationmembershippublicuserdata-profileimageurl.md +1 -0
- package/dist/versions/{v5 → core-2}/common/organizationprofile-settings.md +1 -0
- package/dist/versions/{v5 → core-2}/common/organizationswitcherpopoveractionbuttontext-removed.md +1 -0
- package/dist/versions/{v5 → core-2}/common/remove-identitypreview-avatar.md +1 -0
- package/dist/versions/{v5 → core-2}/common/remove-socialbuttonsblockbuttonarrow.md +1 -0
- package/dist/versions/core-2/common/removed-localization-keys.md +191 -0
- 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/common/user-getorganizationinvitations-arguments-chanaged.md → core-2/common/user-getorganizationinvitations-arguments-changed.md} +1 -0
- package/dist/versions/{v5/common/user-getorganizationmemberships-arguments-chanaged.md → core-2/common/user-getorganizationmemberships-arguments-changed.md} +1 -0
- package/dist/versions/{v5/common/user-getorganizationsuggestions-arguments-chanaged.md → core-2/common/user-getorganizationsuggestions-arguments-changed.md} +1 -0
- package/dist/versions/{v5/backend → core-2/common}/user-profileimageurl.md +1 -0
- package/dist/versions/{v5/js → core-2/common}/user-update-password.md +8 -9
- package/dist/versions/{v5 → core-2}/common/userbuttonpopoveractionbuttontext-removed.md +1 -0
- package/dist/versions/core-2/common/userbuttontrigger-userbuttonbox-invert.md +13 -0
- package/dist/versions/{v5 → core-2}/common/userprofile-security.md +1 -0
- package/dist/versions/{v5 → core-2}/common/withclerk-hof-removed.md +15 -14
- package/dist/versions/{v5 → core-2}/common/withclerk-removed.md +1 -0
- package/dist/versions/{v5 → core-2}/common/withsession-hof-removed.md +15 -14
- package/dist/versions/{v5 → core-2}/common/withsession-removed.md +1 -0
- package/dist/versions/{v5 → core-2}/common/withuser-hof-removed.md +15 -14
- package/dist/versions/{v5 → core-2}/common/withuser-removed-2.md +1 -2
- package/dist/versions/{v5 → core-2}/expo/apikey-to-publishable-key.md +1 -0
- package/dist/versions/{v5 → core-2}/expo/clerkprovider-frontendapi.md +1 -0
- package/dist/versions/{v5 → core-2}/fastify/clerkplugin-frontendapi.md +2 -1
- package/dist/versions/{v5 → core-2}/fastify/createclerkclient-apikey.md +1 -0
- package/dist/versions/{v5 → core-2}/fastify/createclerkclient-frontendapi.md +1 -0
- package/dist/versions/core-2/gatsby/api-url-value-change.md +8 -0
- package/dist/versions/{v5 → core-2}/gatsby/apikey-to-publishable-key.md +1 -0
- package/dist/versions/{v5 → core-2}/gatsby/createclerkclient-apikey.md +1 -0
- package/dist/versions/{v5 → core-2}/gatsby/createclerkclient-frontendapi.md +1 -0
- package/dist/versions/core-2/gatsby/withserverauth-return-type.md +35 -0
- package/dist/versions/core-2/index.js +34 -0
- package/dist/versions/{v5 → core-2}/js/experimental-canusecaptcha.md +1 -0
- package/dist/versions/{v5 → core-2}/js/experimental-captchasitekey.md +1 -0
- package/dist/versions/{v5 → core-2}/js/experimental-captchaurl.md +1 -0
- package/dist/versions/{v5 → core-2}/js/getorganizationmemberships.md +3 -6
- package/dist/versions/core-2/js/redirecttohome.md +13 -0
- package/dist/versions/{v5 → core-2}/js/signup-attemptweb3walletverification-generatedsignature.md +3 -2
- package/dist/versions/{v5 → core-2}/js/unstable-invitationupdate.md +1 -0
- package/dist/versions/{v5 → core-2}/js/unstable-membershipupdate.md +1 -0
- package/dist/versions/{v5 → core-2}/js/user-createexternalaccount-redirecturl.md +1 -0
- package/dist/versions/{v5/next → core-2/nextjs}/auth-import-change.md +1 -0
- package/dist/versions/{v5/next → core-2/nextjs}/auth-middleware-deprecated.md +8 -7
- package/dist/versions/{v5/next → core-2/nextjs}/authmiddleware-apikey.md +5 -7
- package/dist/versions/{v5/next → core-2/nextjs}/authmiddleware-frontendapi.md +2 -1
- package/dist/versions/{v5/next → core-2/nextjs}/authmiddleware-import-change.md +1 -0
- package/dist/versions/{v5/next → core-2/nextjs}/buildclerkprops-import-change.md +1 -0
- package/dist/versions/{v5/next → core-2/nextjs}/clerk-import-change.md +1 -0
- package/dist/versions/{v5/next → core-2/nextjs}/clerk-js-version-next-public.md +1 -0
- package/dist/versions/{v5/next → core-2/nextjs}/constants-import-change.md +2 -1
- package/dist/versions/{v5/next → core-2/nextjs}/createauthenticaterequest-import-change.md +1 -0
- package/dist/versions/{v5/next → core-2/nextjs}/createclerkclient-apikey.md +2 -1
- package/dist/versions/{v5/next → core-2/nextjs}/createclerkclient-frontendapi.md +2 -1
- package/dist/versions/{v5/next → core-2/nextjs}/createisomorphicrequest-import-change.md +1 -0
- package/dist/versions/{v5/next → core-2/nextjs}/currentuser-import-change.md +1 -0
- package/dist/versions/{v5/next → core-2/nextjs}/decodejwt-import-change.md +1 -0
- package/dist/versions/{v5/next → core-2/nextjs}/emaillinkerrorcode-import-change.md +1 -0
- package/dist/versions/{v5/next → core-2/nextjs}/getauth-apikey.md +2 -1
- package/dist/versions/{v5/next → core-2/nextjs}/import-api-url.md +2 -1
- package/dist/versions/{v5/next → core-2/nextjs}/import-api-version.md +2 -1
- package/dist/versions/{v5/next → core-2/nextjs}/import-clerk-js-url.md +2 -1
- package/dist/versions/{v5/next → core-2/nextjs}/import-clerk-js-version.md +2 -1
- package/dist/versions/{v5/next → core-2/nextjs}/import-domain.md +2 -1
- package/dist/versions/{v5/next → core-2/nextjs}/import-is-satellite.md +2 -1
- package/dist/versions/{v5/next → core-2/nextjs}/import-nextjs-api.md +7 -6
- package/dist/versions/{v5/next → core-2/nextjs}/import-nextjs-app-beta.md +2 -1
- package/dist/versions/{v5/next → core-2/nextjs}/import-nextjs-edge-middleware.md +1 -0
- package/dist/versions/{v5/next → core-2/nextjs}/import-nextjs-edge-middlewarefiles.md +1 -0
- package/dist/versions/{v5/next → core-2/nextjs}/import-nextjs-ssr.md +1 -0
- package/dist/versions/{v5/next → core-2/nextjs}/import-proxy-url.md +2 -1
- package/dist/versions/{v5/next → core-2/nextjs}/import-publishable-key.md +2 -1
- package/dist/versions/{v5/next → core-2/nextjs}/import-secret-key.md +2 -1
- package/dist/versions/{v5/next → core-2/nextjs}/import-sign-in-url.md +2 -1
- package/dist/versions/{v5/next → core-2/nextjs}/import-sign-up-url.md +2 -1
- package/dist/versions/{v5/next → core-2/nextjs}/isclerkapiresponserror-import-change.md +1 -0
- package/dist/versions/{v5/next → core-2/nextjs}/isemaillinkerror-import-change.md +1 -0
- package/dist/versions/{v5/next → core-2/nextjs}/isknownerror-import-change.md +1 -0
- package/dist/versions/{v5/next → core-2/nextjs}/min-nextjs-version.md +2 -0
- package/dist/versions/{v5/next → core-2/nextjs}/multisessionappsupport-import-change.md +1 -0
- package/dist/versions/{v5/next → core-2/nextjs}/next-public-clerk-js-url.md +2 -1
- package/dist/versions/{v5/next → core-2/nextjs}/redirect-import-change.md +1 -0
- package/dist/versions/{v5/next → core-2/nextjs}/redirecttosignin-import-path.md +2 -1
- package/dist/versions/{v5/next → core-2/nextjs}/redirecttosignup-import-path.md +2 -1
- package/dist/versions/{v5/next → core-2/nextjs}/signjwt-import-change.md +1 -0
- package/dist/versions/{v5/next → core-2/nextjs}/verifyjwt-import-change.md +1 -0
- package/dist/versions/{v5/next → core-2/nextjs}/verifytoken-import-change.md +1 -0
- package/dist/versions/core-2/nextjs/with-clerk-middleware-removed.md +56 -0
- package/dist/versions/{v5 → core-2}/node/cjs-esm-instance.md +1 -0
- package/dist/versions/{v5 → core-2}/node/clerkexpressrequireauth-apikey.md +1 -0
- package/dist/versions/{v5 → core-2}/node/clerkexpressrequireauth-frontendapi.md +1 -0
- package/dist/versions/{v5 → core-2}/node/clerkexpresswithauth-apikey.md +1 -0
- package/dist/versions/{v5 → core-2}/node/clerkexpresswithauth-frontendapi.md +1 -0
- package/dist/versions/{v5 → core-2}/node/createclerkclient-apikey.md +1 -0
- package/dist/versions/{v5 → core-2}/node/createclerkclient-frontendapi.md +1 -0
- package/dist/versions/{v5 → core-2}/node/createclerkexpressrequireauth-apikey.md +1 -0
- package/dist/versions/{v5 → core-2}/node/createclerkexpressrequireauth-frontendapi.md +1 -0
- package/dist/versions/{v5 → core-2}/node/createclerkexpresswithauth-apikey.md +1 -0
- package/dist/versions/{v5 → core-2}/node/createclerkexpresswithauth-frontendapi.md +1 -0
- package/dist/versions/{v5 → core-2}/node/legacyauthobject-removed.md +3 -3
- package/dist/versions/{v5 → core-2}/node/setclerkapikey.md +1 -0
- package/dist/versions/{v5 → core-2}/node/setclerkapiversion.md +1 -0
- package/dist/versions/{v5 → core-2}/node/setclerkhttpoptions.md +1 -0
- package/dist/versions/{v5 → core-2}/node/setclerkserverapiurl.md +1 -0
- package/dist/versions/core-2/react/api-url-value-change.md +8 -0
- package/dist/versions/{v5 → core-2}/remix/clerk-import-change.md +1 -0
- package/dist/versions/{v5 → core-2}/remix/clerkerrorboundary-removed.md +1 -0
- package/dist/versions/{v5 → core-2}/remix/createclerkclient-apikey.md +1 -0
- package/dist/versions/{v5 → core-2}/remix/getauth-apikey.md +1 -0
- package/dist/versions/{v5 → core-2}/remix/rootauthloader-apikey.md +1 -0
- package/dist/versions/{v5 → core-2}/remix/rootauthloader-frontendapi.md +1 -0
- package/dist/versions/{v5 → core-2}/shared/useorganizationlist-organizationlist.md +2 -2
- package/package.json +2 -1
- package/dist/util/generate-export-change.js +0 -7
- package/dist/util/step-sequencer.js +0 -31
- package/dist/versions/v5/backend/clerkoptions-type.md +0 -0
- package/dist/versions/v5/backend/organization-logourl.md +0 -6
- package/dist/versions/v5/common/aftersigninurl-behavior-change-2.md +0 -7
- package/dist/versions/v5/common/aftersignouturl-behavior-change.md +0 -7
- package/dist/versions/v5/common/aftersignupurl-behavior-change.md +0 -7
- package/dist/versions/v5/common/changed-localization-keys.md +0 -179
- package/dist/versions/v5/common/getroles-pagination.md +0 -15
- package/dist/versions/v5/common/ismetamaskerror-import-change.md +0 -13
- package/dist/versions/v5/common/new-localization-keys.md +0 -133
- package/dist/versions/v5/common/organization-getdomains-arguments-change.md +0 -15
- package/dist/versions/v5/common/organization-getinvitations-arguments-changed.md +0 -15
- package/dist/versions/v5/common/organization-getmembershiprequests-arguments-changed.md +0 -15
- package/dist/versions/v5/common/removed-localization-keys.md +0 -166
- package/dist/versions/v5/common/userbuttontrigger-userbuttonbox-invert.md +0 -12
- package/dist/versions/v5/gatsby/api-url-value-change.md +0 -8
- package/dist/versions/v5/gatsby/withserverauth-return-type.md +0 -43
- package/dist/versions/v5/index.js +0 -44
- package/dist/versions/v5/js/organization-getmemberships-arguments-changed.md +0 -15
- package/dist/versions/v5/js/organization-getroles-arguments-changed.md +0 -15
- package/dist/versions/v5/js/redirecttohome.md +0 -13
- 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/next/ismetamaskerror-import-change.md +0 -13
- 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 -10
- package/dist/versions/v5/react/api-url-value-change.md +0 -8
- package/dist/versions/v5/react/router-navigate.md +0 -18
- /package/dist/versions/{v5 → core-2}/backend/api-url-value-changed.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/createemail-removed.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/getpendingorganizationinvitationlist.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/membershiprole.md +0 -0
- /package/dist/versions/{v5 → core-2}/backend/pkgversion.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/handlemagiclinkverification.md +0 -0
- /package/dist/versions/{v5 → core-2}/common/ismagiclinkerror.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/js → core-2/common}/organization-create-string.md +0 -0
- /package/dist/versions/{v5/js → core-2/common}/organization-getpendinginvitations.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/userprofile-prop.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}/gatsby/clerk-import-change.md +0 -0
- /package/dist/versions/{v5 → core-2}/js/clerk-isready-removed.md +0 -0
- /package/dist/versions/{v5 → core-2}/js/lastorganizationinvitation-member.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 → core-2}/node/api-url-value-change.md +0 -0
- /package/dist/versions/{v5 → core-2}/node/clerk-import-change.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,44 +0,0 @@
|
|
|
1
|
-
import createLoader from '../../util/load-change.js';
|
|
2
|
-
const load = createLoader({
|
|
3
|
-
version: '5',
|
|
4
|
-
baseUrl: 'https://clerk.com/docs/upgrade-guides/v5'
|
|
5
|
-
});
|
|
6
|
-
const reactChangesList = ['magiclinkerrorcode', 'usemagiclink', 'ismagiclinkerror', 'magiclinkerror', 'handlemagiclinkverification', 'clerkprovider-frontendapi-2', 'setsession', 'navigate-to-routerpush-routerreplace', 'afterswitchorganizationurl', 'appearance-organizationpreview-organizationswitcher', 'useorganization-invitationlist', 'useorganization-membershiplist', 'useorganizations', 'userprofile-prop', 'organizationprofile-settings', 'userprofile-security', 'mfa-dropdown', 'connected-accounts-dropdown', 'userbuttonpopoveractionbuttontext-removed', 'userbuttontrigger-userbuttonbox-invert', 'organizationswitcherpopoveractionbuttontext-removed', 'card-changes', 'alternativemethods-backlink', 'button-to-organizationlistcreateorganizationactionbutton', 'remove-socialbuttonsblockbuttonarrow', 'remove-identitypreview-avatar', 'withsession-removed', 'withclerk-removed', 'withuser-removed-2', 'withclerk-hof-removed', 'withsession-hof-removed', 'withuser-hof-removed', 'multisessionappsupport-import-change', 'clerkprovideroptionswrapper-dropped', 'aftersignouturl-behavior-change', 'aftersigninurl-behavior-change-2', 'aftersignupurl-behavior-change', 'new-localization-keys', 'removed-localization-keys', 'changed-localization-keys', 'signoutcallback-to-redirecturl', 'min-react-version', 'getorganizationlist-return-type-change', 'getorganizationinvitationlist-return-type-change', 'getorganizationmembershiplist-return-type-change', 'organization-getroles-arguments-changed', 'organization-getmemberships-arguments-changed', 'organization-getdomains-arguments-change', 'organization-getinvitations-arguments-changed', 'organization-getmembershiprequests-arguments-changed', 'user-getorganizationinvitations-arguments-chanaged', 'user-getorganizationsuggestions-arguments-chanaged', 'user-getorganizationmemberships-arguments-chanaged'];
|
|
7
|
-
export default {
|
|
8
|
-
nextjs: load('next', ['api-key-to-secret-key', 'frontend-api-to-publishable-key', 'with-clerk-middleware-removed', 'auth-middleware-deprecated', 'clerk-js-version-next-public', 'authmiddleware-apikey', 'authmiddleware-frontendapi', 'createclerkclient-apikey', 'createclerkclient-frontendapi', 'getauth-apikey', 'clerkprovider-frontendapi-2', 'import-nextjs-app-beta', 'import-nextjs-ssr', 'import-nextjs-edge-middleware', 'import-nextjs-edge-middlewarefiles', 'import-api-url', 'import-api-version', 'import-clerk-js-url', 'import-clerk-js-version', 'import-domain', 'import-is-satellite', 'import-proxy-url', 'import-publishable-key', 'import-secret-key', 'import-sign-in-url', 'import-sign-up-url', 'import-nextjs-api', 'api-url-value-change', 'ismagiclinkerror', 'usemagiclink', 'magiclinkerrorcode', 'setsession', 'organizationprofile-settings', 'userprofile-security', 'mfa-dropdown', 'connected-accounts-dropdown', 'userbuttonpopoveractionbuttontext-removed', 'userbuttontrigger-userbuttonbox-invert', 'organizationswitcherpopoveractionbuttontext-removed', 'card-changes', 'alternativemethods-backlink', 'button-to-organizationlistcreateorganizationactionbutton', 'remove-socialbuttonsblockbuttonarrow', 'remove-identitypreview-avatar', 'multisessionappsupport-import-change', 'auth-import-change', 'currentuser-import-change', 'authmiddleware-import-change', 'buildclerkprops-import-change', 'verifytoken-import-change', 'verifyjwt-import-change', 'decodejwt-import-change', 'signjwt-import-change', 'constants-import-change', 'createauthenticaterequest-import-change', 'createisomorphicrequest-import-change', 'clerk-import-change', 'isclerkapiresponserror-import-change', 'isemaillinkerror-import-change', 'isknownerror-import-change', 'ismetamaskerror-import-change', 'withsession-removed', 'withclerk-removed', 'withuser-removed-2', 'withclerk-hof-removed', 'withsession-hof-removed', 'withuser-hof-removed', 'next-public-clerk-js-url', 'aftersignouturl-behavior-change', 'aftersigninurl-behavior-change-2', 'aftersignupurl-behavior-change', 'new-localization-keys', 'removed-localization-keys', 'changed-localization-keys', 'signoutcallback-to-redirecturl', 'min-nextjs-version', 'redirecttosignin-import-path', 'redirecttosignup-import-path', 'getorganizationlist-return-type-change', 'getorganizationinvitationlist-return-type-change', 'getorganizationmembershiplist-return-type-change', 'organization-getroles-arguments-changed', 'organization-getmemberships-arguments-changed', 'organization-getdomains-arguments-change', 'organization-getinvitations-arguments-changed', 'organization-getmembershiprequests-arguments-changed', 'user-getorganizationinvitations-arguments-chanaged', 'user-getorganizationsuggestions-arguments-chanaged', 'user-getorganizationmemberships-arguments-chanaged']),
|
|
9
|
-
// since we export clerk-react at the top level from the gatsby plugin
|
|
10
|
-
// if you're using gatsby, we also need to scan for the react changes
|
|
11
|
-
gatsby: load('gatsby', dedupeMerge(reactChangesList, ['api-key-to-secret-key', 'createclerkclient-apikey', 'apikey-to-publishable-key', 'createclerkclient-frontendapi', 'ismagiclinkerror', 'usemagiclink', 'magiclinkerrorcode', 'setsession', 'api-url-value-change', 'withserverauth-return-type', 'clerk-import-change'])),
|
|
12
|
-
remix: load('remix', ['clerkerrorboundary-removed', 'createclerkclient-apikey', 'rootauthloader-apikey', 'getauth-apikey', 'clerkprovider-frontendapi-2', 'rootauthloader-frontendapi', 'frontend-api-to-publishable-key', 'api-key-to-secret-key', 'ismagiclinkerror', 'magiclinkerrorcode', 'usemagiclink', 'setsession', 'aftersignouturl-behavior-change', 'aftersigninurl-behavior-change-2', 'aftersignupurl-behavior-change', 'new-localization-keys', 'removed-localization-keys', 'changed-localization-keys', 'signoutcallback-to-redirecturl', 'clerk-import-change', 'getorganizationlist-return-type-change', 'getorganizationinvitationlist-return-type-change', 'getorganizationmembershiplist-return-type-change', 'organization-getroles-arguments-changed', 'organization-getmemberships-arguments-changed', 'organization-getdomains-arguments-change', 'organization-getinvitations-arguments-changed', 'organization-getmembershiprequests-arguments-changed', 'user-getorganizationinvitations-arguments-chanaged', 'user-getorganizationsuggestions-arguments-chanaged', 'user-getorganizationmemberships-arguments-chanaged']),
|
|
13
|
-
expo: load('expo', ['apikey-to-publishable-key', 'ismagiclinkerror', 'usemagiclink', 'magiclinkerrorcode', 'setsession', 'organizationprofile-settings', 'userprofile-security', 'mfa-dropdown', 'connected-accounts-dropdown', 'userbuttonpopoveractionbuttontext-removed', 'userbuttontrigger-userbuttonbox-invert', 'organizationswitcherpopoveractionbuttontext-removed', 'card-changes', 'alternativemethods-backlink', 'button-to-organizationlistcreateorganizationactionbutton', 'remove-socialbuttonsblockbuttonarrow', 'remove-identitypreview-avatar', 'aftersignouturl-behavior-change', 'aftersigninurl-behavior-change-2', 'aftersignupurl-behavior-change', 'new-localization-keys', 'removed-localization-keys', 'changed-localization-keys', 'signoutcallback-to-redirecturl', 'getorganizationlist-return-type-change', 'getorganizationinvitationlist-return-type-change', 'getorganizationmembershiplist-return-type-change']),
|
|
14
|
-
fastify: load('fastify', ['api-key-to-secret-key', 'api-url-value-change', 'frontend-api-to-publishable-key', 'createclerkclient-apikey', 'createclerkclient-frontendapi', 'clerkplugin-frontendapi', 'clerk-import-change']),
|
|
15
|
-
node: load('node', ['api-key-to-secret-key', 'api-url-value-change', 'frontend-api-to-publishable-key', 'clerkexpressrequireauth-apikey', 'clerkexpresswithauth-apikey', 'createclerkclient-apikey', 'createclerkexpressrequireauth-apikey', 'createclerkexpresswithauth-apikey', 'createclerkclient-frontendapi', 'createclerkexpressrequireauth-frontendapi', 'clerkexpressrequireauth-frontendapi', 'createclerkexpresswithauth-frontendapi', 'clerkexpresswithauth-frontendapi', 'setclerkapikey', 'setclerkapiversion', 'setclerkhttpoptions', 'setclerkserverapiurl', 'cjs-esm-instance', 'legacyauthobject-removed', 'clerk-import-change']),
|
|
16
|
-
react: load('react', reactChangesList),
|
|
17
|
-
js: load('js', ['magiclinkerror', 'ismagiclinkerror', 'magiclinkerrorcode', 'usemagiclink', 'handlemagiclinkverification', 'external-account-avatarurl',
|
|
18
|
-
// shared w/ all
|
|
19
|
-
'organization-logourl',
|
|
20
|
-
// shared w/ all
|
|
21
|
-
'user-orgpublicdata-profileimageurl',
|
|
22
|
-
// shared w/ all
|
|
23
|
-
'setsession', 'user-update-password',
|
|
24
|
-
// shared w/ all
|
|
25
|
-
'experimental-canusecaptcha', 'experimental-captchaurl', 'experimental-captchasitekey', 'getorganizationmemberships', 'lastorganizationinvitation-member', 'unstable-invitationupdate', 'unstable-membershipupdate', 'organization-create-string',
|
|
26
|
-
// maybe shared with all?
|
|
27
|
-
'organization-getpendinginvitations',
|
|
28
|
-
// maybe shared with all?
|
|
29
|
-
'user-createexternalaccount-redirecturl',
|
|
30
|
-
// maybe shared with all?
|
|
31
|
-
'signup-attemptweb3walletverification-generatedsignature', 'redirecttohome', 'organizationprofile-settings', 'userprofile-security', 'mfa-dropdown', 'connected-accounts-dropdown', 'userbuttonpopoveractionbuttontext-removed', 'userbuttontrigger-userbuttonbox-invert', 'organizationswitcherpopoveractionbuttontext-removed', 'card-changes', 'alternativemethods-backlink', 'button-to-organizationlistcreateorganizationactionbutton', 'remove-socialbuttonsblockbuttonarrow', 'remove-identitypreview-avatar', 'organization-getroles-arguments-changed', 'organization-getdomains-arguments-change', 'organization-getmembershiprequests-arguments-changed', 'organization-getmemberships-arguments-changed', 'organization-getinvitations-arguments-changed', 'user-getorganizationinvitations-arguments-chanaged', 'user-getorganizationsuggestions-arguments-chanaged', 'user-getorganizationmemberships-arguments-chanaged', 'aftersignouturl-behavior-change', 'aftersigninurl-behavior-change-2', 'aftersignupurl-behavior-change', 'clerk-isready-removed', 'new-localization-keys', 'removed-localization-keys', 'changed-localization-keys', 'signoutcallback-to-redirecturl']),
|
|
32
|
-
shared: load('shared', ['magiclinkerror', 'ismagiclinkerror', 'magiclinkerrorcode', 'usemagiclink', 'getrequesturl', 'organizationcontext', 'useorganizationlist-organizationlist' // shared outside this pkg?
|
|
33
|
-
]),
|
|
34
|
-
|
|
35
|
-
chromeExtension: load('chromeExtension', ['clerkprovider-tokencache']),
|
|
36
|
-
localizations: load('localization', ['new-localization-keys', 'removed-localization-keys', 'changed-localization-keys']),
|
|
37
|
-
backend: load('backend', ['api-url-value-changed', 'verifyjwt-import-path-move', 'decodejwt-import-path-move', 'signjwt-import-path-move', 'constants-import-path-move', 'redirect-import-path-move', 'createauthenticaterequest-import-path-move', 'createisomorphicrequest-import-path-move', 'createclerkclient-frontendapi', 'authenticaterequest-params-change', 'clerk-import', 'externalaccount-picture', 'externalaccountjson-avatarurl', 'organization-logourl', 'organizationjson-logourl', 'user-profileimageurl', 'userjson-profileimageurl', 'organizationmembershippublicuserdata-profileimageurl', 'organizationmembershippublicuserdatajson-profileimageurl', 'clockskewinseconds', 'pkgversion', 'client-unstableoptions-removed', 'httpoptions-removed', 'createisomorphicrequest-removed', 'createemail-removed', 'signjwterror-import-move', 'tokenverificationerror-import-move', 'tokenverificationerroraction-import-move', 'tokenverificationerrorreason-import-move', 'membershiprole', 'getorganizationmembershiplist-return-signature', 'getorganizationlist-return-signature', 'getorganizationinvitationlist-return-signature', 'buildrequesturl-removed']),
|
|
38
|
-
types: [],
|
|
39
|
-
redwood: [],
|
|
40
|
-
express: []
|
|
41
|
-
};
|
|
42
|
-
function dedupeMerge(arr1, arr2) {
|
|
43
|
-
return [...new Set(arr1.concat(arr2))];
|
|
44
|
-
}
|
|
@@ -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,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,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: '`Clerk.redirectToHome()` removed'
|
|
3
|
-
matcher: "Clerk.redirectToHome\\("
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
The `Clerk.redirectToHome` method has been removed. If you are looking for a generic replacement for this method, you can instead use `window.Clerk.redirectToAfterSignUp()` or `window.Clerk.redirectAfterSignIn()`.
|
|
7
|
-
|
|
8
|
-
To set the `afterSignUpUrl` or `afterSignInUrl`, you can:
|
|
9
|
-
|
|
10
|
-
- [pass the desired values into ClerkProvider](https://clerk.com/docs/components/clerk-provider#properties)
|
|
11
|
-
- if using nextjs SDK, set with `NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL` or `NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL`
|
|
12
|
-
- if using remix SDK, set with `CLERK_AFTER_SIGN_IN_URL` or `CLERK_AFTER_SIGN_UP_URL`
|
|
13
|
-
- If not using a react-based SDK, they can be passed into `Clerk.load` as such: `Clerk.load({ afterSignUpUrl: 'x', afterSignInUrl: 'y' })`
|
|
@@ -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,13 +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
|
-
replaceWithString: 'nextjs/errors'
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
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:
|
|
9
|
-
|
|
10
|
-
```diff
|
|
11
|
-
- import { isMetamaskError } from "@clerk/nextjs"
|
|
12
|
-
+ import { isMetamaskError } from "@clerk/nextjs/errors"
|
|
13
|
-
```
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: '`withClerkMiddleware` removed'
|
|
3
|
-
matcher: "withClerkMiddleware\\("
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
`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:
|
|
7
|
-
|
|
8
|
-
```js
|
|
9
|
-
// TODO
|
|
10
|
-
```
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: '`API_URL` value has changed'
|
|
3
|
-
matcher: "import\\s+{[\\s\\S]*?[,\\s]API_URL[,\\s][\\s\\S]*?from\\s+['\"]@clerk\\/clerk-react[\\s\\S]*?['\"]"
|
|
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,18 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: '`navigate` prop to `ClerkProvider` replaced by `routerPush` and `routerReplace`'
|
|
3
|
-
matcher: "<ClerkProvider[\\s\\S]*?navigate=[\\s\\S]*?>"
|
|
4
|
-
matcherFlags: 'm'
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
The `navigate` prop on ClerkProvider 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, upgraded the provider prop so that it can handle either depending on the circumstance.
|
|
8
|
-
|
|
9
|
-
Two new props have been added to `ClerkProvider` that replace the single `navigate` prop, 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` prop, pass the exact same function to both `routerPush` and `routerReplace` and the behavior will be identical. For example:
|
|
12
|
-
|
|
13
|
-
```diff
|
|
14
|
-
- <ClerkProvider navigate={ x => x } />
|
|
15
|
-
+ <ClerkProvider 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.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|