@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
@@ -2,6 +2,7 @@
2
2
  title: '`httpOptions` parameter removed'
3
3
  matcher: "\\([\\s\\S]*?httpOptions:\\s\\S]*?\\)"
4
4
  matcherFlags: 'm'
5
+ category: 'skip'
5
6
  ---
6
7
 
7
8
  The `httpOptions` parameter was removed from the internal `buildRequest` function but it is used by most public facing APIs. Hence you were able to pass `httpOptions` to some functions which is not possible anymore. If you're currently relying on this functionality and wish to update, please reach out to Clerk's support.
@@ -9,7 +10,7 @@ The `httpOptions` parameter was removed from the internal `buildRequest` functio
9
10
  The internal change looks like this:
10
11
 
11
12
  ```diff
12
- - const r = buildRequest({ httpsOptions: { headers: {} }})
13
+ - const r = buildRequest({ httpOptions: { headers: {} }})
13
14
  + const request = buildRequest()
14
15
  + request({ headerParams: {} })
15
16
  ```
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: '`OrganizationJSON.logo_url` -> `.imageUrl`'
3
3
  matcher: "\\.logo_url"
4
+ category: 'image-url-backend'
4
5
  ---
5
6
 
6
7
  The `logo_url` property of any `OrganizationJSON` object has been changed to `imageUrl`.
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: '`OrganizationMembershipPublicUserDataJSON.profile_image_url` -> `.imageUrl`'
3
3
  matcher: "\\.profile_image_url"
4
+ category: 'image-url-backend'
4
5
  ---
5
6
 
6
7
  The `profile_image_url` property of any `OrganizationMembershipPublicUserDataJSON` object has been changed to `imageUrl`.
@@ -3,6 +3,7 @@ title: '`redirect` import moved to `@clerk/backend/internal`'
3
3
  matcher: "import\\s+{[\\s\\S]*?redirect[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)['\"]"
4
4
  matcherFlags: 'm'
5
5
  replaceWithString: 'backend/internal'
6
+ category: 'import-paths'
6
7
  ---
7
8
 
8
9
  The `redirect` import path has changed from `@clerk/backend` to `@clerk/backend/internal`. You must update your import path in order for it to work correctly. Note that internal imports are not intended for usage and are outside the scope of semver. Example below of the fix that needs to be made:
@@ -3,6 +3,7 @@ title: '`signJwt` import moved to `@clerk/backend/tokens`'
3
3
  matcher: "import\\s+{[\\s\\S]*?signJwt[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)['\"]"
4
4
  matcherFlags: 'm'
5
5
  replaceWithString: 'backend/tokens'
6
+ category: 'import-paths'
6
7
  ---
7
8
 
8
9
  The `signJwt` import path has changed from `@clerk/backend` to `@clerk/backend/tokens`. You must update your import path in order for it to work correctly. Example below of the fix that needs to be made
@@ -3,6 +3,7 @@ title: '`SignJWTError` import moved to `@clerk/backend/errors`'
3
3
  matcher: "import\\s+{[\\s\\S]*?SignJWTError[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)['\"]"
4
4
  matcherFlags: 'm'
5
5
  replaceWithString: 'backend/errors'
6
+ category: 'import-paths'
6
7
  ---
7
8
 
8
9
  The `SignJWTError` import path has changed from `@clerk/backend` to `@clerk/backend/errors`. You must update your import path in order for it to work correctly. Example below of the fix that needs to be made:
@@ -3,6 +3,7 @@ title: '`TokenVerificationError` import moved to `@clerk/backend/errors`'
3
3
  matcher: "import\\s+{[\\s\\S]*?TokenVerificationError[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)['\"]"
4
4
  matcherFlags: 'm'
5
5
  replaceWithString: 'backend/errors'
6
+ category: 'import-paths'
6
7
  ---
7
8
 
8
9
  The `TokenVerificationError` import path has changed from `@clerk/backend` to `@clerk/backend/errors`. You must update your import path in order for it to work correctly. Example below of the fix that needs to be made:
@@ -3,6 +3,7 @@ title: '`TokenVerificationErrorAction` import moved to `@clerk/backend/errors`'
3
3
  matcher: "import\\s+{[\\s\\S]*?TokenVerificationErrorAction[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)['\"]"
4
4
  matcherFlags: 'm'
5
5
  replaceWithString: 'backend/errors'
6
+ category: 'import-paths'
6
7
  ---
7
8
 
8
9
  The `TokenVerificationErrorAction` import path has changed from `@clerk/backend` to `@clerk/backend/errors`. You must update your import path in order for it to work correctly. Example below of the fix that needs to be made:
@@ -3,6 +3,7 @@ title: '`TokenVerificationErrorCode` import moved to `@clerk/backend/errors`'
3
3
  matcher: "import\\s+{[\\s\\S]*?TokenVerificationErrorCode[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)['\"]"
4
4
  matcherFlags: 'm'
5
5
  replaceWithString: 'backend/errors'
6
+ category: 'import-paths'
6
7
  ---
7
8
 
8
9
  The `TokenVerificationErrorCode` import path has changed from `@clerk/backend` to `@clerk/backend/errors`. You must update your import path in order for it to work correctly. Example below of the fix that needs to be made:
@@ -3,6 +3,7 @@ title: '`TokenVerificationErrorReason` import moved to `@clerk/backend/errors`'
3
3
  matcher: "import\\s+{[\\s\\S]*?TokenVerificationErrorReason[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)['\"]"
4
4
  matcherFlags: 'm'
5
5
  replaceWithString: 'backend/errors'
6
+ category: 'import-paths'
6
7
  ---
7
8
 
8
9
  The `TokenVerificationErrorReason` import path has changed from `@clerk/backend` to `@clerk/backend/errors`. You must update your import path in order for it to work correctly. Example below of the fix that needs to be made:
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: '`UserJSON.profile_image_url` -> `.imageUrl`'
3
3
  matcher: "\\.profile_image_url"
4
+ category: 'image-url-backend'
4
5
  ---
5
6
 
6
7
  The `profile_image_url` property of any `UserJSON` object has been changed to `imageUrl`.
@@ -3,6 +3,7 @@ title: '`verifyJwt` import moved to `@clerk/backend/tokens`'
3
3
  matcher: "import\\s+{[\\s\\S]*?verifyJwt[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/(backend)['\"]"
4
4
  matcherFlags: 'm'
5
5
  replaceWithString: 'backend/tokens'
6
+ category: 'import-paths'
6
7
  ---
7
8
 
8
9
  The `verifyJwt` import path has changed from `@clerk/backend` to `@clerk/backend/tokens`. You must update your import path in order for it to work correctly. Example below of the fix that needs to be made
@@ -2,25 +2,23 @@
2
2
  title: '`tokenCache` -> `storageCache` as `<ClerkProvider>` props'
3
3
  matcher: "<ClerkProvider[\\s\\S]*?tokenCache=[\\s\\S]*?>"
4
4
  matcherFlags: 'm'
5
+ category: 'skip'
5
6
  ---
6
7
 
7
8
  The `tokenCache` prop has been renamed to `storageCache` in order to accomodate the new [WebSSO feature](https://github.com/clerk/javascript/pull/2277). With the prop change from `tokenCache` to `storageCache`, the interface has been expanded to allow for more flexibility. The new interface is as follows:
8
9
 
9
10
  ```ts
10
11
  type StorageCache = {
11
- createKey: (...keys: string[]) => string;
12
- get: <T = any>(key: string) => Promise<T>;
13
- remove: (key: string) => Promise<void>;
14
- set: (key: string, value: string) => Promise<void>;
12
+ createKey: (...keys: string[]) => string;
13
+ get: <T = any>(key: string) => Promise<T>;
14
+ remove: (key: string) => Promise<void>;
15
+ set: (key: string, value: string) => Promise<void>;
15
16
  };
16
17
  ```
17
18
 
18
19
  And here's a full before/after example:
19
20
 
20
- ```jsx
21
- // before
22
- <ClerkProvider tokenCache={/* ... */}>
23
-
24
- // after
25
- <ClerkProvider storageCache={/* ... */}>
21
+ ```diff
22
+ - <ClerkProvider tokenCache={/* ... */}>
23
+ + <ClerkProvider storageCache={/* ... */}>
26
24
  ```
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: '`afterSignInUrl` prop behavior change'
3
3
  matcher: 'afterSignInUrl='
4
+ category: 'after-sign-x-handling'
4
5
  warning: true
5
6
  ---
6
7
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: '`afterSignOutUrl` prop behavior change'
3
3
  matcher: 'afterSignOutUrl='
4
+ category: 'after-sign-x-handling'
4
5
  warning: true
5
6
  ---
6
7
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: '`afterSignUpUrl` prop behavior change'
3
3
  matcher: 'afterSignUpUrl='
4
+ category: 'after-sign-x-handling'
4
5
  warning: true
5
6
  ---
6
7
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: '`afterSwitchOrganizationUrl` -> `afterSelectOrganizationUrl` in `OrganizationSwitcher`'
3
3
  matcher: "<OrganizationSwitcher[\\s\\S]*?(afterSwitchOrganizationUrl)=[\\s\\S]*?>"
4
+ category: 'deprecation-removal'
4
5
  matcherFlags: 'm'
5
6
  replaceWithString: 'afterSelectOrganizationUrl'
6
7
  ---
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  title: 'Back button customization ids change on alternative 2fa methods page'
3
+ category: 'appearance'
3
4
  image: true
4
5
  matcherFlags: 'm'
5
6
  matcher:
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  title: '`CLERK_API_KEY` replaced by `CLERK_SECRET_KEY`'
3
+ category: 'deprecation-removal'
3
4
  matcher: 'CLERK_API_KEY'
4
5
  ---
5
6
 
@@ -2,6 +2,7 @@
2
2
  title: '`elements.organizationPreview__organizationSwitcher` -> `elements.organizationPreview__organizationSwitcherTrigger` in `<OrganizationSwitcher />` appearance prop'
3
3
  matcher: "<OrganizationSwitcher[\\s\\S]*?appearance={\\s*{\\s*elements:\\s*{\\s*(organizationPreview__organizationSwitcher)[\\s\\S]*?>"
4
4
  matcherFlags: 'm'
5
+ category: 'appearance'
5
6
  replaceWithString: 'organizationPreview__organizationSwitcherTrigger'
6
7
  ---
7
8
 
@@ -2,6 +2,7 @@
2
2
  title: '`button` -> `organizationListCreateOrganizationActionButton` customization id'
3
3
  image: true
4
4
  replaceWithString: 'organizationListCreateOrganizationActionButton'
5
+ category: 'appearance'
5
6
  matcherFlags: 'm'
6
7
  matcher:
7
8
  - "\\.cl-(button)"
@@ -1,14 +1,15 @@
1
1
  ---
2
2
  title: 'Changes to the `card` customization id'
3
3
  warning: true
4
+ category: 'appearance'
4
5
  matcherFlags: 'm'
5
6
  matcher:
6
7
  - "\\.cl-card"
7
8
  - "elements:\\s+{[\\s\\S]*?card:[\\s\\S]*?}"
8
9
  ---
9
10
 
10
- The `card` customization id in the previous major version was the main and only container element for components Outside the `card` element we introduced a new `cardBox` id that allows more fine-grained style customization.
11
+ The `card` customization id in the previous major version was the main and only container element for components. Outside the `card` element, a new `cardBox` id was introduced that allows more fine-grained style customization.
11
12
 
12
13
  As a note, if you are changing the background color of `card`, you will also need to also apply the same color on the `footer` id as well. The `footer` now gray by default, and it’s located outside `card`, but inside `cardBox`.
13
14
 
14
- We also added a `footerItem` id for more targeted styling of items inside the `footer`.
15
+ A `footerItem` id was also added for more targeted styling of items inside the `footer`.
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: 'Localization keys changed'
3
3
  matcherFlags: 'm'
4
+ category: 'localization'
4
5
  matcher:
5
6
  - 'formFieldLabel__organizationName:'
6
7
  - 'formFieldLabel__organizationSlug:'
@@ -55,125 +56,125 @@ The values of some keys have been changed on the default [en-US localization obj
55
56
 
56
57
  ```js
57
58
  const changedValues = {
58
- formFieldLabel__organizationName: 'Name',
59
- formFieldLabel__organizationSlug: 'Slug',
60
- formFieldInputPlaceholder__emailAddresses: 'example@email.com, example2@email.com',
61
- formFieldInputPlaceholder__organizationSlug: 'my-org',
62
- signUp: {
63
- start: {
64
- subtitle: 'Welcome! Please fill in the details to get started.',
65
- actionText: 'Already have an account?',
66
- },
67
- emailCode: {
68
- subtitle: 'Enter the verification code sent to your email',
69
- },
70
- phoneCode: {
71
- subtitle: 'Enter the verification code sent to your phone',
72
- },
73
- continue: {
74
- subtitle: 'Please fill in the remaining details to continue.',
75
- actionText: 'Already have an account?',
76
- },
77
- },
78
- signIn: {
79
- start: {
80
- title: 'Sign in to {{applicationName}}',
81
- subtitle: 'Welcome back! Please sign in to continue',
82
- actionText: 'Don’t have an account?',
83
- },
84
- password: {
85
- subtitle: 'Enter the password associated with your account',
86
- },
87
- forgotPasswordAlternativeMethods: {
88
- label__alternativeMethods: 'Or, sign in with another method',
89
- },
90
- resetPassword: {
91
- title: 'Set new password',
92
- },
93
- phoneCodeMfa: {
94
- subtitle: 'To continue, please enter the verification code sent to your phone',
95
- },
96
- totpMfa: {
97
- subtitle: 'To continue, please enter the verification code generated by your authenticator app',
98
- },
99
- backupCodeMfa: {
100
- subtitle: 'Your backup code is the one you got when setting up two-step authentication.',
101
- },
102
- },
103
- userProfile: {
104
- formButtonPrimary__continue: 'Save',
105
- start: {
106
- headerTitle__account: 'Profile details',
107
- profileSection: {
108
- primaryButton: 'Edit profile',
109
- },
110
- emailAddressesSection: {
111
- detailsAction__unverified: 'Verify',
112
- destructiveAction: 'Remove email',
113
- },
114
- mfaSection: {
115
- phoneCode: {
116
- destructiveActionLabel: 'Remove',
117
- },
118
- backupCodes: {
119
- actionLabel__regenerate: 'Regenerate',
120
- },
121
- },
122
- dangerSection: {
123
- title: 'Account termination',
124
- deleteAccountButton: 'Delete account',
125
- },
126
- },
127
- profilePage: {
128
- imageFormSubtitle: 'Upload',
129
- imageFormDestructiveActionSubtitle: 'Remove',
130
- },
131
- phoneNumberPage: {
132
- title: 'Add a phone number',
133
- infoText:
134
- 'A text message containing a verification link will be sent to this phone number. Message and data rates may apply.',
135
- },
136
- connectedAccountPage: {
137
- socialButtonsBlockButton: '{{provider|titleize}}',
138
- },
139
- mfaPhoneCodePage: {
140
- subtitle__availablePhoneNumbers:
141
- 'Select an existing phone number to register for SMS code two-step verification or add a new one.',
142
- subtitle__unavailablePhoneNumbers:
143
- 'There are no available phone numbers to register for SMS code two-step verification, please add a new one.',
144
- },
145
- deletePage: {
146
- actionDescription: 'Type "Delete account" below to continue.',
147
- },
148
- },
149
- organizationSwitcher: {
150
- action__createOrganization: 'Create organization',
151
- action__manageOrganization: 'Manage',
152
- },
153
- organizationProfile: {
154
- profilePage: {
155
- title: 'Update Profile',
156
- dangerSection: {
157
- title: 'Danger',
158
- leaveOrganization: {
159
- actionDescription: 'Type "{{organizationName}}" below to continue.',
160
- },
161
- deleteOrganization: {
162
- actionDescription: 'Type "{{organizationName}}" below to continue.',
163
- },
164
- },
165
- },
166
- invitePage: {
167
- title: 'Invite new members',
168
- subtitle: 'Enter or paste one or more email addresses, separated by spaces or commas.',
169
- },
170
- },
171
- createOrganization: {
172
- title: 'Create organization',
173
- },
174
- organizationList: {
175
- title: 'Choose an account',
176
- titleWithoutPersonal: 'Choose an organization',
177
- },
59
+ formFieldLabel__organizationName: 'Name',
60
+ formFieldLabel__organizationSlug: 'Slug',
61
+ formFieldInputPlaceholder__emailAddresses: 'example@email.com, example2@email.com',
62
+ formFieldInputPlaceholder__organizationSlug: 'my-org',
63
+ signUp: {
64
+ start: {
65
+ subtitle: 'Welcome! Please fill in the details to get started.',
66
+ actionText: 'Already have an account?',
67
+ },
68
+ emailCode: {
69
+ subtitle: 'Enter the verification code sent to your email',
70
+ },
71
+ phoneCode: {
72
+ subtitle: 'Enter the verification code sent to your phone',
73
+ },
74
+ continue: {
75
+ subtitle: 'Please fill in the remaining details to continue.',
76
+ actionText: 'Already have an account?',
77
+ },
78
+ },
79
+ signIn: {
80
+ start: {
81
+ title: 'Sign in to {{applicationName}}',
82
+ subtitle: 'Welcome back! Please sign in to continue',
83
+ actionText: 'Don’t have an account?',
84
+ },
85
+ password: {
86
+ subtitle: 'Enter the password associated with your account',
87
+ },
88
+ forgotPasswordAlternativeMethods: {
89
+ label__alternativeMethods: 'Or, sign in with another method',
90
+ },
91
+ resetPassword: {
92
+ title: 'Set new password',
93
+ },
94
+ phoneCodeMfa: {
95
+ subtitle: 'To continue, please enter the verification code sent to your phone',
96
+ },
97
+ totpMfa: {
98
+ subtitle: 'To continue, please enter the verification code generated by your authenticator app',
99
+ },
100
+ backupCodeMfa: {
101
+ subtitle: 'Your backup code is the one you got when setting up two-step authentication.',
102
+ },
103
+ },
104
+ userProfile: {
105
+ formButtonPrimary__continue: 'Save',
106
+ start: {
107
+ headerTitle__account: 'Profile details',
108
+ profileSection: {
109
+ primaryButton: 'Edit profile',
110
+ },
111
+ emailAddressesSection: {
112
+ detailsAction__unverified: 'Verify',
113
+ destructiveAction: 'Remove email',
114
+ },
115
+ mfaSection: {
116
+ phoneCode: {
117
+ destructiveActionLabel: 'Remove',
118
+ },
119
+ backupCodes: {
120
+ actionLabel__regenerate: 'Regenerate',
121
+ },
122
+ },
123
+ dangerSection: {
124
+ title: 'Account termination',
125
+ deleteAccountButton: 'Delete account',
126
+ },
127
+ },
128
+ profilePage: {
129
+ imageFormSubtitle: 'Upload',
130
+ imageFormDestructiveActionSubtitle: 'Remove',
131
+ },
132
+ phoneNumberPage: {
133
+ title: 'Add a phone number',
134
+ infoText:
135
+ 'A text message containing a verification link will be sent to this phone number. Message and data rates may apply.',
136
+ },
137
+ connectedAccountPage: {
138
+ socialButtonsBlockButton: '{{provider|titleize}}',
139
+ },
140
+ mfaPhoneCodePage: {
141
+ subtitle__availablePhoneNumbers:
142
+ 'Select an existing phone number to register for SMS code two-step verification or add a new one.',
143
+ subtitle__unavailablePhoneNumbers:
144
+ 'There are no available phone numbers to register for SMS code two-step verification, please add a new one.',
145
+ },
146
+ deletePage: {
147
+ actionDescription: 'Type "Delete account" below to continue.',
148
+ },
149
+ },
150
+ organizationSwitcher: {
151
+ action__createOrganization: 'Create organization',
152
+ action__manageOrganization: 'Manage',
153
+ },
154
+ organizationProfile: {
155
+ profilePage: {
156
+ title: 'Update Profile',
157
+ dangerSection: {
158
+ title: 'Danger',
159
+ leaveOrganization: {
160
+ actionDescription: 'Type "{{organizationName}}" below to continue.',
161
+ },
162
+ deleteOrganization: {
163
+ actionDescription: 'Type "{{organizationName}}" below to continue.',
164
+ },
165
+ },
166
+ },
167
+ invitePage: {
168
+ title: 'Invite new members',
169
+ subtitle: 'Enter or paste one or more email addresses, separated by spaces or commas.',
170
+ },
171
+ },
172
+ createOrganization: {
173
+ title: 'Create organization',
174
+ },
175
+ organizationList: {
176
+ title: 'Choose an account',
177
+ titleWithoutPersonal: 'Choose an organization',
178
+ },
178
179
  };
179
180
  ```
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: '`frontendApi` -> `publishableKey` as prop to `ClerkProvider`'
3
3
  matcher: "<ClerkProvider[\\s\\S]*?frontendApi=[\\s\\S]*?>"
4
+ category: 'deprecation-removal'
4
5
  matcherFlags: 'm'
5
6
  ---
6
7
 
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  title: '`ClerkProviderOptionsWrapper` type removed'
3
+ category: 'deprecation-removal'
3
4
  matcher: 'ClerkProviderOptionsWrapper'
4
5
  ---
5
6
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: 'Within `<UserProfile />`, Connected Accounts Added via Dropdown'
3
3
  matcher: '(?:<UserProfile|<UserButton)'
4
+ category: 'appearance'
4
5
  warning: true
5
6
  image: true
6
7
  ---
@@ -2,6 +2,7 @@
2
2
  title: '`EmailLinkErrorCode` import moved under `/errors`'
3
3
  matcher: "import\\s+{[\\s\\S]*?EmailLinkErrorCode[\\s\\S]*?from\\s+['\"]@clerk\\/(clerk-react)[\\s\\S]*?['\"]"
4
4
  matcherFlags: 'm'
5
+ category: 'error-imports'
5
6
  replaceWithString: 'clerk-react/errors'
6
7
  ---
7
8
 
@@ -0,0 +1,7 @@
1
+ ---
2
+ title: '`ExternalAccount.avatarUrl` -> `.imageUrl`'
3
+ matcher: "\\.avatarUrl"
4
+ category: 'image-url'
5
+ ---
6
+
7
+ The `avatarUrl` property of any [`ExternalAcccount` object](https://clerk.com/docs/references/javascript/external-account) has been changed to `imageUrl`.
@@ -0,0 +1,7 @@
1
+ ---
2
+ title: '`ExternalAccount.picture` -> `.imageUrl`'
3
+ matcher: "\\.picture"
4
+ category: 'image-url'
5
+ ---
6
+
7
+ The `picture` property of any [`ExternalAcccount` object](https://clerk.com/docs/references/javascript/external-account) has been changed to `imageUrl`.
@@ -0,0 +1,7 @@
1
+ ---
2
+ title: '`ExternalAccountJSON.avatar_url` -> `.imageUrl`'
3
+ matcher: "\\.avatar_url"
4
+ category: 'image-url-backend'
5
+ ---
6
+
7
+ The `avatarUrl` property of any `ExternalAcccountJSON` object has been changed to `imageUrl`.
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  title: '`CLERK_FRONTEND_API` replaced by `CLERK_PUBLISHABLE_KEY`'
3
+ category: 'deprecation-removal'
3
4
  matcher: 'CLERK_FRONTEND_API'
4
5
  ---
5
6
 
@@ -0,0 +1,15 @@
1
+ ---
2
+ title: '`Users.getOrganizationInvitationList` return signature changed'
3
+ matcher: "\\.users\\.getOrganizationInvitationList\\("
4
+ category: 'pagination-return'
5
+ warning: true
6
+ ---
7
+
8
+ The response payload of `Users.getOrganizationInvitationList` was changed as part of the v5 release. Rather than directly returning ` data`, the return signature is now `{ data, totalCount }`. Since backend API responses are paginated, the `totalCount` property is helpful in determining the total number of items in the response easily, and this change in the backend SDK aligns the response shape with what the backend API returns directly.
9
+
10
+ Here's an example of how the response shape would change with this modification:
11
+
12
+ ```diff
13
+ - const data = await clerkClient.users.getOrganizationInvitationList()
14
+ + const { data, totalCount } = await clerkClient.users.getOrganizationInvitationList()
15
+ ```
@@ -1,14 +1,17 @@
1
1
  ---
2
- title: '`Organization.getOrganizationInvitationList()` return type changed'
2
+ title: '`Organizations.getOrganizationInvitationList` return type changed'
3
3
  matcher: "\\.getOrganizationInvitationList\\("
4
+ category: 'pagination-return'
5
+ warning: true
4
6
  ---
5
7
 
6
8
  The return type for this function was previously `[Items]` but has now been updated to `{ data: [Items], totalCount: number }`. Since Clerk's API responses are paginated, the `totalCount` property is helpful in determining the total number of items in the response easily. A before/after code example can be seen below:
7
9
 
8
10
  ```diff
9
- const { organization } = useOrganization()
10
- const inviteList = organization.getOrganizationInvitationList()
11
+ const data = await clerkClient.organizations.getOrganizationInvitationList({
12
+ organizationId: "...",
13
+ })
11
14
 
12
- - inviteList.forEach(() => {})
13
- + inviteList.data.forEach(() => {})
15
+ - data.forEach(() => {})
16
+ + data.data.forEach(() => {})
14
17
  ```
@@ -0,0 +1,15 @@
1
+ ---
2
+ title: '`Users.getOrganizationList` return signature changed'
3
+ matcher: "\\.users\\.getOrganizationList\\("
4
+ category: 'pagination-return'
5
+ warning: true
6
+ ---
7
+
8
+ The response payload of `Users.getOrganizationList` was changed as part of the v5 release. Rather than directly returning ` data`, the return signature is now `{ data, totalCount }`. Since backend API responses are paginated, the `totalCount` property is helpful in determining the total number of items in the response easily, and this change in the backend SDK aligns the response shape with what the backend API returns directly.
9
+
10
+ Here's an example of how the response shape would change with this modification:
11
+
12
+ ```diff
13
+ - const data = await clerkClient.users.getOrganizationList()
14
+ + const { data, totalCount } = await clerkClient.users.getOrganizationList()
15
+ ```
@@ -1,6 +1,7 @@
1
1
  ---
2
- title: '`Organization.getOrganizationList()` return type changed'
2
+ title: '`Organization.getOrganizationList` return type changed'
3
3
  matcher: "\\.getOrganizationList\\("
4
+ category: 'pagination-return'
4
5
  ---
5
6
 
6
7
  The return type for this function was previously `[Items]` but has now been updated to `{ data: [Items], totalCount: number }`. Since Clerk's API responses are paginated, the `totalCount` property is helpful in determining the total number of items in the response easily. A before/after code example can be seen below: