@clerk/upgrade 0.3.0 → 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/{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/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
package/dist/constants/sdks.js
CHANGED
|
@@ -4,10 +4,9 @@ export default [{
|
|
|
4
4
|
}, {
|
|
5
5
|
label: '@clerk/remix',
|
|
6
6
|
value: 'remix'
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}, {
|
|
7
|
+
},
|
|
8
|
+
// { label: 'gatsby-plugin-clerk', value: 'gatsby' },
|
|
9
|
+
{
|
|
11
10
|
label: '@clerk/redwood',
|
|
12
11
|
value: 'redwood'
|
|
13
12
|
}, {
|
|
@@ -42,5 +41,5 @@ export default [{
|
|
|
42
41
|
value: 'types'
|
|
43
42
|
}, {
|
|
44
43
|
label: '@clerk/chrome-extension',
|
|
45
|
-
value: '
|
|
44
|
+
value: 'chrome-extension'
|
|
46
45
|
}];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { accordionForCategory, assembleContent, deprecationRemovalsAndHousekeeping, frontmatter, loadVersionChangeData, markdown, markdownTemplate, singleItem, writeToFile } from '../../text-generation.js';
|
|
2
|
-
const version = '
|
|
2
|
+
const version = 'core-2';
|
|
3
3
|
const name = 'backend';
|
|
4
4
|
const properName = 'Backend';
|
|
5
5
|
const packageName = '@clerk/backend';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
Core 2 is included in the Backend SDK starting with version 1. This new version ships with a variety of smaller DX improvements and housekeeping items. Each of the potentially breaking changes are detailed in this guide, below.
|
|
2
2
|
|
|
3
|
-
By the end of this guide, you’ll have successfully upgraded your
|
|
3
|
+
By the end of this guide, you’ll have successfully upgraded your Backend project to use `@clerk/backend` v1. You’ll learn how to update your dependencies, resolve breaking changes, and find deprecations. Step-by-step instructions will lead you through the process.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { accordionForCategory, assembleContent, deprecationRemovalsAndHousekeeping, frontmatter, loadVersionChangeData, markdown, markdownTemplate, singleItem, writeToFile } from '../../text-generation.js';
|
|
2
|
-
const version = '
|
|
3
|
-
const name = '
|
|
2
|
+
const version = 'core-2';
|
|
3
|
+
const name = 'chrome-extension';
|
|
4
4
|
const properName = 'Chrome Extension';
|
|
5
5
|
const packageName = '@clerk/chrome-extension';
|
|
6
|
-
const cwd = `${version}
|
|
6
|
+
const cwd = `${version}/${name}`;
|
|
7
7
|
async function generate() {
|
|
8
8
|
const data = await loadVersionChangeData(version, name);
|
|
9
9
|
return assembleContent({
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
Core 2 is included in the Chrome Extension SDK starting with version 1. This new version ships with an improved design and UX for its built-in components, no "flash of white page" when authenticating, and a variety of smaller DX improvements and housekeeping items. Each of the potentially breaking changes are detailed in this guide, below.
|
|
2
|
+
|
|
3
|
+
By the end of this guide, you’ll have successfully upgraded your project to use `@clerk/chrome-extension` v1. You’ll learn how to update your dependencies, resolve breaking changes, and find deprecations. Step-by-step instructions will lead you through the process.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { accordionForCategory, assembleContent, deprecationRemovalsAndHousekeeping, frontmatter, loadVersionChangeData, markdown, markdownTemplate, writeToFile } from '../../text-generation.js';
|
|
2
|
-
const version = '
|
|
2
|
+
const version = 'core-2';
|
|
3
|
+
const semverVersion = 'v1';
|
|
3
4
|
const name = 'expo';
|
|
4
5
|
const properName = 'Expo';
|
|
5
6
|
const packageName = '@clerk/clerk-expo';
|
|
@@ -13,7 +14,7 @@ async function generate() {
|
|
|
13
14
|
title: `Upgrading ${properName} to Core 2`,
|
|
14
15
|
description: `Learn how to upgrade Clerk's ${properName} SDK to the latest version.`
|
|
15
16
|
}), `# Upgrading \`${packageName}\` to Core 2`, markdown('intro'), markdownTemplate('prepare', {
|
|
16
|
-
version:
|
|
17
|
+
version: semverVersion,
|
|
17
18
|
packageName
|
|
18
19
|
}), markdown('node-version'), markdown('react-version'), markdownTemplate('update-version', {
|
|
19
20
|
packageName
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
Core 2 is included in the Expo SDK starting with version 1. This release ships with an improved design and UX for its built-in components and a variety of smaller DX improvements and housekeeping items. Each of the potentially breaking changes are detailed in this guide, below.
|
|
2
|
+
|
|
3
|
+
By the end of this guide, you’ll have successfully upgraded your Expo project to use `@clerk/clerk-expo` v1. You’ll learn how to update your dependencies, resolve breaking changes, and find deprecations. Step-by-step instructions will lead you through the process.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { accordionForCategory, assembleContent, deprecationRemovalsAndHousekeeping, frontmatter, loadVersionChangeData, markdown, markdownTemplate, writeToFile } from '../../text-generation.js';
|
|
2
|
-
const version = '
|
|
2
|
+
const version = 'core-2';
|
|
3
|
+
const semverVersion = 'v1';
|
|
3
4
|
const name = 'fastify';
|
|
4
5
|
const properName = 'Fastify';
|
|
5
6
|
const packageName = '@clerk/fastify';
|
|
@@ -13,7 +14,7 @@ async function generate() {
|
|
|
13
14
|
title: `Upgrading ${properName} to Core 2`,
|
|
14
15
|
description: `Learn how to upgrade Clerk's ${properName} SDK to the latest version.`
|
|
15
16
|
}), `# Upgrading \`${packageName}\` to Core 2`, markdown('intro'), markdownTemplate('prepare', {
|
|
16
|
-
version:
|
|
17
|
+
version: semverVersion,
|
|
17
18
|
packageName
|
|
18
19
|
}), markdown('node-version'), markdownTemplate('update-version', {
|
|
19
20
|
packageName
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
Core 2 is included in the Fastify SDK starting with version 1. This release ships with a variety of smaller DX improvements and housekeeping items. Each of the potentially breaking changes are detailed in this guide, below.
|
|
2
2
|
|
|
3
3
|
By the end of this guide, you’ll have successfully upgraded your Fastify project to use `@clerk/fastify` v5. You’ll learn how to update your dependencies, resolve breaking changes, and find deprecations. Step-by-step instructions will lead you through the process.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { accordionForCategory, assembleContent, deprecationRemovalsAndHousekeeping, frontmatter, loadVersionChangeData, markdown, markdownTemplate, writeToFile } from '../../text-generation.js';
|
|
2
|
-
const version = '
|
|
2
|
+
const version = 'core-2';
|
|
3
|
+
const semverVersion = 'v5';
|
|
3
4
|
const name = 'gatsby';
|
|
4
5
|
const properName = 'Gatsby';
|
|
5
6
|
const packageName = 'gatsby-plugin-clerk';
|
|
@@ -10,10 +11,10 @@ async function generate() {
|
|
|
10
11
|
data,
|
|
11
12
|
cwd
|
|
12
13
|
}, [frontmatter({
|
|
13
|
-
title: `Upgrading ${properName}
|
|
14
|
-
description: `Learn how to upgrade Clerk's ${properName} SDK
|
|
15
|
-
}), `# Upgrading \`${packageName}\`
|
|
16
|
-
version,
|
|
14
|
+
title: `Upgrading ${properName} to Core 2`,
|
|
15
|
+
description: `Learn how to upgrade Clerk's ${properName} SDK to the latest version`
|
|
16
|
+
}), `# Upgrading \`${packageName}\` to Core 2`, markdown('intro'), markdownTemplate('prepare', {
|
|
17
|
+
version: semverVersion,
|
|
17
18
|
packageName
|
|
18
19
|
}), markdown('node-version'), markdown('react-version'), markdownTemplate('update-version', {
|
|
19
20
|
packageName: 'gatsby-plugin-clerk'
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
Core 2 is included in the Gatsby SDK starting with version 5. This new version ships with an improved design and UX for its built-in components, no "flash of white page" when authenticating, and a variety of smaller DX improvements and housekeeping items. Each of the potentially breaking changes are detailed in this guide, below.
|
|
2
|
+
|
|
3
|
+
By the end of this guide, you’ll have successfully upgraded your Gatsby project to use `gatsby-plugin-clerk` v5. You’ll learn how to update your dependencies, resolve breaking changes, and find deprecations. Step-by-step instructions will lead you through the process.
|
|
@@ -4,7 +4,7 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
|
4
4
|
|
|
5
5
|
node $SCRIPT_DIR/overview/index.js
|
|
6
6
|
node $SCRIPT_DIR/backend/index.js
|
|
7
|
-
node $SCRIPT_DIR/
|
|
7
|
+
node $SCRIPT_DIR/chrome-extension/index.js
|
|
8
8
|
node $SCRIPT_DIR/expo/index.js
|
|
9
9
|
node $SCRIPT_DIR/fastify/index.js
|
|
10
10
|
node $SCRIPT_DIR/gatsby/index.js
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { accordionForCategory, assembleContent, deprecationRemovalsAndHousekeeping, frontmatter, loadVersionChangeData, markdown, markdownTemplate, writeToFile } from '../../text-generation.js';
|
|
2
|
-
const version = '
|
|
2
|
+
const version = 'core-2';
|
|
3
|
+
const semverVersion = 'v5';
|
|
3
4
|
const name = 'js';
|
|
4
5
|
const properName = 'Javascript';
|
|
5
6
|
const packageName = '@clerk/clerk-js';
|
|
@@ -13,7 +14,7 @@ async function generate() {
|
|
|
13
14
|
title: `Upgrading ${properName} to Core 2`,
|
|
14
15
|
description: `Learn how to upgrade Clerk's ${properName} SDK to the latest version.`
|
|
15
16
|
}), `# Upgrading \`${packageName}\` to Core 2`, markdown('intro'), markdownTemplate('prepare', {
|
|
16
|
-
version,
|
|
17
|
+
version: semverVersion,
|
|
17
18
|
packageName
|
|
18
19
|
}), markdownTemplate('update-version', {
|
|
19
20
|
packageName
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
Core 2 is included in the Javascript SDK starting with version 5. This new version ships with an improved design and UX for its built-in components, no "flash of white page" when authenticating, and a variety of smaller DX improvements and housekeeping items. Each of the potentially breaking changes are detailed in this guide, below.
|
|
2
|
+
|
|
3
|
+
By the end of this guide, you'll have successfully upgraded your JS project to use `@clerk/clerk-js` v5. You'll learn how to update your dependencies, resolve breaking changes, and find deprecations. Step-by-step instructions will lead you through the process.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
### Changes to top-level exports
|
|
2
2
|
|
|
3
3
|
As part of this release, some of the top-level exports of `@clerk/nextjs` have been changed in order to improve bundle size and tree-shaking efficiency. These changes have resulted in a ~75% reduction in build size for middleware bundles. However, you will likely need to make some changes to import paths as a result.
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ As part of this release, some of the top-level exports of `@clerk/nextjs` have b
|
|
|
8
8
|
|
|
9
9
|
<Accordion titles={["@clerk/nextjs/server", "@clerk/nextjs/errors", "@clerk/nextjs/app-beta", "@clerk/nextjs/ssr", "@clerk/nextjs/edge-middleware", "@clerk/nextjs/edge-middlewarefiles", "@clerk/nextjs/api"]}>
|
|
10
10
|
<AccordionPanel>
|
|
11
|
-
Previously these exports have been exported both from `@clerk/nextjs` and `@clerk/nextjs/server`. As of v5 they are only exported from the latter.
|
|
11
|
+
Previously these exports have been exported both from `@clerk/nextjs` and `@clerk/nextjs/server`. As of v5 they are only exported from the latter. Going forward, the expectation can be that any imports that are intended to run within react on the client side, will come from `@clerk/nextjs` and imports that are intended to run on the server, will come from `@clerk/nextjs/server`.
|
|
12
12
|
|
|
13
13
|
```diff
|
|
14
14
|
import {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { accordionForCategory, assembleContent, deprecationRemovalsAndHousekeeping, frontmatter, loadVersionChangeData, markdown, markdownTemplate, writeToFile } from '../../text-generation.js';
|
|
2
|
-
const version = '
|
|
2
|
+
const version = 'core-2';
|
|
3
|
+
const semverVersion = 'v5';
|
|
3
4
|
const name = 'nextjs';
|
|
4
5
|
const properName = 'Next.js';
|
|
5
6
|
const packageName = '@clerk/nextjs';
|
|
6
|
-
const cwd =
|
|
7
|
+
const cwd = `${version}/${name}`;
|
|
7
8
|
async function generate() {
|
|
8
9
|
const data = await loadVersionChangeData(version, name);
|
|
9
10
|
return assembleContent({
|
|
@@ -13,7 +14,7 @@ async function generate() {
|
|
|
13
14
|
title: `Upgrading ${properName} to Core 2`,
|
|
14
15
|
description: `Learn how to upgrade Clerk's ${properName} SDK to the latest version.`
|
|
15
16
|
}), `# Upgrading \`${packageName}\` to Core 2`, markdown('intro'), markdownTemplate('prepare', {
|
|
16
|
-
version,
|
|
17
|
+
version: semverVersion,
|
|
17
18
|
packageName
|
|
18
19
|
}), markdown('node-version'), markdown('react-version'), markdown('nextjs-version'), markdownTemplate('update-version', {
|
|
19
20
|
packageName
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
Core 2 is included in the Next.js SDK starting with version 5.0.0. This new version ships with an improved design and UX for its built-in components, no "flash of white page" when authenticating, a substantially improved middleware import, and a variety of smaller DX improvements and housekeeping items. Each of the potentially breaking changes are detailed in this guide, below.
|
|
2
|
+
|
|
3
|
+
By the end of this guide, you’ll have successfully upgraded your Next.js project to use `@clerk/nextjs` v5. You’ll learn how to update your dependencies, resolve breaking changes, and find deprecations. Step-by-step instructions will lead you through the process.
|
|
@@ -1,74 +1,51 @@
|
|
|
1
|
-
|
|
1
|
+
### New Middleware architecture
|
|
2
2
|
|
|
3
|
-
User and customer feedback about `authMiddleware()` has been clear in that Middleware logic was a often friction point. As such, in v5 you will find a completely new Middleware helper called [`clerkMiddleware()`](/docs/references/nextjs/clerk-middleware) that
|
|
3
|
+
User and customer feedback about `authMiddleware()` has been clear in that Middleware logic was a often friction point. As such, in v5 you will find a completely new Middleware helper called [`clerkMiddleware()`](/docs/references/nextjs/clerk-middleware) that should alleviate the issues folks had with `authMiddleware()`.
|
|
4
4
|
|
|
5
5
|
Additionally, there are now new helpers that enable controlling auth on a _per-page and/or per-layout basis_ when using App Router. While you can still configure which routes are protected via Middleware, the page-based protection strategy is what is now recommended, as the co-location of auth protection configuration with the code for the pages themselves results in a superior developer experience that adds clarity as you navigate your codebase.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
#### Per-route auth config
|
|
8
8
|
|
|
9
9
|
Sometimes, code speaks louder than words. Let's get right into an example:
|
|
10
10
|
|
|
11
11
|
<Tabs type="auth-protect-layout-page" items={["Layout", "Page"]}>
|
|
12
|
-
<Tab>
|
|
13
|
-
```ts filename="app/src/dashboard/layout.tsx"
|
|
14
|
-
import { auth } from '@clerk/nextjs/server'
|
|
12
|
+
<Tab>
|
|
13
|
+
```ts filename="app/src/dashboard/layout.tsx"
|
|
14
|
+
import { auth } from '@clerk/nextjs/server'
|
|
15
15
|
|
|
16
|
-
export default async function DashboardLayout({ children }) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
export default async function DashboardLayout({ children }) {
|
|
17
|
+
auth().protect();
|
|
18
|
+
// 👆 This one line is all it takes - the layout and all its children
|
|
19
|
+
// will now redirect to your sign in page for un-authenticated users.
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
return <>{children}</>
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
import { auth } from '@clerk/nextjs/server'
|
|
25
|
+
</Tab>
|
|
26
|
+
<Tab>
|
|
27
|
+
```ts filename="app/src/dashboard/page.tsx"
|
|
28
|
+
import { auth } from '@clerk/nextjs/server'
|
|
30
29
|
|
|
31
|
-
export default async function DashboardPage() {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
export default async function DashboardPage() {
|
|
31
|
+
auth().protect();
|
|
32
|
+
// 👆 This one line is all it takes - the layout and all its children
|
|
33
|
+
// will now redirect to your sign in page for un-authenticated users.
|
|
35
34
|
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
35
|
+
return <p>This page is now protected!</p>
|
|
36
|
+
}
|
|
37
|
+
```
|
|
39
38
|
|
|
40
|
-
</Tab>
|
|
39
|
+
</Tab>
|
|
41
40
|
</Tabs>
|
|
42
41
|
|
|
43
|
-
In this example,
|
|
44
|
-
|
|
45
|
-
Want to get more specific with permission gating? Add the role you are gating as a param:
|
|
46
|
-
|
|
47
|
-
```ts filename="app/src/admin/layout.tsx"
|
|
48
|
-
import { auth } from '@clerk/nextjs/server';
|
|
49
|
-
|
|
50
|
-
export default async function AdminLayout({ children }) {
|
|
51
|
-
auth().protect({ role: 'org:admin' });
|
|
52
|
-
|
|
53
|
-
return <>{children}</>;
|
|
54
|
-
}
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Note that in order for this to work, you will still need Middleware to be present, but it only requires the most minimal configuration:
|
|
58
|
-
|
|
59
|
-
```ts filename="middleware.ts"
|
|
60
|
-
import { clerkMiddleware } from '@clerk/nextjs/server';
|
|
42
|
+
In this example, you add [`auth().protect()`](/docs/references/nextjs/auth#protect) to a layout and that layout and all of it's children will be gated by auth. The same logic can be applied for pages.
|
|
61
43
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
export const config = {
|
|
65
|
-
matcher: ['/((?!.*\\..*|_next).*)', '/', '/(api|trpc)(.*)'],
|
|
66
|
-
};
|
|
67
|
-
```
|
|
44
|
+
For more details on route protection, check out the [route protection guide](/references/nextjs/route-protection).
|
|
68
45
|
|
|
69
46
|
If you are using the pages router, per-route gating won't work. Instead, configure your auth gating via Middleware as described in the next section.
|
|
70
47
|
|
|
71
|
-
|
|
48
|
+
#### Middleware auth config
|
|
72
49
|
|
|
73
50
|
If you prefer to define your auth logic within the Middleware, you can still do this using the new `clerkMiddleware`. The primary change from the previous `authMiddleware()` is that `clerkMiddleware()` does not protect any routes by default, instead requiring the developer to add routes they would like to be protected by auth. This is a substantial contrast to the previous `authMiddleware()`, which protected all routes by default, requiring the developer to add exceptions. The API was also substantially simplified, and it has become easier to combine with other Middleware helpers smoothly as well.
|
|
74
51
|
|
|
@@ -78,7 +55,7 @@ Here's an example that replicates the auth protection scheme above, but entirely
|
|
|
78
55
|
import { clerkMiddleware, createRouteMatcher } from '@clerk/nextjs/server';
|
|
79
56
|
|
|
80
57
|
const isDashboardRoute = createRouteMatcher(['/dashboard(.*)']);
|
|
81
|
-
const isAdminRoute = createRouteMatcher(['/admin']);
|
|
58
|
+
const isAdminRoute = createRouteMatcher(['/admin(.*)']);
|
|
82
59
|
|
|
83
60
|
export default clerkMiddleware((auth, req) => {
|
|
84
61
|
// Restrict admin route to users with specific role
|
|
@@ -99,18 +76,18 @@ A couple things to note here:
|
|
|
99
76
|
- With `clerkMiddleware`, you're defining the routes you want **to be protected**, rather than the routes you don't want to be protected.
|
|
100
77
|
- You are able to use the same `auth().protect()` helpers that you can use within layouts/pages here in the Middleware.
|
|
101
78
|
|
|
102
|
-
|
|
79
|
+
#### Migrating to `clerkMiddleware()`
|
|
103
80
|
|
|
104
81
|
Clerk strongly recommends migrating to the new `clerkMiddleware()` for an improved DX and access to all present and upcoming features, but also want to note that `authMiddleware()`, while deprecated, will continue to work in v5 and will not be removed until the next major version, so you do not _need_ to make any changes to your Middleware setup this version.
|
|
105
82
|
|
|
106
|
-
The most basic migration will be updating the import and changing out the default export
|
|
83
|
+
The most basic migration will be updating the import and changing out the default export, then mirroring the previous behavior of protecting all routes as such:
|
|
107
84
|
|
|
108
85
|
```diff
|
|
109
86
|
- import { authMiddleware } from "@clerk/nextjs"
|
|
110
87
|
+ import { clerkMiddleware } from '@clerk/nextjs/server'
|
|
111
88
|
|
|
112
89
|
- export default authMiddleware()
|
|
113
|
-
+ export default clerkMiddleware()
|
|
90
|
+
+ export default clerkMiddleware((auth) => auth().protect())
|
|
114
91
|
|
|
115
92
|
export const config = {
|
|
116
93
|
matcher: ["/((?!.*\\..*|_next).*)", "/", "/(api|trpc)(.*)"],
|
|
@@ -119,9 +96,9 @@ The most basic migration will be updating the import and changing out the defaul
|
|
|
119
96
|
|
|
120
97
|
Of course, in most cases you'll have a more complicated setup than this. You can find some examples below for how to migrate a few common use cases. Be sure to review the [`clerkMiddleware()` documentation](/docs/references/nextjs/clerk-middleware) and [route protection guide](/docs/references/nextjs/route-protection) if your specific use case is not mentioned.
|
|
121
98
|
|
|
122
|
-
<Accordion titles={["
|
|
99
|
+
<Accordion titles={["Protecting all routes except one or more public paths", "Protecting a single route path", "Combining with other Middlewares (like i18n)"]} heading="h4">
|
|
123
100
|
<AccordionPanel>
|
|
124
|
-
By default, `clerkMiddleware()` treats all pages as public
|
|
101
|
+
By default, `clerkMiddleware()` treats all pages as public unless explicitly protected. If you prefer for it to operate the other way around (all pages are protected unless explicitly made public), you can reverse the middleware logic in this way:
|
|
125
102
|
|
|
126
103
|
Before:
|
|
127
104
|
|
|
@@ -129,7 +106,7 @@ Of course, in most cases you'll have a more complicated setup than this. You can
|
|
|
129
106
|
import { authMiddleware } from "@clerk/nextjs"
|
|
130
107
|
|
|
131
108
|
export default authMiddleware({
|
|
132
|
-
publicRoutes: ["/"],
|
|
109
|
+
publicRoutes: ["/", "/contact"],
|
|
133
110
|
})
|
|
134
111
|
|
|
135
112
|
export const config = {
|
|
@@ -145,7 +122,12 @@ Of course, in most cases you'll have a more complicated setup than this. You can
|
|
|
145
122
|
createRouteMatcher
|
|
146
123
|
} from "@clerk/nextjs/server"
|
|
147
124
|
|
|
148
|
-
|
|
125
|
+
const isPublicRoute = createRouteMatcher(["/", "/contact"])
|
|
126
|
+
|
|
127
|
+
export default clerkMiddleware((auth, req) => {
|
|
128
|
+
if (isPublicRoute(req)) return // if it's a public route, do nothing
|
|
129
|
+
auth().protect() // for any other route, require auth
|
|
130
|
+
})
|
|
149
131
|
|
|
150
132
|
export const config = {
|
|
151
133
|
matcher: ["/((?!.+\\.[\\w]+$|_next).*)", "/", "/(api|trpc)(.*)"],
|
|
@@ -154,7 +136,7 @@ Of course, in most cases you'll have a more complicated setup than this. You can
|
|
|
154
136
|
|
|
155
137
|
</AccordionPanel>
|
|
156
138
|
<AccordionPanel>
|
|
157
|
-
|
|
139
|
+
An example can be seen below of code that ensures that all routes are public except everything under `/dashboard`.
|
|
158
140
|
|
|
159
141
|
Before:
|
|
160
142
|
|
|
@@ -181,9 +163,7 @@ Of course, in most cases you'll have a more complicated setup than this. You can
|
|
|
181
163
|
const isDashboardRoute = createRouteMatcher(["/dashboard(.*)"])
|
|
182
164
|
|
|
183
165
|
export default clerkMiddleware((auth, request) => {
|
|
184
|
-
if (isDashboardRoute(request))
|
|
185
|
-
auth().protect()
|
|
186
|
-
}
|
|
166
|
+
if (isDashboardRoute(request)) auth().protect()
|
|
187
167
|
})
|
|
188
168
|
|
|
189
169
|
export const config = {
|
|
@@ -235,9 +215,7 @@ Of course, in most cases you'll have a more complicated setup than this. You can
|
|
|
235
215
|
const isDashboardRoute = createRouteMatcher(["/dashboard(.*)"])
|
|
236
216
|
|
|
237
217
|
export default clerkMiddleware((auth, request) => {
|
|
238
|
-
if (isDashboardRoute(request))
|
|
239
|
-
auth().protect()
|
|
240
|
-
}
|
|
218
|
+
if (isDashboardRoute(request)) auth().protect()
|
|
241
219
|
|
|
242
220
|
return intlMiddleware(request)
|
|
243
221
|
})
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { accordionForCategory, assembleContent, deprecationRemovalsAndHousekeeping, frontmatter, loadVersionChangeData, markdown, markdownTemplate, singleItem, writeToFile } from '../../text-generation.js';
|
|
2
|
-
const version = '
|
|
2
|
+
const version = 'core-2';
|
|
3
|
+
const semverVersion = 'v5';
|
|
3
4
|
const name = 'node';
|
|
4
5
|
const properName = 'Node';
|
|
5
6
|
const packageName = '@clerk/clerk-sdk-node';
|
|
@@ -13,7 +14,7 @@ async function generate() {
|
|
|
13
14
|
title: `Upgrading ${properName} to Core 2`,
|
|
14
15
|
description: `Learn how to upgrade Clerk's ${properName} SDK to the lastest version.`
|
|
15
16
|
}), `# Upgrading \`${packageName}\` to Core 2`, markdown('intro'), markdownTemplate('prepare', {
|
|
16
|
-
version,
|
|
17
|
+
version: semverVersion,
|
|
17
18
|
packageName
|
|
18
19
|
}), markdown('node-version'), markdownTemplate('update-version', {
|
|
19
20
|
packageName
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
Core 2 is included in the Node.js SDK starting with version 5. This new version ships with a variety of smaller DX improvements and housekeeping items. Each of the potentially breaking changes are detailed in this guide, below.
|
|
2
2
|
|
|
3
3
|
By the end of this guide, you’ll have successfully upgraded your Node project to use `@clerk/clerk-sdk-node` v5. You’ll learn how to update your dependencies, resolve breaking changes, and find deprecations. Step-by-step instructions will lead you through the process.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { assembleContent, frontmatter, markdown, writeToFile } from '../../text-generation.js';
|
|
2
|
-
const cwd = '
|
|
2
|
+
const cwd = 'core-2/overview';
|
|
3
3
|
async function generate() {
|
|
4
4
|
return assembleContent({
|
|
5
5
|
data: {},
|
|
6
6
|
cwd
|
|
7
7
|
}, [frontmatter({
|
|
8
|
-
title: `Upgrading
|
|
9
|
-
description: `Learn how to upgrade
|
|
8
|
+
title: `Upgrading to Clerk Core 2`,
|
|
9
|
+
description: `Learn how to upgrade to the latest version of Clerk's SDKs`
|
|
10
10
|
}), markdown('intro')]);
|
|
11
11
|
}
|
|
12
12
|
generate().then(writeToFile(cwd));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Upgrading to Clerk Core 2
|
|
2
|
+
|
|
3
|
+
In Febrary 2024, [we updated](https://clerk.com/changelog/2024-01-16) Clerk's SDKs to include Core 2. This new core includes:
|
|
4
|
+
|
|
5
|
+
- 💅 Redesigned and improved component UIs.
|
|
6
|
+
- 🔪 The 401 & "flash of white page" that was visible sometimes when syncing auth state was eliminated.
|
|
7
|
+
- 🧹 A large number of smaller housekeeping changes, bugfixes, and improvements.
|
|
8
|
+
- 📊 [Telemetry](/docs/telemetry) to allow us to better determine feature usage and priority (easy opt-out if you don't like this)
|
|
9
|
+
|
|
10
|
+
## SDK Guides
|
|
11
|
+
|
|
12
|
+
Core 2 brings both UI changes and breaking code changes, so each SDK has been updated to a new major version.
|
|
13
|
+
We expect upgrades to take less than 30 minutes, and are providing a CLI tool to assist with the process. Please select your SDK below to get started:
|
|
14
|
+
|
|
15
|
+
- [Next.js](/nextjs)
|
|
16
|
+
- [Remix](/remix)
|
|
17
|
+
- [Expo](/expo)
|
|
18
|
+
- [Node](/node)
|
|
19
|
+
- [Fastify](/fastify)
|
|
20
|
+
- [React](/react)
|
|
21
|
+
- [Backend](/backend)
|
|
22
|
+
- [JS](/js)
|
|
23
|
+
- [Chrome Extension](/chrome-extension)
|
|
24
|
+
|
|
25
|
+
Note that the `Gastsby`, `Go`, and `Ruby` SDKs do not yet have a beta release ready - if you are using any of these SDKs there is nothing actionable right now.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { accordionForCategory, assembleContent, deprecationRemovalsAndHousekeeping, frontmatter, loadVersionChangeData, markdown, markdownTemplate, singleItem, writeToFile } from '../../text-generation.js';
|
|
2
|
-
const version = '
|
|
2
|
+
const version = 'core-2';
|
|
3
|
+
const semverVersion = 'v5';
|
|
3
4
|
const name = 'react';
|
|
4
5
|
const properName = 'React';
|
|
5
6
|
const packageName = '@clerk/clerk-react';
|
|
@@ -14,7 +15,7 @@ async function generate() {
|
|
|
14
15
|
description: `Learn how to upgrade Clerk's ${properName} SDK to the latest version.`
|
|
15
16
|
}), `# Upgrading \`${packageName}\` to Core 2`, markdown('intro'), markdownTemplate('prepare', {
|
|
16
17
|
packageName,
|
|
17
|
-
version
|
|
18
|
+
version: semverVersion
|
|
18
19
|
}), markdown('node-version'), markdown('react-version'), markdownTemplate('update-version', {
|
|
19
20
|
packageName
|
|
20
21
|
}), markdown('cli'), '## Breaking Changes', markdown('redesign-preview'), markdown('after-sign-x-handling'), singleItem('navigate-to-routerpush-routerreplace'), markdown('orgs-claim'), markdownTemplate('path-routing', {
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
Core 2 is included in the React SDK starting with version 5. This new version ships with an improved design and UX for its built-in components, no "flash of white page" when authenticating, and a variety of smaller DX improvements and housekeeping items. Each of the potentially breaking changes are detailed in this guide, below.
|
|
2
|
+
|
|
3
|
+
By the end of this guide, you’ll have successfully upgraded your React project to use `@clerk/clerk-react` v5. You’ll learn how to update your dependencies, resolve breaking changes, and find deprecations. Step-by-step instructions will lead you through the process.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { accordionForCategory, assembleContent, deprecationRemovalsAndHousekeeping, frontmatter, loadVersionChangeData, markdown, markdownTemplate, singleItem, writeToFile } from '../../text-generation.js';
|
|
2
|
-
const version = '
|
|
2
|
+
const version = 'core-2';
|
|
3
|
+
const semverVersion = 'v4';
|
|
3
4
|
const name = 'remix';
|
|
4
5
|
const properName = 'Remix';
|
|
5
6
|
const packageName = '@clerk/remix';
|
|
@@ -13,7 +14,7 @@ async function generate() {
|
|
|
13
14
|
title: `Upgrading ${properName} to Core 2`,
|
|
14
15
|
description: `Learn how to upgrade from the Clerk ${properName} SDK to the latest version.`
|
|
15
16
|
}), `# Upgrading \`${packageName}\` to Core 2`, markdown('intro'), markdownTemplate('prepare', {
|
|
16
|
-
version:
|
|
17
|
+
version: semverVersion,
|
|
17
18
|
packageName
|
|
18
19
|
}), markdown('node-version'), markdown('react-version'), markdownTemplate('update-version', {
|
|
19
20
|
packageName
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
Core 2 is included in the Remix SDK starting with version 4. This new version ships with an improved design and UX for its built-in components, no "flash of white page" when authenticating, no more need to add a custom error boundary, and a variety of smaller DX improvements and housekeeping items. Each of the potentially breaking changes are detailed in this guide, below.
|
|
2
|
+
|
|
3
|
+
By the end of this guide, you’ll have successfully upgraded your Remix project to use `@clerk/remix` v4. You’ll learn how to update your dependencies, resolve breaking changes, and find deprecations. Step-by-step instructions will lead you through the process.
|
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import { accordionForCategory, assembleContent, frontmatter, loadVersionChangeData, markdown, writeToFile } from '../../text-generation.js';
|
|
2
|
-
const cwd = '
|
|
2
|
+
const cwd = 'core-2/retheme';
|
|
3
3
|
async function generate() {
|
|
4
|
-
const data = await loadVersionChangeData('
|
|
4
|
+
const data = await loadVersionChangeData('core-2', 'nextjs');
|
|
5
5
|
const defaultsChangeItem = {
|
|
6
6
|
title: 'Changes to default variables',
|
|
7
7
|
content: `\nThe default values of some [appearance variables](/docs/components/customization/variables) have changed which may impact your UI (if you are not already overriding them).
|
|
8
8
|
|
|
9
9
|
- The default \`colorPrimary\` value changed from \`#103FEF\` to \`#2F3037\`. As the new color is a dark grey, the \`colorPrimary\` of the dark theme was changed to \`#FFFFFF\`.
|
|
10
10
|
- The default \`fontSize\` value changed from \`1rem\` to \`0.8125rem\`
|
|
11
|
-
- The default \`fontWeight\` values changed from \`{ normal: 400, medium: 500, bold: 600 }\` to \`{ normal: 400, medium: 500, bold: 700 }
|
|
12
|
-
- Previously, the default value for \`fontSmoothing\` was \`auto\`. This value is now unset. If you want to pass a custom value to it, you can still do so.\n`
|
|
11
|
+
- The default \`fontWeight\` values changed from \`{ normal: 400, medium: 500, bold: 600 }\` to \`{ normal: 400, medium: 500, semibold: 600, bold: 700 }\`.\n`
|
|
13
12
|
};
|
|
14
13
|
return assembleContent({
|
|
15
14
|
data: data,
|
|
16
15
|
cwd
|
|
17
16
|
}, [frontmatter({
|
|
18
|
-
title: 'Redesigned Components in
|
|
19
|
-
description: 'Learn how to handle changes as a result of redesigned components in Clerk
|
|
20
|
-
}), '# Redesigned Components in
|
|
21
|
-
additionalItems: defaultsChangeItem
|
|
17
|
+
title: 'Redesigned Components in Core 2',
|
|
18
|
+
description: 'Learn how to handle changes as a result of redesigned components in Clerk Core 2'
|
|
19
|
+
}), '# Redesigned Components in Core 2', markdown('intro'), '## Appearance Changes', accordionForCategory('appearance', {
|
|
20
|
+
additionalItems: [defaultsChangeItem]
|
|
22
21
|
}), '## Localization Changes', accordionForCategory('localization')]);
|
|
23
22
|
}
|
|
24
23
|
generate().then(writeToFile(cwd));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
## CLI upgrade helper
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Clerk now provides a `@clerk/upgrade` CLI tool that you can use to ease the upgrade process. The tool will scan your codebase and produce a list of changes you'll need to apply to your project. It should catch the vast majority of the changes needed for a successful upgrade to any SDK including Core 2. This can save you a lot of time reading through changes that don't apply to your project.
|
|
4
4
|
|
|
5
5
|
To run the CLI tool, navigate to your project and run it in the terminal:
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
## Preparing to upgrade
|
|
2
2
|
|
|
3
|
-
Before uprading, it's highly recommended that you update your Clerk SDKs to the latest Core 1 version (`npm i <%= packageName
|
|
3
|
+
Before uprading, it's highly recommended that you update your Clerk SDKs to the latest Core 1 version (`npm i <%= packageName %>@<%= parseInt(version.substring(1)) - 1 %>`). Some changes required for Core 2 SDKs can be applied incrementally to the <%= version %> release, which should contribute to a smoother upgrading experience. After updating, look out for deprecation messages in your terminal and browser console. By resolving these deprecations you'll be able to skip many breaking changes from Core 2.
|
|
4
4
|
|
|
5
5
|
<Callout>
|
|
6
6
|
Note that Core 2 is currently in beta, while we field feedback and ensure stability. Deploying beta versions to
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
The new version ships with improved design and UX across all of Clerk's [UI components](/docs/components/overview). If you have used the [`appearance` prop](/docs/components/customization/overview) or tokens for a [custom theme](/docs/components/customization/overview#create-a-custom-theme), you will likely need to make some adjustments to ensure your styling is still looking great. If you're using the [localization prop](/docs/components/customization/localization) you will likely need to make adjustments to account for added or removed localization keys.
|
|
4
4
|
|
|
5
|
-
[More detail on these changes »](
|
|
5
|
+
[More detail on these changes »](component-redesign)
|
package/dist/util/load-change.js
CHANGED
|
@@ -11,8 +11,8 @@ export default function createLoader({
|
|
|
11
11
|
// Note: This could benefit perf-wise by being converted to async, but it would
|
|
12
12
|
// make the code a decent amount more complex.
|
|
13
13
|
return slugs.map(slug => {
|
|
14
|
-
const sdkPath = path.join(__dirname, '../versions',
|
|
15
|
-
const sharedPath = path.join(__dirname, '../versions',
|
|
14
|
+
const sdkPath = path.join(__dirname, '../versions', `${version}`, sdk, `${slug}.md`);
|
|
15
|
+
const sharedPath = path.join(__dirname, '../versions', `${version}`, 'common', `${slug}.md`);
|
|
16
16
|
const loadPath = fs.existsSync(sdkPath) ? sdkPath : sharedPath;
|
|
17
17
|
const content = fs.readFileSync(loadPath, 'utf8');
|
|
18
18
|
const parsed = matter(content);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Breaking Changes to appearance variables'
|
|
3
|
+
matcherFlags: 'm'
|
|
4
|
+
category: 'appearance'
|
|
5
|
+
matcher:
|
|
6
|
+
- "variables:\\s+{[\\s\\S]*?fontSmoothing:"
|
|
7
|
+
- "variables:\\s+{[\\s\\S]*?shadowShimmer:"
|
|
8
|
+
- "variables:\\s+{[\\s\\S]*?colorAlphaShade:"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
Several appearance variables have been removed or renamed. If you were using these variables in your application, you will need to update your code to use the new variables.
|
|
12
|
+
|
|
13
|
+
- The `fontSmoothing` variable has been removed.
|
|
14
|
+
- The `shadowShimmer` variable has been removed.
|
|
15
|
+
- The `colorAlphaShade` variable has been renamed to `colorNeutral`.
|