@clerk/upgrade 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (397) hide show
  1. package/dist/guide-generators/text-generation.js +109 -0
  2. package/dist/guide-generators/v5/backend/__output.mdx +580 -0
  3. package/dist/guide-generators/v5/backend/import-moves.mdx +3 -0
  4. package/dist/guide-generators/v5/backend/import-paths.mdx +3 -0
  5. package/dist/guide-generators/v5/backend/index.js +22 -0
  6. package/dist/guide-generators/v5/backend/intro.mdx +3 -0
  7. package/dist/guide-generators/v5/chrome-extension/index.js +19 -0
  8. package/dist/guide-generators/v5/chrome-extension/intro.mdx +3 -0
  9. package/dist/guide-generators/v5/chromeExtension/__output.mdx +409 -0
  10. package/dist/guide-generators/v5/chromeExtension/index.js +24 -0
  11. package/dist/guide-generators/v5/chromeExtension/intro.mdx +3 -0
  12. package/dist/guide-generators/v5/expo/__output.mdx +455 -0
  13. package/dist/guide-generators/v5/expo/index.js +24 -0
  14. package/dist/guide-generators/v5/expo/intro.mdx +3 -0
  15. package/dist/guide-generators/v5/fastify/__output.mdx +373 -0
  16. package/dist/guide-generators/v5/fastify/index.js +22 -0
  17. package/dist/guide-generators/v5/fastify/intro.mdx +3 -0
  18. package/dist/guide-generators/v5/gatsby/__output.mdx +472 -0
  19. package/dist/guide-generators/v5/gatsby/index.js +24 -0
  20. package/dist/guide-generators/v5/gatsby/intro.mdx +3 -0
  21. package/dist/guide-generators/v5/generate-all.js +0 -0
  22. package/dist/guide-generators/v5/generate-all.sh +16 -0
  23. package/dist/guide-generators/v5/generate.js +263 -0
  24. package/dist/guide-generators/v5/intro.mdx +15 -0
  25. package/dist/guide-generators/v5/js/__output.mdx +528 -0
  26. package/dist/guide-generators/v5/js/index.js +27 -0
  27. package/dist/guide-generators/v5/js/intro.mdx +3 -0
  28. package/dist/guide-generators/v5/js/pagination-args.mdx +3 -0
  29. package/dist/guide-generators/v5/js/pagination-return.mdx +3 -0
  30. package/dist/guide-generators/v5/nextjs/__output.mdx +1091 -0
  31. package/dist/guide-generators/v5/nextjs/after-sign-x-handling.mdx +10 -0
  32. package/dist/guide-generators/v5/nextjs/deprecation-removals.mdx +9 -0
  33. package/dist/guide-generators/v5/nextjs/import-changes.mdx +98 -0
  34. package/dist/guide-generators/v5/nextjs/index.js +24 -0
  35. package/dist/guide-generators/v5/nextjs/intro.mdx +3 -0
  36. package/dist/guide-generators/v5/nextjs/middleware-changes.mdx +251 -0
  37. package/dist/guide-generators/v5/nextjs/nextjs-versio.mdx +34 -0
  38. package/dist/guide-generators/v5/nextjs/nextjs-version.mdx +6 -0
  39. package/dist/guide-generators/v5/nextjs/retheme-changes.mdx +10 -0
  40. package/dist/guide-generators/v5/nextjs/version-requirements.mdx +34 -0
  41. package/dist/guide-generators/v5/node/__output.mdx +511 -0
  42. package/dist/guide-generators/v5/node/index.js +22 -0
  43. package/dist/guide-generators/v5/node/intro.mdx +3 -0
  44. package/dist/guide-generators/v5/node/node-setters-removals.mdx +34 -0
  45. package/dist/guide-generators/v5/overview/__output.mdx +37 -0
  46. package/dist/guide-generators/v5/overview/index.js +12 -0
  47. package/dist/guide-generators/v5/overview/intro.mdx +31 -0
  48. package/dist/guide-generators/v5/overview/per-sdk.mdx +16 -0
  49. package/dist/guide-generators/v5/per-sdk.mdx +16 -0
  50. package/dist/guide-generators/v5/prepare.mdx +135 -0
  51. package/dist/guide-generators/v5/react/__output.mdx +679 -0
  52. package/dist/guide-generators/v5/react/hof-removals.mdx +3 -0
  53. package/dist/guide-generators/v5/react/index.js +24 -0
  54. package/dist/guide-generators/v5/react/intro.mdx +3 -0
  55. package/dist/guide-generators/v5/redesigned-components.mdx +11 -0
  56. package/dist/guide-generators/v5/remix/__output.mdx +401 -0
  57. package/dist/guide-generators/v5/remix/index.js +24 -0
  58. package/dist/guide-generators/v5/remix/intro.mdx +3 -0
  59. package/dist/guide-generators/v5/retheme/__output.mdx +437 -0
  60. package/dist/guide-generators/v5/retheme/index.js +24 -0
  61. package/dist/guide-generators/v5/retheme/intro.mdx +9 -0
  62. package/dist/guide-generators/v5/shared/after-sign-x-handling.mdx +10 -0
  63. package/dist/guide-generators/v5/shared/cli.mdx +22 -0
  64. package/dist/guide-generators/v5/shared/deprecation-removals.mdx +6 -0
  65. package/dist/guide-generators/v5/shared/hof-removals.mdx +3 -0
  66. package/dist/guide-generators/v5/shared/image-url.mdx +3 -0
  67. package/dist/guide-generators/v5/shared/node-setters-removals.mdx +34 -0
  68. package/dist/guide-generators/v5/shared/node-version.mdx +3 -0
  69. package/dist/guide-generators/v5/shared/orgs-claim.mdx +50 -0
  70. package/dist/guide-generators/v5/shared/pagination-args.mdx +3 -0
  71. package/dist/guide-generators/v5/shared/pagination-return.mdx +3 -0
  72. package/dist/guide-generators/v5/shared/path-routing.mdx +57 -0
  73. package/dist/guide-generators/v5/shared/prepare.mdx +10 -0
  74. package/dist/guide-generators/v5/shared/react-version.mdx +20 -0
  75. package/dist/guide-generators/v5/shared/redesign-preview.mdx +5 -0
  76. package/dist/guide-generators/v5/shared/update-v5.mdx +17 -0
  77. package/dist/guide-generators/v5/shared/update-version.mdx +18 -0
  78. package/dist/guide-generators/v5/single-page-old.js +192 -0
  79. package/dist/guide-generators/v5-guides/deprecation-removals.mdx +7 -0
  80. package/dist/guide-generators/v5-guides/generate.js +263 -0
  81. package/dist/guide-generators/v5-guides/hof-removals.mdx +3 -0
  82. package/dist/guide-generators/v5-guides/intro.mdx +15 -0
  83. package/dist/guide-generators/v5-guides/nextjs/after-sign-x-handling.mdx +10 -0
  84. package/dist/guide-generators/v5-guides/nextjs/deprecation-removals.mdx +9 -0
  85. package/dist/guide-generators/v5-guides/nextjs/import-changes.mdx +98 -0
  86. package/dist/guide-generators/v5-guides/nextjs/index.js +80 -0
  87. package/dist/guide-generators/v5-guides/nextjs/intro.mdx +21 -0
  88. package/dist/guide-generators/v5-guides/nextjs/middleware-changes.mdx +251 -0
  89. package/dist/guide-generators/v5-guides/nextjs/retheme-changes.mdx +10 -0
  90. package/dist/guide-generators/v5-guides/nextjs/version-requirements.mdx +34 -0
  91. package/dist/guide-generators/v5-guides/node-setters-removals.mdx +34 -0
  92. package/dist/guide-generators/v5-guides/pagination-args.mdx +3 -0
  93. package/dist/guide-generators/v5-guides/pagination-return.mdx +3 -0
  94. package/dist/guide-generators/v5-guides/path-routing.mdx +50 -0
  95. package/dist/guide-generators/v5-guides/per-sdk.mdx +16 -0
  96. package/dist/guide-generators/v5-guides/prepare.mdx +135 -0
  97. package/dist/guide-generators/v5-guides/redesign-preview.mdx +5 -0
  98. package/dist/guide-generators/v5-guides/redesigned-components.mdx +11 -0
  99. package/dist/guide-generators/v5-guides/remix/index.js +15 -0
  100. package/dist/guide-generators/v5-guides/remix/intro.mdx +1 -0
  101. package/dist/guide-generators/v5-guides/remix/output.mdx +362 -0
  102. package/dist/guide-generators/v5-guides/shared/breaking-changes-intro.mdx +0 -0
  103. package/dist/guide-generators/v5-guides/shared/cli.mdx +21 -0
  104. package/dist/guide-generators/v5-guides/shared/deprecation-removals.mdx +7 -0
  105. package/dist/guide-generators/v5-guides/shared/hof-removals.mdx +3 -0
  106. package/dist/guide-generators/v5-guides/shared/node-setters-removals.mdx +34 -0
  107. package/dist/guide-generators/v5-guides/shared/node-version.mdx +3 -0
  108. package/dist/guide-generators/v5-guides/shared/pagination-args.mdx +3 -0
  109. package/dist/guide-generators/v5-guides/shared/pagination-return.mdx +3 -0
  110. package/dist/guide-generators/v5-guides/shared/path-routing.mdx +50 -0
  111. package/dist/guide-generators/v5-guides/shared/prepare.mdx +7 -0
  112. package/dist/guide-generators/v5-guides/shared/react-version.mdx +19 -0
  113. package/dist/guide-generators/v5-guides/shared/redesign-preview.mdx +5 -0
  114. package/dist/guide-generators/v5-guides/shared/update-v5.mdx +17 -0
  115. package/dist/guide-generators/v5-guides/shared/upgrade-v5.mdx +17 -0
  116. package/dist/scan.js +4 -2
  117. package/dist/util/generate-nextjs-migration-guide.js +0 -0
  118. package/dist/util/generate-nextjs-v5-migration-guide.js +0 -0
  119. package/dist/util/load-change.js +1 -0
  120. package/dist/util/text-generation.js +29 -0
  121. package/dist/util/v5-guide/deprecation-removals.mdx +7 -0
  122. package/dist/util/v5-guide/generate.js +200 -0
  123. package/dist/util/v5-guide/getting-up-to-date.mdx +114 -0
  124. package/dist/util/v5-guide/hof-removals.mdx +3 -0
  125. package/dist/util/v5-guide/intro.mdx +15 -0
  126. package/dist/util/v5-guide/node-setters-removals.mdx +34 -0
  127. package/dist/util/v5-guide/pagination-args.mdx +3 -0
  128. package/dist/util/v5-guide/pagination-return.mdx +3 -0
  129. package/dist/util/v5-guide/path-routing.mdx +50 -0
  130. package/dist/util/v5-guide/per-sdk.mdx +16 -0
  131. package/dist/util/v5-guide/prepare.mdx +135 -0
  132. package/dist/util/v5-guide/redesign-preview.mdx +5 -0
  133. package/dist/util/v5-guide/redesigned-components.mdx +11 -0
  134. package/dist/util/v5-guide/remix.mdx +0 -0
  135. package/dist/util/v5-guides/deprecation-removals.mdx +7 -0
  136. package/dist/util/v5-guides/generate.js +200 -0
  137. package/dist/util/v5-guides/hof-removals.mdx +3 -0
  138. package/dist/util/v5-guides/intro.mdx +15 -0
  139. package/dist/util/v5-guides/nextjs/after-sign-x-handling.mdx +10 -0
  140. package/dist/util/v5-guides/nextjs/deprecation-removals.mdx +9 -0
  141. package/dist/util/v5-guides/nextjs/generate.js +80 -0
  142. package/dist/util/v5-guides/nextjs/import-changes.mdx +98 -0
  143. package/dist/util/v5-guides/nextjs/index.js +0 -0
  144. package/dist/util/v5-guides/nextjs/intro.mdx +21 -0
  145. package/dist/util/v5-guides/nextjs/middleware-changes.mdx +251 -0
  146. package/dist/util/v5-guides/nextjs/retheme-changes.mdx +10 -0
  147. package/dist/util/v5-guides/nextjs/version-requirements.mdx +34 -0
  148. package/dist/util/v5-guides/node-setters-removals.mdx +34 -0
  149. package/dist/util/v5-guides/pagination-args.mdx +3 -0
  150. package/dist/util/v5-guides/pagination-return.mdx +3 -0
  151. package/dist/util/v5-guides/path-routing.mdx +50 -0
  152. package/dist/util/v5-guides/per-sdk.mdx +16 -0
  153. package/dist/util/v5-guides/prepare.mdx +135 -0
  154. package/dist/util/v5-guides/redesign-preview.mdx +5 -0
  155. package/dist/util/v5-guides/redesigned-components.mdx +11 -0
  156. package/dist/util/v5-guides/remix/index.js +5 -0
  157. package/dist/util/v5-nextjs-guide/after-sign-x-handling.mdx +10 -0
  158. package/dist/util/v5-nextjs-guide/deprecation-removals.mdx +9 -0
  159. package/dist/util/v5-nextjs-guide/generate-nextjs-v5-migration-guide.js +0 -0
  160. package/dist/util/v5-nextjs-guide/generate.js +80 -0
  161. package/dist/util/v5-nextjs-guide/import-changes.mdx +98 -0
  162. package/dist/util/v5-nextjs-guide/intro.md +0 -0
  163. package/dist/util/v5-nextjs-guide/intro.mdx +21 -0
  164. package/dist/util/v5-nextjs-guide/middleware-changes.mdx +251 -0
  165. package/dist/util/v5-nextjs-guide/retheme-changes.mdx +11 -0
  166. package/dist/util/v5-nextjs-guide/version-requirements.mdx +34 -0
  167. package/dist/versions/v5/backend/appearance-organizationpreview-organizationswitcher.md +9 -0
  168. package/dist/versions/v5/backend/authenticaterequest-params-change.md +1 -0
  169. package/dist/versions/v5/backend/clockskewinseconds.md +1 -0
  170. package/dist/versions/v5/backend/constants-import-path-move.md +1 -0
  171. package/dist/versions/v5/backend/createauthenticaterequest-import-path-move.md +1 -0
  172. package/dist/versions/v5/backend/createclerkclient-apikey.md +1 -0
  173. package/dist/versions/v5/backend/createclerkclient-frontendapi.md +1 -0
  174. package/dist/versions/v5/backend/createisomorphicrequest-import-path-move.md +1 -0
  175. package/dist/versions/v5/backend/createisomorphicrequest-removed.md +1 -0
  176. package/dist/versions/v5/backend/decodejwt-import-path-move.md +1 -0
  177. package/dist/versions/v5/backend/externalaccount-picture.md +1 -0
  178. package/dist/versions/v5/backend/externalaccountjson-avatarurl.md +1 -0
  179. package/dist/versions/v5/backend/getorganizationinvitationlist-return-signature.md +1 -0
  180. package/dist/versions/v5/backend/getorganizationinvitationlist-return-type-change.md +17 -0
  181. package/dist/versions/v5/backend/getorganizationlist-return-signature.md +1 -0
  182. package/dist/versions/v5/backend/getorganizationmembershiplist-return-signature.md +1 -0
  183. package/dist/versions/v5/backend/httpoptions-removed.md +2 -1
  184. package/dist/versions/v5/backend/organizationjson-logourl.md +1 -0
  185. package/dist/versions/v5/backend/organizationmembershippublicuserdatajson-profileimageurl.md +1 -0
  186. package/dist/versions/v5/backend/redirect-import-path-move.md +1 -0
  187. package/dist/versions/v5/backend/signjwt-import-path-move.md +1 -0
  188. package/dist/versions/v5/backend/signjwterror-import-move.md +1 -0
  189. package/dist/versions/v5/backend/tokenverificationerror-import-move.md +1 -0
  190. package/dist/versions/v5/backend/tokenverificationerroraction-import-move.md +1 -0
  191. package/dist/versions/v5/backend/tokenverificationerrorcode-import-move.md +1 -0
  192. package/dist/versions/v5/backend/tokenverificationerrorreason-import-move.md +1 -0
  193. package/dist/versions/v5/backend/userjson-profileimageurl.md +1 -0
  194. package/dist/versions/v5/backend/verifyjwt-import-path-move.md +1 -0
  195. package/dist/versions/v5/chromeExtension/clerkprovider-tokencache.md +8 -10
  196. package/dist/versions/v5/common/aftersigninurl-behavior-change-2.md +1 -0
  197. package/dist/versions/v5/common/aftersignouturl-behavior-change.md +1 -0
  198. package/dist/versions/v5/common/aftersignupurl-behavior-change.md +1 -0
  199. package/dist/versions/v5/common/afterswitchorganizationurl.md +1 -0
  200. package/dist/versions/v5/common/alternativemethods-backlink.md +1 -0
  201. package/dist/versions/v5/common/api-key-to-secret-key.md +1 -0
  202. package/dist/versions/v5/common/appearance-organizationpreview-organizationswitcher.md +1 -0
  203. package/dist/versions/v5/common/button-to-organizationlistcreateorganizationactionbutton.md +1 -0
  204. package/dist/versions/v5/common/card-changes.md +3 -2
  205. package/dist/versions/v5/common/changed-localization-keys.md +121 -120
  206. package/dist/versions/v5/common/clerkprovider-frontendapi-2.md +1 -0
  207. package/dist/versions/v5/common/clerkprovideroptionswrapper-dropped.md +1 -0
  208. package/dist/versions/v5/common/connected-accounts-dropdown.md +1 -0
  209. package/dist/versions/v5/common/emaillinkerrorcode-import-change.md +1 -0
  210. package/dist/versions/v5/common/externalaccount-avatarurl.md +7 -0
  211. package/dist/versions/v5/common/externalaccount-picture.md +7 -0
  212. package/dist/versions/v5/common/externalaccountjson-avatarurl.md +7 -0
  213. package/dist/versions/v5/common/frontend-api-to-publishable-key.md +1 -0
  214. package/dist/versions/v5/common/getorganizationinvitationlist-return-signature.md +15 -0
  215. package/dist/versions/v5/common/getorganizationinvitationlist-return-type-change.md +8 -5
  216. package/dist/versions/v5/common/getorganizationlist-return-signature.md +15 -0
  217. package/dist/versions/v5/common/getorganizationlist-return-type-change.md +2 -1
  218. package/dist/versions/v5/common/getorganizationmembershiplist-return-type-change.md +2 -1
  219. package/dist/versions/v5/common/isclerkapiresponserror-import-change.md +1 -0
  220. package/dist/versions/v5/common/isemaillinkerror-import-change.md +1 -0
  221. package/dist/versions/v5/common/isknownerror-import-change.md +1 -0
  222. package/dist/versions/v5/common/ismetamaskerror-import-change.md +6 -5
  223. package/dist/versions/v5/common/mfa-dropdown.md +1 -0
  224. package/dist/versions/v5/common/min-react-version.md +2 -0
  225. package/dist/versions/v5/common/multisessionappsupport-import-change.md +1 -1
  226. package/dist/versions/v5/common/navigate-to-routerpush-routerreplace.md +1 -0
  227. package/dist/versions/v5/common/new-localization-keys.md +121 -120
  228. package/dist/versions/v5/common/organization-create-string.md +12 -0
  229. package/dist/versions/v5/common/organization-getdomains-arguments-change.md +1 -0
  230. package/dist/versions/v5/common/organization-getinvitations-arguments-changed.md +1 -0
  231. package/dist/versions/v5/common/organization-getmembershiprequests-arguments-changed.md +1 -0
  232. package/dist/versions/v5/common/organization-getmemberships-arguments-changed.md +1 -0
  233. package/dist/versions/v5/common/organization-getpendinginvitations.md +11 -0
  234. package/dist/versions/v5/common/organization-getroles-arguments-changed.md +1 -0
  235. package/dist/versions/v5/common/organization-logourl.md +8 -0
  236. package/dist/versions/v5/common/organizationmembershippublicuserdata-profileimageurl.md +7 -0
  237. package/dist/versions/v5/common/organizationprofile-settings.md +1 -0
  238. package/dist/versions/v5/common/organizationswitcherpopoveractionbuttontext-removed.md +1 -0
  239. package/dist/versions/v5/common/remove-identitypreview-avatar.md +1 -0
  240. package/dist/versions/v5/common/remove-socialbuttonsblockbuttonarrow.md +1 -0
  241. package/dist/versions/v5/common/removed-localization-keys.md +74 -73
  242. package/dist/versions/v5/common/user-getorganizationinvitations-arguments-chanaged.md +1 -0
  243. package/dist/versions/v5/common/user-getorganizationinvitations-arguments-changed.md +16 -0
  244. package/dist/versions/v5/common/user-getorganizationmemberships-arguments-chanaged.md +1 -0
  245. package/dist/versions/v5/common/user-getorganizationmemberships-arguments-changed.md +16 -0
  246. package/dist/versions/v5/common/user-getorganizationsuggestions-arguments-chanaged.md +1 -0
  247. package/dist/versions/v5/common/user-getorganizationsuggestions-arguments-changed.md +16 -0
  248. package/dist/versions/v5/common/user-profileimageurl.md +7 -0
  249. package/dist/versions/v5/common/user-update-password.md +18 -0
  250. package/dist/versions/v5/common/userbuttonpopoveractionbuttontext-removed.md +1 -0
  251. package/dist/versions/v5/common/userbuttontrigger-userbuttonbox-invert.md +2 -1
  252. package/dist/versions/v5/common/userprofile-security.md +1 -0
  253. package/dist/versions/v5/common/withclerk-hof-removed.md +15 -14
  254. package/dist/versions/v5/common/withclerk-removed.md +1 -0
  255. package/dist/versions/v5/common/withsession-hof-removed.md +15 -14
  256. package/dist/versions/v5/common/withsession-removed.md +1 -0
  257. package/dist/versions/v5/common/withuser-hof-removed.md +15 -14
  258. package/dist/versions/v5/common/withuser-removed-2.md +1 -2
  259. package/dist/versions/v5/expo/apikey-to-publishable-key.md +1 -0
  260. package/dist/versions/v5/expo/clerkprovider-frontendapi.md +1 -0
  261. package/dist/versions/v5/fastify/clerkplugin-frontendapi.md +2 -1
  262. package/dist/versions/v5/fastify/createclerkclient-apikey.md +1 -0
  263. package/dist/versions/v5/fastify/createclerkclient-frontendapi.md +1 -0
  264. package/dist/versions/v5/gatsby/api-url-value-change.md +1 -1
  265. package/dist/versions/v5/gatsby/apikey-to-publishable-key.md +1 -0
  266. package/dist/versions/v5/gatsby/createclerkclient-apikey.md +1 -0
  267. package/dist/versions/v5/gatsby/createclerkclient-frontendapi.md +1 -0
  268. package/dist/versions/v5/gatsby/withserverauth-return-type.md +22 -30
  269. package/dist/versions/v5/index.js +16 -26
  270. package/dist/versions/v5/js/experimental-canusecaptcha.md +1 -0
  271. package/dist/versions/v5/js/experimental-captchasitekey.md +1 -0
  272. package/dist/versions/v5/js/experimental-captchaurl.md +1 -0
  273. package/dist/versions/v5/js/getorganizationmemberships.md +3 -6
  274. package/dist/versions/v5/js/redirecttohome.md +4 -4
  275. package/dist/versions/v5/js/signup-attemptweb3walletverification-generatedsignature.md +3 -2
  276. package/dist/versions/v5/js/unstable-invitationupdate.md +1 -0
  277. package/dist/versions/v5/js/unstable-membershipupdate.md +1 -0
  278. package/dist/versions/v5/js/user-createexternalaccount-redirecturl.md +1 -0
  279. package/dist/versions/v5/js/user-update-password.md +8 -9
  280. package/dist/versions/v5/next/auth-import-change.md +1 -0
  281. package/dist/versions/v5/next/auth-middleware-deprecated.md +8 -7
  282. package/dist/versions/v5/next/authmiddleware-apikey.md +5 -7
  283. package/dist/versions/v5/next/authmiddleware-frontendapi.md +2 -1
  284. package/dist/versions/v5/next/authmiddleware-import-change.md +1 -0
  285. package/dist/versions/v5/next/buildclerkprops-import-change.md +1 -0
  286. package/dist/versions/v5/next/clerk-import-change.md +1 -0
  287. package/dist/versions/v5/next/clerk-js-version-next-public.md +1 -0
  288. package/dist/versions/v5/next/constants-import-change.md +2 -1
  289. package/dist/versions/v5/next/createauthenticaterequest-import-change.md +1 -0
  290. package/dist/versions/v5/next/createclerkclient-apikey.md +2 -1
  291. package/dist/versions/v5/next/createclerkclient-frontendapi.md +2 -1
  292. package/dist/versions/v5/next/createisomorphicrequest-import-change.md +1 -0
  293. package/dist/versions/v5/next/currentuser-import-change.md +1 -0
  294. package/dist/versions/v5/next/decodejwt-import-change.md +1 -0
  295. package/dist/versions/v5/next/emaillinkerrorcode-import-change.md +1 -0
  296. package/dist/versions/v5/next/getauth-apikey.md +2 -1
  297. package/dist/versions/v5/next/import-api-url.md +2 -1
  298. package/dist/versions/v5/next/import-api-version.md +2 -1
  299. package/dist/versions/v5/next/import-clerk-js-url.md +2 -1
  300. package/dist/versions/v5/next/import-clerk-js-version.md +2 -1
  301. package/dist/versions/v5/next/import-domain.md +2 -1
  302. package/dist/versions/v5/next/import-is-satellite.md +2 -1
  303. package/dist/versions/v5/next/import-nextjs-api.md +7 -6
  304. package/dist/versions/v5/next/import-nextjs-app-beta.md +2 -1
  305. package/dist/versions/v5/next/import-nextjs-edge-middleware.md +1 -0
  306. package/dist/versions/v5/next/import-nextjs-edge-middlewarefiles.md +1 -0
  307. package/dist/versions/v5/next/import-nextjs-ssr.md +1 -0
  308. package/dist/versions/v5/next/import-proxy-url.md +2 -1
  309. package/dist/versions/v5/next/import-publishable-key.md +2 -1
  310. package/dist/versions/v5/next/import-secret-key.md +2 -1
  311. package/dist/versions/v5/next/import-sign-in-url.md +2 -1
  312. package/dist/versions/v5/next/import-sign-up-url.md +2 -1
  313. package/dist/versions/v5/next/isclerkapiresponserror-import-change.md +1 -0
  314. package/dist/versions/v5/next/isemaillinkerror-import-change.md +1 -0
  315. package/dist/versions/v5/next/isknownerror-import-change.md +1 -0
  316. package/dist/versions/v5/next/ismetamaskerror-import-change.md +1 -0
  317. package/dist/versions/v5/next/min-nextjs-version.md +2 -0
  318. package/dist/versions/v5/next/multisessionappsupport-import-change.md +1 -0
  319. package/dist/versions/v5/next/next-public-clerk-js-url.md +2 -1
  320. package/dist/versions/v5/next/redirect-import-change.md +1 -0
  321. package/dist/versions/v5/next/redirecttosignin-import-path.md +2 -1
  322. package/dist/versions/v5/next/redirecttosignup-import-path.md +2 -1
  323. package/dist/versions/v5/next/signjwt-import-change.md +1 -0
  324. package/dist/versions/v5/next/verifyjwt-import-change.md +1 -0
  325. package/dist/versions/v5/next/verifytoken-import-change.md +1 -0
  326. package/dist/versions/v5/next/with-clerk-middleware-removed.md +1 -0
  327. package/dist/versions/v5/nextjs/api-url-value-change.md +8 -0
  328. package/dist/versions/v5/nextjs/auth-import-change.md +14 -0
  329. package/dist/versions/v5/nextjs/auth-middleware-deprecated.md +50 -0
  330. package/dist/versions/v5/nextjs/authmiddleware-apikey.md +15 -0
  331. package/dist/versions/v5/nextjs/authmiddleware-frontendapi.md +15 -0
  332. package/dist/versions/v5/nextjs/authmiddleware-import-change.md +14 -0
  333. package/dist/versions/v5/nextjs/buildclerkprops-import-change.md +14 -0
  334. package/dist/versions/v5/nextjs/clerk-import-change.md +13 -0
  335. package/dist/versions/v5/nextjs/clerk-js-version-next-public.md +9 -0
  336. package/dist/versions/v5/nextjs/constants-import-change.md +14 -0
  337. package/dist/versions/v5/nextjs/createauthenticaterequest-import-change.md +14 -0
  338. package/dist/versions/v5/nextjs/createclerkclient-apikey.md +15 -0
  339. package/dist/versions/v5/nextjs/createclerkclient-frontendapi.md +15 -0
  340. package/dist/versions/v5/nextjs/createisomorphicrequest-import-change.md +14 -0
  341. package/dist/versions/v5/nextjs/currentuser-import-change.md +14 -0
  342. package/dist/versions/v5/nextjs/decodejwt-import-change.md +14 -0
  343. package/dist/versions/v5/nextjs/emaillinkerrorcode-import-change.md +14 -0
  344. package/dist/versions/v5/nextjs/getauth-apikey.md +13 -0
  345. package/dist/versions/v5/nextjs/import-api-url.md +8 -0
  346. package/dist/versions/v5/nextjs/import-api-version.md +8 -0
  347. package/dist/versions/v5/nextjs/import-clerk-js-url.md +8 -0
  348. package/dist/versions/v5/nextjs/import-clerk-js-version.md +8 -0
  349. package/dist/versions/v5/nextjs/import-domain.md +8 -0
  350. package/dist/versions/v5/nextjs/import-is-satellite.md +8 -0
  351. package/dist/versions/v5/nextjs/import-nextjs-api.md +21 -0
  352. package/dist/versions/v5/nextjs/import-nextjs-app-beta.md +11 -0
  353. package/dist/versions/v5/nextjs/import-nextjs-edge-middleware.md +7 -0
  354. package/dist/versions/v5/nextjs/import-nextjs-edge-middlewarefiles.md +7 -0
  355. package/dist/versions/v5/nextjs/import-nextjs-ssr.md +8 -0
  356. package/dist/versions/v5/nextjs/import-proxy-url.md +8 -0
  357. package/dist/versions/v5/nextjs/import-publishable-key.md +8 -0
  358. package/dist/versions/v5/nextjs/import-secret-key.md +8 -0
  359. package/dist/versions/v5/nextjs/import-sign-in-url.md +8 -0
  360. package/dist/versions/v5/nextjs/import-sign-up-url.md +8 -0
  361. package/dist/versions/v5/nextjs/isclerkapiresponserror-import-change.md +14 -0
  362. package/dist/versions/v5/nextjs/isemaillinkerror-import-change.md +14 -0
  363. package/dist/versions/v5/nextjs/isknownerror-import-change.md +14 -0
  364. package/dist/versions/v5/nextjs/min-nextjs-version.md +11 -0
  365. package/dist/versions/v5/nextjs/multisessionappsupport-import-change.md +14 -0
  366. package/dist/versions/v5/nextjs/next-public-clerk-js-url.md +7 -0
  367. package/dist/versions/v5/nextjs/redirect-import-change.md +14 -0
  368. package/dist/versions/v5/nextjs/redirecttosignin-import-path.md +13 -0
  369. package/dist/versions/v5/nextjs/redirecttosignup-import-path.md +13 -0
  370. package/dist/versions/v5/nextjs/signjwt-import-change.md +14 -0
  371. package/dist/versions/v5/nextjs/verifyjwt-import-change.md +14 -0
  372. package/dist/versions/v5/nextjs/verifytoken-import-change.md +14 -0
  373. package/dist/versions/v5/nextjs/with-clerk-middleware-removed.md +56 -0
  374. package/dist/versions/v5/node/cjs-esm-instance.md +1 -0
  375. package/dist/versions/v5/node/clerkexpressrequireauth-apikey.md +1 -0
  376. package/dist/versions/v5/node/clerkexpressrequireauth-frontendapi.md +1 -0
  377. package/dist/versions/v5/node/clerkexpresswithauth-apikey.md +1 -0
  378. package/dist/versions/v5/node/clerkexpresswithauth-frontendapi.md +1 -0
  379. package/dist/versions/v5/node/createclerkclient-apikey.md +1 -0
  380. package/dist/versions/v5/node/createclerkclient-frontendapi.md +1 -0
  381. package/dist/versions/v5/node/createclerkexpressrequireauth-apikey.md +1 -0
  382. package/dist/versions/v5/node/createclerkexpressrequireauth-frontendapi.md +1 -0
  383. package/dist/versions/v5/node/createclerkexpresswithauth-apikey.md +1 -0
  384. package/dist/versions/v5/node/createclerkexpresswithauth-frontendapi.md +1 -0
  385. package/dist/versions/v5/node/legacyauthobject-removed.md +3 -3
  386. package/dist/versions/v5/node/setclerkapikey.md +1 -0
  387. package/dist/versions/v5/node/setclerkapiversion.md +1 -0
  388. package/dist/versions/v5/node/setclerkhttpoptions.md +1 -0
  389. package/dist/versions/v5/node/setclerkserverapiurl.md +1 -0
  390. package/dist/versions/v5/react/api-url-value-change.md +1 -1
  391. package/dist/versions/v5/remix/clerk-import-change.md +1 -0
  392. package/dist/versions/v5/remix/clerkerrorboundary-removed.md +1 -0
  393. package/dist/versions/v5/remix/createclerkclient-apikey.md +1 -0
  394. package/dist/versions/v5/remix/getauth-apikey.md +1 -0
  395. package/dist/versions/v5/remix/rootauthloader-apikey.md +1 -0
  396. package/dist/versions/v5/remix/rootauthloader-frontendapi.md +1 -0
  397. package/package.json +5 -2
@@ -0,0 +1,57 @@
1
+ ### Path routing is now the default
2
+
3
+ On components like [`<SignIn />`](/docs/components/authentication/sign-in) you can define the props `routing` and `path`. `routing` can be set to `'hash' | 'path' | 'virtual'` and describes the routing strategy that should be used. `path` defines where the component is mounted when `routing="path"` is used.
4
+
5
+ In the latest version, the **default** `routing` strategy has become `'path'`. Unless you change the `routing` prop, you'll need to define the `path` prop. The affected components are:
6
+
7
+ - `<SignIn />`
8
+ - `<SignUp />`
9
+ - `<UserProfile />`
10
+ - `<CreateOrganization />`
11
+ - `<OrganizationProfile />`
12
+
13
+ Here's how you'd use the components going forward:
14
+
15
+ ```jsx
16
+ <SignIn path="/sign-in" />
17
+ <SignUp path="/sign-up" />
18
+ <UserProfile path="/user-profile" />
19
+ <CreateOrganization path="/create-org" />
20
+ <OrganizationProfile path="/org-profile" />
21
+ ```
22
+
23
+ If you don't define the `path` prop an error will be thrown. Of course, you can still use `routing="hash"` or `routing="virtual"`.
24
+
25
+ ```jsx
26
+ <UserProfile routing="hash" />
27
+ <OrganizationProfile routing="virtual" />
28
+ ```
29
+
30
+ <% if (['@clerk/nextjs', '@clerk/remix'].includes(packageName)) { %>
31
+ For the <%= packageName %> SDK, you can set environment variables for the sign up/in URLs and avoid needing to explicitly pass the path to the `<SignIn />` and `<SignUp />` components.
32
+
33
+ <% if (packageName === '@clerk/nextjs') { %>
34
+
35
+ ```env filename=".env.local"
36
+ NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
37
+ NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
38
+ ```
39
+
40
+ <% } %>
41
+ <% if (packageName === '@clerk/remix') { %>
42
+
43
+ ```env filename=".env"
44
+ CLERK_SIGN_IN_URL=/sign-in
45
+ CLERK_SIGN_UP_URL=/sign-up
46
+ ```
47
+
48
+ <% } %>
49
+
50
+ If you have defined both environment variables, you're able to use the `<SignIn />` and `<SignUp />` components without any props, as such:
51
+
52
+ ```jsx
53
+ <SignIn />
54
+ <SignUp />
55
+ ```
56
+
57
+ <% } %>
@@ -0,0 +1,10 @@
1
+ ## Preparing to upgrade
2
+
3
+ Before uprading, it's highly recommended that you update your Clerk SDKs to the latest Core 1 version (`npm i <%= packageName %>@core-1`). Some changes required for Core 2 can be applied incrementally to the latest <%= 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
+
5
+ <Callout>
6
+ Note that Core 2 is currently in beta, while we field feedback and ensure stability. Deploying beta versions to
7
+ production is not recommended and should be done at your own risk.
8
+ </Callout>
9
+
10
+ Additionally, some of the minumum version requirements for some base dependencies have been updated such that versions that are no longer supported or are at end-of-life are no longer guaranteed to work correctly with Clerk.
@@ -0,0 +1,20 @@
1
+ **Updating React**
2
+
3
+ All react-dependent Clerk SDKs now require you to use React 18 or higher. You can update your project by installing the latest version of `react` and `react-dom`.
4
+
5
+ <CodeBlockTabs type="installer" options={["npm", "yarn", "pnpm"]}>
6
+ ```bash filename="terminal"
7
+ npm install react@latest react-dom@latest
8
+ ```
9
+
10
+ ```bash filename="terminal"
11
+ yarn add react@latest react-dom@latest
12
+ ```
13
+
14
+ ```bash filename="terminal"
15
+ pnpm add react@latest react-dom@latest
16
+ ```
17
+
18
+ </CodeBlockTabs>
19
+
20
+ If you are upgrading from React 17 or lower, make sure to [learn about how to upgrade your React version to 18](https://react.dev/blog/2022/03/08/react-18-upgrade-guide) as well.
@@ -0,0 +1,5 @@
1
+ ### Component design adjustments
2
+
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
+
5
+ [More detail on these changes &raquo;](/components-redesigned)
@@ -0,0 +1,17 @@
1
+ ## Updating to Core 2 Beta
2
+
3
+ Whenever you feel ready, go ahead and install the latest beta version of any Clerk SDKs you are using. Make sure that you are prepared to patch some breaking changes before your app will work properly, however. The commands below demonstrate how to install the latest beta.
4
+
5
+ <CodeBlockTabs type="installer" options={["npm", "yarn", "pnpm"]}>
6
+ ```bash filename="terminal"
7
+ npm install <%= packageName %>@beta
8
+ ```
9
+
10
+ ```bash filename="terminal"
11
+ yarn add <%= packageName %>@beta
12
+ ```
13
+
14
+ ```bash filename="terminal"
15
+ pnpm add <%= packageName %>@beta
16
+ ```
17
+ </CodeBlockTabs>
@@ -0,0 +1,18 @@
1
+ ## Updating to Core 2 Beta
2
+
3
+ Whenever you feel ready, go ahead and install the latest beta version of any Clerk SDKs you are using. Make sure that you are prepared to patch some breaking changes before your app will work properly, however. The commands below demonstrate how to install the latest beta.
4
+
5
+ <CodeBlockTabs type="installer" options={["npm", "yarn", "pnpm"]}>
6
+ ```bash filename="terminal"
7
+ npm install <%= packageName %>@beta
8
+ ```
9
+
10
+ ```bash filename="terminal"
11
+ yarn add <%= packageName %>@beta
12
+ ```
13
+
14
+ ```bash filename="terminal"
15
+ pnpm add <%= packageName %>@beta
16
+ ```
17
+
18
+ </CodeBlockTabs>
@@ -0,0 +1,192 @@
1
+ import { renderAccordionForCategory, renderFrontmatter, renderMarkdown, renderSingleItem } from '../text-generation.js';
2
+ async function generate() {
3
+ const data = (await import(`../../versions/v5/index.js`)).default;
4
+ let output = '';
5
+ output += renderFrontmatter({
6
+ title: 'Upgrading from v4 to v5',
7
+ description: 'Learn how to upgrade from version 4 to version 5 of the Clerk JavaScript libraries.'
8
+ });
9
+ output += '\n\n';
10
+ output += renderMarkdown('v5-guide/intro');
11
+ output += '\n\n';
12
+ output += renderMarkdown('v5-guide/prepare');
13
+ output += '\n\n';
14
+ output += renderMarkdown('v5-guide/per-sdk');
15
+ output += '\n\n';
16
+
17
+ // ------------------------------------------------------------
18
+
19
+ // TODO: I'm not sure we're actually releasing the gatsby changes in v5, should double check this
20
+ output += '### Gatsby';
21
+ output += '\n\n';
22
+
23
+ // withServerAuth type change
24
+ output += renderSingleItem('withserverauth-return-type', data.gatsby);
25
+ output += '\n\n';
26
+
27
+ // Components redesigned
28
+ output += renderMarkdown('v5-guide/redesign-preview');
29
+ output += '\n\n';
30
+
31
+ // Deprecation removals & housekeeping
32
+ output += renderDeprecationRemovalsAndHousekeeping(data.gatsby);
33
+
34
+ // Shared sections:
35
+ // - path routing
36
+ // - org claim removed
37
+ // - afterSignX changes
38
+ // - error import changes
39
+ // - hof removals
40
+ // - imageUrl changes
41
+
42
+ // ------------------------------------------------------------
43
+
44
+ output += '### Expo';
45
+ output += '\n\n';
46
+
47
+ // Components redesigned
48
+ output += renderMarkdown('v5-guide/redesign-preview');
49
+ output += '\n\n';
50
+
51
+ // Deprecation removals & housekeeping
52
+ output += renderDeprecationRemovalsAndHousekeeping(data.expo);
53
+
54
+ // Shared sections:
55
+ // - org claim removed
56
+ // - afterSignX changes
57
+ // - error import changes
58
+ // - hof removals
59
+ // - imageUrl changes
60
+
61
+ // ------------------------------------------------------------
62
+
63
+ output += '### Fastify';
64
+ output += '\n\n';
65
+
66
+ // Deprecation removals & housekeeping
67
+ output += renderDeprecationRemovalsAndHousekeeping(data.fastify);
68
+
69
+ // Shared sections:
70
+ // - org claim removed
71
+ // - imageUrl changes
72
+
73
+ // ------------------------------------------------------------
74
+
75
+ output += '### Node';
76
+ output += '\n\n';
77
+
78
+ // TODO: plans to deprecate this package in favor of backend/express - maybe?
79
+
80
+ // cjs/esm imports
81
+ output += renderSingleItem('cjs-esm-instance', data.node);
82
+ output += '\n\n';
83
+
84
+ // createClerkClient options instead of setter methods
85
+ output += renderMarkdown('v5-guide/node-setters-removals');
86
+ output += '\n\n';
87
+
88
+ // Deprecation removals & housekeeping
89
+ output += renderDeprecationRemovalsAndHousekeeping(data.node);
90
+
91
+ // Shared sections:
92
+ // - org claim removed
93
+ // - imageUrl changes
94
+
95
+ // ------------------------------------------------------------
96
+
97
+ output += '### React';
98
+ output += '\n\n';
99
+
100
+ // path routing (TODO: this should be linked to from other react SDKs)
101
+ output += renderMarkdown('v5-guide/path-routing');
102
+ output += '\n\n';
103
+
104
+ // routerPush/routerReplace
105
+ output += renderSingleItem('navigate-to-routerpush-routerreplace', data.react);
106
+ output += '\n\n';
107
+
108
+ // useOrganizationsList
109
+ output += renderSingleItem('useorganizations', data.react);
110
+ output += '\n\n';
111
+
112
+ // HOF removals (TODO: this applies to all react sdks, should be shared section)
113
+ output += renderMarkdown('v5-guide/hof-removals');
114
+ output += '\n\n';
115
+ output += renderAccordionForCategory(data.react, 'hof-removal');
116
+ output += '\n\n';
117
+
118
+ // Components redesigned
119
+ output += renderMarkdown('v5-guide/redesign-preview');
120
+ output += '\n\n';
121
+
122
+ // Deprecation removals & housekeeping
123
+ output += renderDeprecationRemovalsAndHousekeeping(data.react);
124
+
125
+ // Shared sections:
126
+ // - path routing?
127
+ // - org claim removed
128
+ // - afterSignX changes
129
+ // - error import changes
130
+ // - hof removals
131
+ // - imageUrl changes
132
+
133
+ // ------------------------------------------------------------
134
+
135
+ output += '### Javascript';
136
+ output += '\n\n';
137
+
138
+ // pagination params
139
+ output += renderMarkdown('v5-guide/pagination-args');
140
+ output += '\n\n';
141
+ output += renderAccordionForCategory(data.js, 'pagination-args');
142
+ output += '\n\n';
143
+
144
+ // data/totalCount return values
145
+ output += renderMarkdown('v5-guide/pagination-return');
146
+ output += '\n\n';
147
+ output += renderAccordionForCategory(data.js, 'pagination-return');
148
+ output += '\n\n';
149
+
150
+ // imageUrl changes
151
+
152
+ // createOrganization args
153
+
154
+ // attemptweb3wallet
155
+
156
+ // afterSignXUrl changes
157
+
158
+ // Deprecation removals & housekeeping
159
+
160
+ // Shared sections:
161
+ // - path routing?
162
+ // - org claim removed
163
+ // - afterSignX changes
164
+ // - error import changes
165
+
166
+ // ------------------------------------------------------------
167
+
168
+ output += '### Backend';
169
+ output += '\n\n';
170
+
171
+ // buildrequesturl, createisomorphicrequest, createEmail removed
172
+
173
+ // clockskewinms
174
+
175
+ // error api import move
176
+
177
+ // membershiprole -> organizationcustomrolekey
178
+
179
+ // orgs claim dropped
180
+
181
+ // Deprecation removals & housekeeping
182
+
183
+ // ------------------------------------------------------------
184
+
185
+ output += '### Chrome Extension';
186
+ output += '\n\n';
187
+
188
+ // token cache change
189
+
190
+ return output;
191
+ }
192
+ generate().then(console.log);
@@ -0,0 +1,7 @@
1
+ As part of this major version, a number of previously deprecated props, arugments, methods, etc have been removed. Additionally there have been some changes to things that are only used internally, or only used very rarely. It's highly unlikely that any given app will encounter any of these items, but they are all breaking changes, so they have all been documented below.
2
+
3
+ <Callout type='info'>
4
+ For this section more than any other one, please use the CLI upgrade tool (`npx @clerk/upgrade`). There
5
+ are a lot of changes, each of which are very unlikely to appear in your codebase, that would take a very long time to
6
+ look for manually.
7
+ </Callout>
@@ -0,0 +1,263 @@
1
+ import { renderAccordionForCategory, renderFrontmatter, renderMarkdown, renderSingleItem } from '../text-generation.js';
2
+ async function generate() {
3
+ const data = (await import(`../../versions/v5/index.js`)).default;
4
+ let output = '';
5
+ output += renderFrontmatter({
6
+ title: 'Upgrading from v4 to v5',
7
+ description: 'Learn how to upgrade from version 4 to version 5 of the Clerk JavaScript libraries.'
8
+ });
9
+ output += '\n\n';
10
+ output += renderMarkdown('v5-guide/intro');
11
+ output += '\n\n';
12
+ output += renderMarkdown('v5-guide/prepare');
13
+ output += '\n\n';
14
+ output += renderMarkdown('v5-guide/per-sdk');
15
+ output += '\n\n';
16
+
17
+ // ------------------------------------------------------------
18
+
19
+ output += '### Remix';
20
+ output += '\n\n';
21
+
22
+ // Error boundary removal
23
+ output += renderSingleItem('clerkerrorboundary-removed', data.remix);
24
+ output += '\n\n';
25
+
26
+ // Components redesigned
27
+ output += renderMarkdown('v5-guide/redesign-preview');
28
+ output += '\n\n';
29
+
30
+ // Deprecation removals & housekeeping
31
+ output += renderDeprecationRemovalsAndHousekeeping(data.remix);
32
+
33
+ // Shared sections:
34
+ // - path routing
35
+ // - org claim removed
36
+ // - afterSignX changes
37
+ // - error import changes
38
+ // - hof removals
39
+ // - imageUrl changes
40
+
41
+ // ------------------------------------------------------------
42
+
43
+ // TODO: I'm not sure we're actually releasing the gatsby changes in v5, should double check this
44
+ output += '### Gatsby';
45
+ output += '\n\n';
46
+
47
+ // withServerAuth type change
48
+ output += renderSingleItem('withserverauth-return-type', data.gatsby);
49
+ output += '\n\n';
50
+
51
+ // Components redesigned
52
+ output += renderMarkdown('v5-guide/redesign-preview');
53
+ output += '\n\n';
54
+
55
+ // Deprecation removals & housekeeping
56
+ output += renderDeprecationRemovalsAndHousekeeping(data.gatsby);
57
+
58
+ // Shared sections:
59
+ // - path routing
60
+ // - org claim removed
61
+ // - afterSignX changes
62
+ // - error import changes
63
+ // - hof removals
64
+ // - imageUrl changes
65
+
66
+ // ------------------------------------------------------------
67
+
68
+ output += '### Expo';
69
+ output += '\n\n';
70
+
71
+ // Components redesigned
72
+ output += renderMarkdown('v5-guide/redesign-preview');
73
+ output += '\n\n';
74
+
75
+ // Deprecation removals & housekeeping
76
+ output += renderDeprecationRemovalsAndHousekeeping(data.expo);
77
+
78
+ // Shared sections:
79
+ // - org claim removed
80
+ // - afterSignX changes
81
+ // - error import changes
82
+ // - hof removals
83
+ // - imageUrl changes
84
+
85
+ // ------------------------------------------------------------
86
+
87
+ output += '### Fastify';
88
+ output += '\n\n';
89
+
90
+ // Deprecation removals & housekeeping
91
+ output += renderDeprecationRemovalsAndHousekeeping(data.fastify);
92
+
93
+ // Shared sections:
94
+ // - org claim removed
95
+ // - imageUrl changes
96
+
97
+ // ------------------------------------------------------------
98
+
99
+ output += '### Node';
100
+ output += '\n\n';
101
+
102
+ // TODO: plans to deprecate this package in favor of backend/express - maybe?
103
+
104
+ // cjs/esm imports
105
+ output += renderSingleItem('cjs-esm-instance', data.node);
106
+ output += '\n\n';
107
+
108
+ // createClerkClient options instead of setter methods
109
+ output += renderMarkdown('v5-guide/node-setters-removals');
110
+ output += '\n\n';
111
+
112
+ // Deprecation removals & housekeeping
113
+ output += renderDeprecationRemovalsAndHousekeeping(data.node);
114
+
115
+ // Shared sections:
116
+ // - org claim removed
117
+ // - imageUrl changes
118
+
119
+ // ------------------------------------------------------------
120
+
121
+ output += '### React';
122
+ output += '\n\n';
123
+
124
+ // path routing (TODO: this should be linked to from other react SDKs)
125
+ output += renderMarkdown('v5-guide/path-routing');
126
+ output += '\n\n';
127
+
128
+ // routerPush/routerReplace
129
+ output += renderSingleItem('navigate-to-routerpush-routerreplace', data.react);
130
+ output += '\n\n';
131
+
132
+ // useOrganizationsList
133
+ output += renderSingleItem('useorganizations', data.react);
134
+ output += '\n\n';
135
+
136
+ // HOF removals (TODO: this applies to all react sdks, should be shared section)
137
+ output += renderMarkdown('v5-guide/hof-removals');
138
+ output += '\n\n';
139
+ output += renderAccordionForCategory(data.react, 'hof-removal');
140
+ output += '\n\n';
141
+
142
+ // Components redesigned
143
+ output += renderMarkdown('v5-guide/redesign-preview');
144
+ output += '\n\n';
145
+
146
+ // Deprecation removals & housekeeping
147
+ output += renderDeprecationRemovalsAndHousekeeping(data.react);
148
+
149
+ // Shared sections:
150
+ // - path routing?
151
+ // - org claim removed
152
+ // - afterSignX changes
153
+ // - error import changes
154
+ // - hof removals
155
+ // - imageUrl changes
156
+
157
+ // ------------------------------------------------------------
158
+
159
+ output += '### Javascript';
160
+ output += '\n\n';
161
+
162
+ // pagination params
163
+ output += renderMarkdown('v5-guide/pagination-args');
164
+ output += '\n\n';
165
+ output += renderAccordionForCategory(data.js, 'pagination-args');
166
+ output += '\n\n';
167
+
168
+ // data/totalCount return values
169
+ output += renderMarkdown('v5-guide/pagination-return');
170
+ output += '\n\n';
171
+ output += renderAccordionForCategory(data.js, 'pagination-return');
172
+ output += '\n\n';
173
+
174
+ // imageUrl changes
175
+
176
+ // createOrganization args
177
+
178
+ // attemptweb3wallet
179
+
180
+ // afterSignXUrl changes
181
+
182
+ // Deprecation removals & housekeeping
183
+
184
+ // Shared sections:
185
+ // - path routing?
186
+ // - org claim removed
187
+ // - afterSignX changes
188
+ // - error import changes
189
+
190
+ // ------------------------------------------------------------
191
+
192
+ output += '### Backend';
193
+ output += '\n\n';
194
+
195
+ // buildrequesturl, createisomorphicrequest, createEmail removed
196
+
197
+ // clockskewinms
198
+
199
+ // error api import move
200
+
201
+ // membershiprole -> organizationcustomrolekey
202
+
203
+ // orgs claim dropped
204
+
205
+ // Deprecation removals & housekeeping
206
+
207
+ // ------------------------------------------------------------
208
+
209
+ output += '### Chrome Extension';
210
+ output += '\n\n';
211
+
212
+ // token cache change
213
+
214
+ // ------------------------------------------------------------
215
+
216
+ // Component redesign, shared section
217
+ output += renderMarkdown('v5-guide/redesigned-components');
218
+ output += '\n\n';
219
+
220
+ // This is a guide-specific item, no matcher for this
221
+ // TODO: add a way to have this be a normal change item but not run in the CLI
222
+ const defaultsChangeItem = {
223
+ title: 'Changes to default variables',
224
+ content: `The default values of some [appearance variables](/docs/components/customization/variables) have changed which may impact your UI (if you are not already overriding them).
225
+
226
+ - 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\`.
227
+ - The default \`fontSize\` value changed from \`1rem\` to \`0.8125rem\`
228
+ - The default \`fontWeight\` values changed from \`{ normal: 400, medium: 500, bold: 600 }\` to \`{ normal: 400, medium: 500, bold: 700 }\`
229
+ - 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.`
230
+ };
231
+ output += '#### Appearance changes';
232
+ output += '\n\n';
233
+ output += renderAccordionForCategory(data.nextjs, 'appearance', {
234
+ additionalItems: [defaultsChangeItem]
235
+ });
236
+ output += '\n\n';
237
+ output += '#### Localization changes';
238
+ output += '\n\n';
239
+ output += renderAccordionForCategory(data.nextjs, 'localization');
240
+ output += '\n\n';
241
+ return output;
242
+ }
243
+ generate().then(console.log);
244
+
245
+ // This is used the same way for all SDKs, so this fn prevents tons of repetition
246
+ function renderDeprecationRemovalsAndHousekeeping(data) {
247
+ let output = '';
248
+ output += '## Deprecation removals & housekeeping';
249
+ output += '\n\n';
250
+ output += renderMarkdown('v5-guide/deprecation-removals');
251
+ output += '\n\n';
252
+ output += '### Deprecation removals';
253
+ output += '\n\n';
254
+ output += renderMarkdown('v5-guide/deprecation-removals');
255
+ output += '\n\n';
256
+ output += renderAccordionForCategory(data, 'deprecation-removal');
257
+ output += '\n\n';
258
+ output += '### Other Breaking Changes';
259
+ output += '\n\n';
260
+ output += renderAccordionForCategory(data, [undefined, 'hof-removal', 'pagination-return', 'pagination-args', 'error-imports']);
261
+ output += '\n\n';
262
+ return output;
263
+ }
@@ -0,0 +1,3 @@
1
+ ### Some higher-order functions and components removed
2
+
3
+ A set of higher-order functions and components that are easily replicated with userland code and were rarely used have been removed. Each of them are listed below, along with code snippets with which they can be reproduced if need be.
@@ -0,0 +1,15 @@
1
+ # Upgrading from v4 to v5
2
+
3
+ Clerk's SDKs include React, Next.js, Remix, Expo, Redwood, and others. This guide helps you with uprading to the next major version of your SDK.
4
+
5
+ Version 5 ships with an improved design and UX for its built-in components, no "flash of white page" when authenticating, and a new middleware for Next.js which defaults to not protecting any routes. Along with these highly requested features some smaller DX improvements and housekeeping items made its way into the release. If you want to know everything that's new, read the [v5 announcement post](https://clerk.com/changelog/2024-01-16).
6
+
7
+ <Callout type="info" >
8
+ Version 5/v5 refers to the [`@clerk/clerk-js`](https://www.npmjs.com/package/@clerk/clerk-js) package version. However, other SDKs like `@clerk/backend` or `@clerk/clerk-expo` are versioned independently (and would upgrade from v1 to v2). To make this page easier to read for instances of general advice only v5 is mentioned. You can think of v4 as the previous major of your SDK and v5 as the current in those cases.
9
+ </Callout>
10
+
11
+ If you're curious about Clerk's approach to versioning and support, head to the [long term support](/docs/upgrade-guides/long-term-support) document. Version 5 includes [potentially breaking changes](#breaking-changes), as well as the removal of [previously deprecated features](#previously-deprecated-features).
12
+
13
+ For most users we expect a smooth upgrade path as only a couple of changes will be required: [Update dependencies](#update-dependencies), run the `@clerk/upgrade` CLI, [update Clerk](#update-clerk), and handle any [breaking changes](#breaking-changes).
14
+
15
+ If you're using **Next.js**, you can read a more streamlined [Upgrading Next.js from v4 to v5](/docs/upgrade-guides/upgrading-nextjs-from-v4-to-v5) guide.
@@ -0,0 +1,10 @@
1
+ ## After sign up/in/out URL handling
2
+
3
+ Defining redirect URLs for after sign up, in, and/or out via the Clerk dashboard has been removed in v5. In your Clerk dashboard, under "paths", there is a section called "Component paths", where URLs could be defined that had a deprecation warning. In v5, this functionality has been removed, and specifying redirect paths via the dashboard will no longer work. If you need to pass a redirect URL for after sign in/up/out, there are [a few different ways this can be done](https://clerk.com/docs/account-portal/custom-redirects), from environment variables to middleware to supplying them directly to the relevant components.
4
+
5
+ As part of this change, the default URL for each of these props has been set to `/`, so if you are passing `/` explicitly to any one of the above props, that line is no longer necessary and can be removed.
6
+
7
+ ```diff
8
+ - <UserButton afterSignOutUrl='/' />
9
+ + <UserButton />
10
+ ```
@@ -0,0 +1,9 @@
1
+ ## Deprecation removals & housekeeping
2
+
3
+ As part of this major version, a large number of previously deprecated props, arugments, methods, etc have been removed. Additionally there have been some changes to things that are only used internally, or only used very rarely. It's highly unlikely that any given app will encounter any of these items, but they are all breaking changes, so they have all been documented below.
4
+
5
+ <Callout type='info'>
6
+ For this section more than any other one, please use the CLI upgrade tool (`npx @clerk/upgrade`). There
7
+ are a lot of changes, each of which are very unlikely to appear in your codebase, that would take a very long time to
8
+ look for manually.
9
+ </Callout>