@clerk/upgrade 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (460) hide show
  1. package/dist/constants/sdks.js +4 -5
  2. package/dist/guide-generators/{v5 → core-2}/backend/index.js +1 -1
  3. package/dist/guide-generators/{v5/expo → core-2/backend}/intro.mdx +2 -2
  4. package/dist/guide-generators/{v5/chromeExtension → core-2/chrome-extension}/index.js +3 -3
  5. package/dist/guide-generators/core-2/chrome-extension/intro.mdx +3 -0
  6. package/dist/guide-generators/{v5 → core-2}/expo/index.js +3 -2
  7. package/dist/guide-generators/core-2/expo/intro.mdx +3 -0
  8. package/dist/guide-generators/{v5 → core-2}/fastify/index.js +3 -2
  9. package/dist/guide-generators/{v5 → core-2}/fastify/intro.mdx +1 -1
  10. package/dist/guide-generators/{v5 → core-2}/gatsby/index.js +6 -5
  11. package/dist/guide-generators/core-2/gatsby/intro.mdx +3 -0
  12. package/dist/guide-generators/{v5 → core-2}/generate-all.sh +1 -1
  13. package/dist/guide-generators/{v5 → core-2}/js/index.js +3 -2
  14. package/dist/guide-generators/core-2/js/intro.mdx +3 -0
  15. package/dist/guide-generators/{v5 → core-2}/nextjs/import-changes.mdx +2 -2
  16. package/dist/guide-generators/{v5 → core-2}/nextjs/index.js +4 -3
  17. package/dist/guide-generators/core-2/nextjs/intro.mdx +3 -0
  18. package/dist/guide-generators/{v5-guides → core-2}/nextjs/middleware-changes.mdx +44 -66
  19. package/dist/guide-generators/{v5 → core-2}/node/index.js +3 -2
  20. package/dist/guide-generators/{v5 → core-2}/node/intro.mdx +1 -1
  21. package/dist/guide-generators/{v5 → core-2}/overview/index.js +3 -3
  22. package/dist/guide-generators/core-2/overview/intro.mdx +25 -0
  23. package/dist/guide-generators/{v5 → core-2}/react/index.js +3 -2
  24. package/dist/guide-generators/core-2/react/intro.mdx +3 -0
  25. package/dist/guide-generators/{v5 → core-2}/remix/index.js +3 -2
  26. package/dist/guide-generators/core-2/remix/intro.mdx +3 -0
  27. package/dist/guide-generators/{v5 → core-2}/retheme/index.js +7 -8
  28. package/dist/guide-generators/{v5 → core-2}/shared/cli.mdx +1 -1
  29. package/dist/guide-generators/{v5 → core-2}/shared/prepare.mdx +1 -1
  30. package/dist/{util/v5-guides → guide-generators/core-2/shared}/redesign-preview.mdx +1 -1
  31. package/dist/util/load-change.js +2 -2
  32. package/dist/versions/core-2/common/appearance-variables-breaking-changes.md +15 -0
  33. package/dist/versions/{v5 → core-2}/common/changed-localization-keys.md +17 -17
  34. package/dist/versions/core-2/common/new-localization-keys.md +115 -0
  35. package/dist/versions/{v5 → core-2}/common/removed-localization-keys.md +66 -42
  36. package/dist/versions/{v5 → core-2}/common/useorganization-invitationlist.md +5 -5
  37. package/dist/versions/{v5 → core-2}/common/useorganization-membershiplist.md +5 -5
  38. package/dist/versions/{v5 → core-2}/index.js +5 -5
  39. package/dist/versions/{v5 → core-2}/shared/useorganizationlist-organizationlist.md +2 -2
  40. package/package.json +1 -1
  41. package/dist/guide-generators/v5/backend/__output.mdx +0 -580
  42. package/dist/guide-generators/v5/backend/import-moves.mdx +0 -3
  43. package/dist/guide-generators/v5/backend/intro.mdx +0 -3
  44. package/dist/guide-generators/v5/chrome-extension/index.js +0 -19
  45. package/dist/guide-generators/v5/chrome-extension/intro.mdx +0 -3
  46. package/dist/guide-generators/v5/chromeExtension/__output.mdx +0 -409
  47. package/dist/guide-generators/v5/chromeExtension/intro.mdx +0 -3
  48. package/dist/guide-generators/v5/expo/__output.mdx +0 -455
  49. package/dist/guide-generators/v5/fastify/__output.mdx +0 -373
  50. package/dist/guide-generators/v5/gatsby/__output.mdx +0 -472
  51. package/dist/guide-generators/v5/gatsby/intro.mdx +0 -3
  52. package/dist/guide-generators/v5/generate-all.js +0 -0
  53. package/dist/guide-generators/v5/generate.js +0 -263
  54. package/dist/guide-generators/v5/intro.mdx +0 -15
  55. package/dist/guide-generators/v5/js/__output.mdx +0 -528
  56. package/dist/guide-generators/v5/js/intro.mdx +0 -3
  57. package/dist/guide-generators/v5/js/pagination-args.mdx +0 -3
  58. package/dist/guide-generators/v5/js/pagination-return.mdx +0 -3
  59. package/dist/guide-generators/v5/nextjs/__output.mdx +0 -1091
  60. package/dist/guide-generators/v5/nextjs/after-sign-x-handling.mdx +0 -10
  61. package/dist/guide-generators/v5/nextjs/deprecation-removals.mdx +0 -9
  62. package/dist/guide-generators/v5/nextjs/intro.mdx +0 -3
  63. package/dist/guide-generators/v5/nextjs/middleware-changes.mdx +0 -251
  64. package/dist/guide-generators/v5/nextjs/nextjs-versio.mdx +0 -34
  65. package/dist/guide-generators/v5/nextjs/retheme-changes.mdx +0 -10
  66. package/dist/guide-generators/v5/nextjs/version-requirements.mdx +0 -34
  67. package/dist/guide-generators/v5/node/__output.mdx +0 -511
  68. package/dist/guide-generators/v5/overview/__output.mdx +0 -37
  69. package/dist/guide-generators/v5/overview/intro.mdx +0 -31
  70. package/dist/guide-generators/v5/overview/per-sdk.mdx +0 -16
  71. package/dist/guide-generators/v5/per-sdk.mdx +0 -16
  72. package/dist/guide-generators/v5/prepare.mdx +0 -135
  73. package/dist/guide-generators/v5/react/__output.mdx +0 -679
  74. package/dist/guide-generators/v5/react/intro.mdx +0 -3
  75. package/dist/guide-generators/v5/redesigned-components.mdx +0 -11
  76. package/dist/guide-generators/v5/remix/__output.mdx +0 -401
  77. package/dist/guide-generators/v5/remix/intro.mdx +0 -3
  78. package/dist/guide-generators/v5/retheme/__output.mdx +0 -437
  79. package/dist/guide-generators/v5/shared/hof-removals.mdx +0 -3
  80. package/dist/guide-generators/v5/shared/node-setters-removals.mdx +0 -34
  81. package/dist/guide-generators/v5/shared/redesign-preview.mdx +0 -5
  82. package/dist/guide-generators/v5/shared/update-v5.mdx +0 -17
  83. package/dist/guide-generators/v5/single-page-old.js +0 -192
  84. package/dist/guide-generators/v5-guides/deprecation-removals.mdx +0 -7
  85. package/dist/guide-generators/v5-guides/generate.js +0 -263
  86. package/dist/guide-generators/v5-guides/hof-removals.mdx +0 -3
  87. package/dist/guide-generators/v5-guides/intro.mdx +0 -15
  88. package/dist/guide-generators/v5-guides/nextjs/after-sign-x-handling.mdx +0 -10
  89. package/dist/guide-generators/v5-guides/nextjs/deprecation-removals.mdx +0 -9
  90. package/dist/guide-generators/v5-guides/nextjs/import-changes.mdx +0 -98
  91. package/dist/guide-generators/v5-guides/nextjs/index.js +0 -80
  92. package/dist/guide-generators/v5-guides/nextjs/intro.mdx +0 -21
  93. package/dist/guide-generators/v5-guides/nextjs/retheme-changes.mdx +0 -10
  94. package/dist/guide-generators/v5-guides/nextjs/version-requirements.mdx +0 -34
  95. package/dist/guide-generators/v5-guides/node-setters-removals.mdx +0 -34
  96. package/dist/guide-generators/v5-guides/pagination-args.mdx +0 -3
  97. package/dist/guide-generators/v5-guides/pagination-return.mdx +0 -3
  98. package/dist/guide-generators/v5-guides/path-routing.mdx +0 -50
  99. package/dist/guide-generators/v5-guides/per-sdk.mdx +0 -16
  100. package/dist/guide-generators/v5-guides/prepare.mdx +0 -135
  101. package/dist/guide-generators/v5-guides/redesign-preview.mdx +0 -5
  102. package/dist/guide-generators/v5-guides/redesigned-components.mdx +0 -11
  103. package/dist/guide-generators/v5-guides/remix/index.js +0 -15
  104. package/dist/guide-generators/v5-guides/remix/intro.mdx +0 -1
  105. package/dist/guide-generators/v5-guides/remix/output.mdx +0 -362
  106. package/dist/guide-generators/v5-guides/shared/breaking-changes-intro.mdx +0 -0
  107. package/dist/guide-generators/v5-guides/shared/cli.mdx +0 -21
  108. package/dist/guide-generators/v5-guides/shared/deprecation-removals.mdx +0 -7
  109. package/dist/guide-generators/v5-guides/shared/hof-removals.mdx +0 -3
  110. package/dist/guide-generators/v5-guides/shared/node-setters-removals.mdx +0 -34
  111. package/dist/guide-generators/v5-guides/shared/node-version.mdx +0 -3
  112. package/dist/guide-generators/v5-guides/shared/pagination-args.mdx +0 -3
  113. package/dist/guide-generators/v5-guides/shared/pagination-return.mdx +0 -3
  114. package/dist/guide-generators/v5-guides/shared/path-routing.mdx +0 -50
  115. package/dist/guide-generators/v5-guides/shared/prepare.mdx +0 -7
  116. package/dist/guide-generators/v5-guides/shared/react-version.mdx +0 -19
  117. package/dist/guide-generators/v5-guides/shared/redesign-preview.mdx +0 -5
  118. package/dist/guide-generators/v5-guides/shared/update-v5.mdx +0 -17
  119. package/dist/guide-generators/v5-guides/shared/upgrade-v5.mdx +0 -17
  120. package/dist/util/generate-export-change.js +0 -7
  121. package/dist/util/generate-nextjs-migration-guide.js +0 -0
  122. package/dist/util/generate-nextjs-v5-migration-guide.js +0 -0
  123. package/dist/util/step-sequencer.js +0 -31
  124. package/dist/util/text-generation.js +0 -29
  125. package/dist/util/v5-guide/deprecation-removals.mdx +0 -7
  126. package/dist/util/v5-guide/generate.js +0 -200
  127. package/dist/util/v5-guide/getting-up-to-date.mdx +0 -114
  128. package/dist/util/v5-guide/hof-removals.mdx +0 -3
  129. package/dist/util/v5-guide/intro.mdx +0 -15
  130. package/dist/util/v5-guide/node-setters-removals.mdx +0 -34
  131. package/dist/util/v5-guide/pagination-args.mdx +0 -3
  132. package/dist/util/v5-guide/pagination-return.mdx +0 -3
  133. package/dist/util/v5-guide/path-routing.mdx +0 -50
  134. package/dist/util/v5-guide/per-sdk.mdx +0 -16
  135. package/dist/util/v5-guide/prepare.mdx +0 -135
  136. package/dist/util/v5-guide/redesign-preview.mdx +0 -5
  137. package/dist/util/v5-guide/redesigned-components.mdx +0 -11
  138. package/dist/util/v5-guide/remix.mdx +0 -0
  139. package/dist/util/v5-guides/deprecation-removals.mdx +0 -7
  140. package/dist/util/v5-guides/generate.js +0 -200
  141. package/dist/util/v5-guides/hof-removals.mdx +0 -3
  142. package/dist/util/v5-guides/intro.mdx +0 -15
  143. package/dist/util/v5-guides/nextjs/after-sign-x-handling.mdx +0 -10
  144. package/dist/util/v5-guides/nextjs/deprecation-removals.mdx +0 -9
  145. package/dist/util/v5-guides/nextjs/generate.js +0 -80
  146. package/dist/util/v5-guides/nextjs/import-changes.mdx +0 -98
  147. package/dist/util/v5-guides/nextjs/index.js +0 -0
  148. package/dist/util/v5-guides/nextjs/intro.mdx +0 -21
  149. package/dist/util/v5-guides/nextjs/middleware-changes.mdx +0 -251
  150. package/dist/util/v5-guides/nextjs/retheme-changes.mdx +0 -10
  151. package/dist/util/v5-guides/nextjs/version-requirements.mdx +0 -34
  152. package/dist/util/v5-guides/node-setters-removals.mdx +0 -34
  153. package/dist/util/v5-guides/pagination-args.mdx +0 -3
  154. package/dist/util/v5-guides/pagination-return.mdx +0 -3
  155. package/dist/util/v5-guides/path-routing.mdx +0 -50
  156. package/dist/util/v5-guides/per-sdk.mdx +0 -16
  157. package/dist/util/v5-guides/prepare.mdx +0 -135
  158. package/dist/util/v5-guides/redesigned-components.mdx +0 -11
  159. package/dist/util/v5-guides/remix/index.js +0 -5
  160. package/dist/util/v5-nextjs-guide/after-sign-x-handling.mdx +0 -10
  161. package/dist/util/v5-nextjs-guide/deprecation-removals.mdx +0 -9
  162. package/dist/util/v5-nextjs-guide/generate-nextjs-v5-migration-guide.js +0 -0
  163. package/dist/util/v5-nextjs-guide/generate.js +0 -80
  164. package/dist/util/v5-nextjs-guide/import-changes.mdx +0 -98
  165. package/dist/util/v5-nextjs-guide/intro.md +0 -0
  166. package/dist/util/v5-nextjs-guide/intro.mdx +0 -21
  167. package/dist/util/v5-nextjs-guide/middleware-changes.mdx +0 -251
  168. package/dist/util/v5-nextjs-guide/retheme-changes.mdx +0 -11
  169. package/dist/util/v5-nextjs-guide/version-requirements.mdx +0 -34
  170. package/dist/versions/v5/backend/clerkoptions-type.md +0 -0
  171. package/dist/versions/v5/backend/organization-logourl.md +0 -6
  172. package/dist/versions/v5/backend/organizationmembershippublicuserdata-profileimageurl.md +0 -6
  173. package/dist/versions/v5/backend/user-profileimageurl.md +0 -6
  174. package/dist/versions/v5/common/aftersigninurl-behavior-change-2.md +0 -8
  175. package/dist/versions/v5/common/aftersignouturl-behavior-change.md +0 -8
  176. package/dist/versions/v5/common/aftersignupurl-behavior-change.md +0 -8
  177. package/dist/versions/v5/common/appearance-organizationpreview-organizationswitcher.md +0 -9
  178. package/dist/versions/v5/common/externalaccount-picture.md +0 -7
  179. package/dist/versions/v5/common/externalaccountjson-avatarurl.md +0 -7
  180. package/dist/versions/v5/common/getorganizationinvitationlist-return-signature.md +0 -15
  181. package/dist/versions/v5/common/getorganizationinvitationlist-return-type-change.md +0 -17
  182. package/dist/versions/v5/common/getorganizationlist-return-signature.md +0 -15
  183. package/dist/versions/v5/common/getroles-pagination.md +0 -15
  184. package/dist/versions/v5/common/new-localization-keys.md +0 -134
  185. package/dist/versions/v5/common/user-getorganizationinvitations-arguments-chanaged.md +0 -16
  186. package/dist/versions/v5/common/user-getorganizationmemberships-arguments-chanaged.md +0 -16
  187. package/dist/versions/v5/common/user-getorganizationsuggestions-arguments-chanaged.md +0 -16
  188. package/dist/versions/v5/js/external-account-avatarurl.md +0 -7
  189. package/dist/versions/v5/js/organization-create-string.md +0 -12
  190. package/dist/versions/v5/js/organization-getdomains-arguments-change.md +0 -15
  191. package/dist/versions/v5/js/organization-getinvitations-arguments-changed.md +0 -15
  192. package/dist/versions/v5/js/organization-getmembershiprequests-arguments-changed.md +0 -15
  193. package/dist/versions/v5/js/organization-getmemberships-arguments-changed.md +0 -15
  194. package/dist/versions/v5/js/organization-getpendinginvitations.md +0 -11
  195. package/dist/versions/v5/js/organization-getroles-arguments-changed.md +0 -15
  196. package/dist/versions/v5/js/organization-logourl.md +0 -7
  197. package/dist/versions/v5/js/router-navigate-push-replace.md +0 -18
  198. package/dist/versions/v5/js/user-getorganizationinvitations-arguments-chanaged.md +0 -15
  199. package/dist/versions/v5/js/user-getorganizationmemberships-arguments-chanaged.md +0 -15
  200. package/dist/versions/v5/js/user-getorganizationsuggestions-arguments-chanaged.md +0 -15
  201. package/dist/versions/v5/js/user-update-password.md +0 -18
  202. package/dist/versions/v5/next/ismetamaskerror-import-change.md +0 -14
  203. package/dist/versions/v5/next/redirecttosignin-removed.md +0 -6
  204. package/dist/versions/v5/next/redirecttosignup-removed.md +0 -6
  205. package/dist/versions/v5/next/with-clerk-middleware-removed.md +0 -11
  206. package/dist/versions/v5/nextjs/api-url-value-change.md +0 -8
  207. package/dist/versions/v5/nextjs/auth-import-change.md +0 -14
  208. package/dist/versions/v5/nextjs/auth-middleware-deprecated.md +0 -50
  209. package/dist/versions/v5/nextjs/authmiddleware-apikey.md +0 -15
  210. package/dist/versions/v5/nextjs/authmiddleware-frontendapi.md +0 -15
  211. package/dist/versions/v5/nextjs/authmiddleware-import-change.md +0 -14
  212. package/dist/versions/v5/nextjs/buildclerkprops-import-change.md +0 -14
  213. package/dist/versions/v5/nextjs/clerk-import-change.md +0 -13
  214. package/dist/versions/v5/nextjs/clerk-js-version-next-public.md +0 -9
  215. package/dist/versions/v5/nextjs/constants-import-change.md +0 -14
  216. package/dist/versions/v5/nextjs/createauthenticaterequest-import-change.md +0 -14
  217. package/dist/versions/v5/nextjs/createclerkclient-apikey.md +0 -15
  218. package/dist/versions/v5/nextjs/createclerkclient-frontendapi.md +0 -15
  219. package/dist/versions/v5/nextjs/createisomorphicrequest-import-change.md +0 -14
  220. package/dist/versions/v5/nextjs/currentuser-import-change.md +0 -14
  221. package/dist/versions/v5/nextjs/decodejwt-import-change.md +0 -14
  222. package/dist/versions/v5/nextjs/emaillinkerrorcode-import-change.md +0 -14
  223. package/dist/versions/v5/nextjs/getauth-apikey.md +0 -13
  224. package/dist/versions/v5/nextjs/import-api-url.md +0 -8
  225. package/dist/versions/v5/nextjs/import-api-version.md +0 -8
  226. package/dist/versions/v5/nextjs/import-clerk-js-url.md +0 -8
  227. package/dist/versions/v5/nextjs/import-clerk-js-version.md +0 -8
  228. package/dist/versions/v5/nextjs/import-domain.md +0 -8
  229. package/dist/versions/v5/nextjs/import-is-satellite.md +0 -8
  230. package/dist/versions/v5/nextjs/import-nextjs-api.md +0 -21
  231. package/dist/versions/v5/nextjs/import-nextjs-app-beta.md +0 -11
  232. package/dist/versions/v5/nextjs/import-nextjs-edge-middleware.md +0 -7
  233. package/dist/versions/v5/nextjs/import-nextjs-edge-middlewarefiles.md +0 -7
  234. package/dist/versions/v5/nextjs/import-nextjs-ssr.md +0 -8
  235. package/dist/versions/v5/nextjs/import-proxy-url.md +0 -8
  236. package/dist/versions/v5/nextjs/import-publishable-key.md +0 -8
  237. package/dist/versions/v5/nextjs/import-secret-key.md +0 -8
  238. package/dist/versions/v5/nextjs/import-sign-in-url.md +0 -8
  239. package/dist/versions/v5/nextjs/import-sign-up-url.md +0 -8
  240. package/dist/versions/v5/nextjs/isclerkapiresponserror-import-change.md +0 -14
  241. package/dist/versions/v5/nextjs/isemaillinkerror-import-change.md +0 -14
  242. package/dist/versions/v5/nextjs/isknownerror-import-change.md +0 -14
  243. package/dist/versions/v5/nextjs/min-nextjs-version.md +0 -11
  244. package/dist/versions/v5/nextjs/multisessionappsupport-import-change.md +0 -14
  245. package/dist/versions/v5/nextjs/next-public-clerk-js-url.md +0 -7
  246. package/dist/versions/v5/nextjs/redirect-import-change.md +0 -14
  247. package/dist/versions/v5/nextjs/redirecttosignin-import-path.md +0 -13
  248. package/dist/versions/v5/nextjs/redirecttosignup-import-path.md +0 -13
  249. package/dist/versions/v5/nextjs/signjwt-import-change.md +0 -14
  250. package/dist/versions/v5/nextjs/verifyjwt-import-change.md +0 -14
  251. package/dist/versions/v5/nextjs/verifytoken-import-change.md +0 -14
  252. package/dist/versions/v5/react/router-navigate.md +0 -18
  253. /package/dist/guide-generators/{v5 → core-2}/backend/import-paths.mdx +0 -0
  254. /package/dist/guide-generators/{v5 → core-2}/nextjs/nextjs-version.mdx +0 -0
  255. /package/dist/guide-generators/{v5 → core-2}/node/node-setters-removals.mdx +0 -0
  256. /package/dist/guide-generators/{v5 → core-2}/react/hof-removals.mdx +0 -0
  257. /package/dist/guide-generators/{v5 → core-2}/retheme/intro.mdx +0 -0
  258. /package/dist/guide-generators/{v5 → core-2}/shared/after-sign-x-handling.mdx +0 -0
  259. /package/dist/guide-generators/{v5 → core-2}/shared/deprecation-removals.mdx +0 -0
  260. /package/dist/guide-generators/{v5 → core-2}/shared/image-url.mdx +0 -0
  261. /package/dist/guide-generators/{v5 → core-2}/shared/node-version.mdx +0 -0
  262. /package/dist/guide-generators/{v5 → core-2}/shared/orgs-claim.mdx +0 -0
  263. /package/dist/guide-generators/{v5 → core-2}/shared/pagination-args.mdx +0 -0
  264. /package/dist/guide-generators/{v5 → core-2}/shared/pagination-return.mdx +0 -0
  265. /package/dist/guide-generators/{v5 → core-2}/shared/path-routing.mdx +0 -0
  266. /package/dist/guide-generators/{v5 → core-2}/shared/react-version.mdx +0 -0
  267. /package/dist/guide-generators/{v5 → core-2}/shared/update-version.mdx +0 -0
  268. /package/dist/versions/{v5 → core-2}/backend/api-url-value-changed.md +0 -0
  269. /package/dist/versions/{v5 → core-2}/backend/authenticaterequest-params-change.md +0 -0
  270. /package/dist/versions/{v5 → core-2}/backend/buildrequesturl-removed.md +0 -0
  271. /package/dist/versions/{v5 → core-2}/backend/clerk-import.md +0 -0
  272. /package/dist/versions/{v5 → core-2}/backend/client-unstableoptions-removed.md +0 -0
  273. /package/dist/versions/{v5 → core-2}/backend/clockskewinseconds.md +0 -0
  274. /package/dist/versions/{v5 → core-2}/backend/constants-import-path-move.md +0 -0
  275. /package/dist/versions/{v5 → core-2}/backend/createauthenticaterequest-import-path-move.md +0 -0
  276. /package/dist/versions/{v5 → core-2}/backend/createclerkclient-apikey.md +0 -0
  277. /package/dist/versions/{v5 → core-2}/backend/createclerkclient-frontendapi.md +0 -0
  278. /package/dist/versions/{v5 → core-2}/backend/createemail-removed.md +0 -0
  279. /package/dist/versions/{v5 → core-2}/backend/createisomorphicrequest-import-path-move.md +0 -0
  280. /package/dist/versions/{v5 → core-2}/backend/createisomorphicrequest-removed.md +0 -0
  281. /package/dist/versions/{v5 → core-2}/backend/decodejwt-import-path-move.md +0 -0
  282. /package/dist/versions/{v5 → core-2}/backend/getorganizationmembershiplist-return-signature.md +0 -0
  283. /package/dist/versions/{v5 → core-2}/backend/getpendingorganizationinvitationlist.md +0 -0
  284. /package/dist/versions/{v5 → core-2}/backend/httpoptions-removed.md +0 -0
  285. /package/dist/versions/{v5 → core-2}/backend/membershiprole.md +0 -0
  286. /package/dist/versions/{v5 → core-2}/backend/organizationjson-logourl.md +0 -0
  287. /package/dist/versions/{v5 → core-2}/backend/organizationmembershippublicuserdatajson-profileimageurl.md +0 -0
  288. /package/dist/versions/{v5 → core-2}/backend/pkgversion.md +0 -0
  289. /package/dist/versions/{v5 → core-2}/backend/redirect-import-path-move.md +0 -0
  290. /package/dist/versions/{v5 → core-2}/backend/signjwt-import-path-move.md +0 -0
  291. /package/dist/versions/{v5 → core-2}/backend/signjwterror-import-move.md +0 -0
  292. /package/dist/versions/{v5 → core-2}/backend/tokenverificationerror-import-move.md +0 -0
  293. /package/dist/versions/{v5 → core-2}/backend/tokenverificationerroraction-import-move.md +0 -0
  294. /package/dist/versions/{v5 → core-2}/backend/tokenverificationerrorcode-import-move.md +0 -0
  295. /package/dist/versions/{v5 → core-2}/backend/tokenverificationerrorreason-import-move.md +0 -0
  296. /package/dist/versions/{v5 → core-2}/backend/userjson-profileimageurl.md +0 -0
  297. /package/dist/versions/{v5 → core-2}/backend/verifyjwt-import-path-move.md +0 -0
  298. /package/dist/versions/{v5/chromeExtension → core-2/chrome-extension}/clerkprovider-tokencache.md +0 -0
  299. /package/dist/versions/{v5 → core-2}/common/afterswitchorganizationurl.md +0 -0
  300. /package/dist/versions/{v5 → core-2}/common/alternativemethods-backlink.md +0 -0
  301. /package/dist/versions/{v5 → core-2}/common/api-key-to-secret-key.md +0 -0
  302. /package/dist/versions/{v5/backend → core-2/common}/appearance-organizationpreview-organizationswitcher.md +0 -0
  303. /package/dist/versions/{v5 → core-2}/common/button-to-organizationlistcreateorganizationactionbutton.md +0 -0
  304. /package/dist/versions/{v5 → core-2}/common/card-changes.md +0 -0
  305. /package/dist/versions/{v5 → core-2}/common/clerkprovider-frontendapi-2.md +0 -0
  306. /package/dist/versions/{v5 → core-2}/common/clerkprovideroptionswrapper-dropped.md +0 -0
  307. /package/dist/versions/{v5 → core-2}/common/connected-accounts-dropdown.md +0 -0
  308. /package/dist/versions/{v5 → core-2}/common/emaillinkerrorcode-import-change.md +0 -0
  309. /package/dist/versions/{v5 → core-2}/common/externalaccount-avatarurl.md +0 -0
  310. /package/dist/versions/{v5/backend → core-2/common}/externalaccount-picture.md +0 -0
  311. /package/dist/versions/{v5/backend → core-2/common}/externalaccountjson-avatarurl.md +0 -0
  312. /package/dist/versions/{v5 → core-2}/common/frontend-api-to-publishable-key.md +0 -0
  313. /package/dist/versions/{v5/backend → core-2/common}/getorganizationinvitationlist-return-signature.md +0 -0
  314. /package/dist/versions/{v5/backend → core-2/common}/getorganizationinvitationlist-return-type-change.md +0 -0
  315. /package/dist/versions/{v5/backend → core-2/common}/getorganizationlist-return-signature.md +0 -0
  316. /package/dist/versions/{v5 → core-2}/common/getorganizationlist-return-type-change.md +0 -0
  317. /package/dist/versions/{v5 → core-2}/common/getorganizationmembershiplist-return-type-change.md +0 -0
  318. /package/dist/versions/{v5 → core-2}/common/handlemagiclinkverification.md +0 -0
  319. /package/dist/versions/{v5 → core-2}/common/isclerkapiresponserror-import-change.md +0 -0
  320. /package/dist/versions/{v5 → core-2}/common/isemaillinkerror-import-change.md +0 -0
  321. /package/dist/versions/{v5 → core-2}/common/isknownerror-import-change.md +0 -0
  322. /package/dist/versions/{v5 → core-2}/common/ismagiclinkerror.md +0 -0
  323. /package/dist/versions/{v5 → core-2}/common/ismetamaskerror-import-change.md +0 -0
  324. /package/dist/versions/{v5 → core-2}/common/magiclinkerror.md +0 -0
  325. /package/dist/versions/{v5 → core-2}/common/magiclinkerrorcode.md +0 -0
  326. /package/dist/versions/{v5 → core-2}/common/mfa-dropdown.md +0 -0
  327. /package/dist/versions/{v5 → core-2}/common/min-react-version.md +0 -0
  328. /package/dist/versions/{v5 → core-2}/common/multisessionappsupport-import-change.md +0 -0
  329. /package/dist/versions/{v5 → core-2}/common/navigate-to-routerpush-routerreplace.md +0 -0
  330. /package/dist/versions/{v5 → core-2}/common/organization-create-string.md +0 -0
  331. /package/dist/versions/{v5 → core-2}/common/organization-getdomains-arguments-change.md +0 -0
  332. /package/dist/versions/{v5 → core-2}/common/organization-getinvitations-arguments-changed.md +0 -0
  333. /package/dist/versions/{v5 → core-2}/common/organization-getmembershiprequests-arguments-changed.md +0 -0
  334. /package/dist/versions/{v5 → core-2}/common/organization-getmemberships-arguments-changed.md +0 -0
  335. /package/dist/versions/{v5 → core-2}/common/organization-getpendinginvitations.md +0 -0
  336. /package/dist/versions/{v5 → core-2}/common/organization-getroles-arguments-changed.md +0 -0
  337. /package/dist/versions/{v5 → core-2}/common/organization-logourl.md +0 -0
  338. /package/dist/versions/{v5 → core-2}/common/organizationmembershippublicuserdata-profileimageurl.md +0 -0
  339. /package/dist/versions/{v5 → core-2}/common/organizationprofile-settings.md +0 -0
  340. /package/dist/versions/{v5 → core-2}/common/organizationswitcherpopoveractionbuttontext-removed.md +0 -0
  341. /package/dist/versions/{v5 → core-2}/common/remove-identitypreview-avatar.md +0 -0
  342. /package/dist/versions/{v5 → core-2}/common/remove-socialbuttonsblockbuttonarrow.md +0 -0
  343. /package/dist/versions/{v5 → core-2}/common/setsession.md +0 -0
  344. /package/dist/versions/{v5 → core-2}/common/signoutcallback-to-redirecturl.md +0 -0
  345. /package/dist/versions/{v5 → core-2}/common/usemagiclink.md +0 -0
  346. /package/dist/versions/{v5 → core-2}/common/useorganizations.md +0 -0
  347. /package/dist/versions/{v5 → core-2}/common/user-getorganizationinvitations-arguments-changed.md +0 -0
  348. /package/dist/versions/{v5 → core-2}/common/user-getorganizationmemberships-arguments-changed.md +0 -0
  349. /package/dist/versions/{v5 → core-2}/common/user-getorganizationsuggestions-arguments-changed.md +0 -0
  350. /package/dist/versions/{v5 → core-2}/common/user-profileimageurl.md +0 -0
  351. /package/dist/versions/{v5 → core-2}/common/user-update-password.md +0 -0
  352. /package/dist/versions/{v5 → core-2}/common/userbuttonpopoveractionbuttontext-removed.md +0 -0
  353. /package/dist/versions/{v5 → core-2}/common/userbuttontrigger-userbuttonbox-invert.md +0 -0
  354. /package/dist/versions/{v5 → core-2}/common/userprofile-prop.md +0 -0
  355. /package/dist/versions/{v5 → core-2}/common/userprofile-security.md +0 -0
  356. /package/dist/versions/{v5 → core-2}/common/withclerk-hof-removed.md +0 -0
  357. /package/dist/versions/{v5 → core-2}/common/withclerk-removed.md +0 -0
  358. /package/dist/versions/{v5 → core-2}/common/withsession-hof-removed.md +0 -0
  359. /package/dist/versions/{v5 → core-2}/common/withsession-removed.md +0 -0
  360. /package/dist/versions/{v5 → core-2}/common/withuser-hof-removed.md +0 -0
  361. /package/dist/versions/{v5 → core-2}/common/withuser-removed-2.md +0 -0
  362. /package/dist/versions/{v5 → core-2}/expo/apikey-to-publishable-key.md +0 -0
  363. /package/dist/versions/{v5 → core-2}/expo/clerkprovider-frontendapi.md +0 -0
  364. /package/dist/versions/{v5 → core-2}/fastify/api-url-value-change.md +0 -0
  365. /package/dist/versions/{v5 → core-2}/fastify/clerk-import-change.md +0 -0
  366. /package/dist/versions/{v5 → core-2}/fastify/clerkplugin-frontendapi.md +0 -0
  367. /package/dist/versions/{v5 → core-2}/fastify/createclerkclient-apikey.md +0 -0
  368. /package/dist/versions/{v5 → core-2}/fastify/createclerkclient-frontendapi.md +0 -0
  369. /package/dist/versions/{v5 → core-2}/gatsby/api-url-value-change.md +0 -0
  370. /package/dist/versions/{v5 → core-2}/gatsby/apikey-to-publishable-key.md +0 -0
  371. /package/dist/versions/{v5 → core-2}/gatsby/clerk-import-change.md +0 -0
  372. /package/dist/versions/{v5 → core-2}/gatsby/createclerkclient-apikey.md +0 -0
  373. /package/dist/versions/{v5 → core-2}/gatsby/createclerkclient-frontendapi.md +0 -0
  374. /package/dist/versions/{v5 → core-2}/gatsby/withserverauth-return-type.md +0 -0
  375. /package/dist/versions/{v5 → core-2}/js/clerk-isready-removed.md +0 -0
  376. /package/dist/versions/{v5 → core-2}/js/experimental-canusecaptcha.md +0 -0
  377. /package/dist/versions/{v5 → core-2}/js/experimental-captchasitekey.md +0 -0
  378. /package/dist/versions/{v5 → core-2}/js/experimental-captchaurl.md +0 -0
  379. /package/dist/versions/{v5 → core-2}/js/getorganizationmemberships.md +0 -0
  380. /package/dist/versions/{v5 → core-2}/js/lastorganizationinvitation-member.md +0 -0
  381. /package/dist/versions/{v5 → core-2}/js/redirecttohome.md +0 -0
  382. /package/dist/versions/{v5 → core-2}/js/signup-attemptweb3walletverification-generatedsignature.md +0 -0
  383. /package/dist/versions/{v5 → core-2}/js/unstable-invitationupdate.md +0 -0
  384. /package/dist/versions/{v5 → core-2}/js/unstable-membershipupdate.md +0 -0
  385. /package/dist/versions/{v5 → core-2}/js/user-createexternalaccount-redirecturl.md +0 -0
  386. /package/dist/versions/{v5 → core-2}/js/user-orgpublicdata-profileimageurl.md +0 -0
  387. /package/dist/versions/{v5/next → core-2/nextjs}/api-url-value-change.md +0 -0
  388. /package/dist/versions/{v5/next → core-2/nextjs}/auth-import-change.md +0 -0
  389. /package/dist/versions/{v5/next → core-2/nextjs}/auth-middleware-deprecated.md +0 -0
  390. /package/dist/versions/{v5/next → core-2/nextjs}/authmiddleware-apikey.md +0 -0
  391. /package/dist/versions/{v5/next → core-2/nextjs}/authmiddleware-frontendapi.md +0 -0
  392. /package/dist/versions/{v5/next → core-2/nextjs}/authmiddleware-import-change.md +0 -0
  393. /package/dist/versions/{v5/next → core-2/nextjs}/buildclerkprops-import-change.md +0 -0
  394. /package/dist/versions/{v5/next → core-2/nextjs}/clerk-import-change.md +0 -0
  395. /package/dist/versions/{v5/next → core-2/nextjs}/clerk-js-version-next-public.md +0 -0
  396. /package/dist/versions/{v5/next → core-2/nextjs}/constants-import-change.md +0 -0
  397. /package/dist/versions/{v5/next → core-2/nextjs}/createauthenticaterequest-import-change.md +0 -0
  398. /package/dist/versions/{v5/next → core-2/nextjs}/createclerkclient-apikey.md +0 -0
  399. /package/dist/versions/{v5/next → core-2/nextjs}/createclerkclient-frontendapi.md +0 -0
  400. /package/dist/versions/{v5/next → core-2/nextjs}/createisomorphicrequest-import-change.md +0 -0
  401. /package/dist/versions/{v5/next → core-2/nextjs}/currentuser-import-change.md +0 -0
  402. /package/dist/versions/{v5/next → core-2/nextjs}/decodejwt-import-change.md +0 -0
  403. /package/dist/versions/{v5/next → core-2/nextjs}/emaillinkerrorcode-import-change.md +0 -0
  404. /package/dist/versions/{v5/next → core-2/nextjs}/getauth-apikey.md +0 -0
  405. /package/dist/versions/{v5/next → core-2/nextjs}/import-api-url.md +0 -0
  406. /package/dist/versions/{v5/next → core-2/nextjs}/import-api-version.md +0 -0
  407. /package/dist/versions/{v5/next → core-2/nextjs}/import-clerk-js-url.md +0 -0
  408. /package/dist/versions/{v5/next → core-2/nextjs}/import-clerk-js-version.md +0 -0
  409. /package/dist/versions/{v5/next → core-2/nextjs}/import-domain.md +0 -0
  410. /package/dist/versions/{v5/next → core-2/nextjs}/import-is-satellite.md +0 -0
  411. /package/dist/versions/{v5/next → core-2/nextjs}/import-nextjs-api.md +0 -0
  412. /package/dist/versions/{v5/next → core-2/nextjs}/import-nextjs-app-beta.md +0 -0
  413. /package/dist/versions/{v5/next → core-2/nextjs}/import-nextjs-edge-middleware.md +0 -0
  414. /package/dist/versions/{v5/next → core-2/nextjs}/import-nextjs-edge-middlewarefiles.md +0 -0
  415. /package/dist/versions/{v5/next → core-2/nextjs}/import-nextjs-ssr.md +0 -0
  416. /package/dist/versions/{v5/next → core-2/nextjs}/import-proxy-url.md +0 -0
  417. /package/dist/versions/{v5/next → core-2/nextjs}/import-publishable-key.md +0 -0
  418. /package/dist/versions/{v5/next → core-2/nextjs}/import-secret-key.md +0 -0
  419. /package/dist/versions/{v5/next → core-2/nextjs}/import-sign-in-url.md +0 -0
  420. /package/dist/versions/{v5/next → core-2/nextjs}/import-sign-up-url.md +0 -0
  421. /package/dist/versions/{v5/next → core-2/nextjs}/isclerkapiresponserror-import-change.md +0 -0
  422. /package/dist/versions/{v5/next → core-2/nextjs}/isemaillinkerror-import-change.md +0 -0
  423. /package/dist/versions/{v5/next → core-2/nextjs}/isknownerror-import-change.md +0 -0
  424. /package/dist/versions/{v5/next → core-2/nextjs}/min-nextjs-version.md +0 -0
  425. /package/dist/versions/{v5/next → core-2/nextjs}/multisessionappsupport-import-change.md +0 -0
  426. /package/dist/versions/{v5/next → core-2/nextjs}/next-public-clerk-js-url.md +0 -0
  427. /package/dist/versions/{v5/next → core-2/nextjs}/redirect-import-change.md +0 -0
  428. /package/dist/versions/{v5/next → core-2/nextjs}/redirecttosignin-import-path.md +0 -0
  429. /package/dist/versions/{v5/next → core-2/nextjs}/redirecttosignup-import-path.md +0 -0
  430. /package/dist/versions/{v5/next → core-2/nextjs}/signjwt-import-change.md +0 -0
  431. /package/dist/versions/{v5/next → core-2/nextjs}/verifyjwt-import-change.md +0 -0
  432. /package/dist/versions/{v5/next → core-2/nextjs}/verifytoken-import-change.md +0 -0
  433. /package/dist/versions/{v5 → core-2}/nextjs/with-clerk-middleware-removed.md +0 -0
  434. /package/dist/versions/{v5 → core-2}/node/api-url-value-change.md +0 -0
  435. /package/dist/versions/{v5 → core-2}/node/cjs-esm-instance.md +0 -0
  436. /package/dist/versions/{v5 → core-2}/node/clerk-import-change.md +0 -0
  437. /package/dist/versions/{v5 → core-2}/node/clerkexpressrequireauth-apikey.md +0 -0
  438. /package/dist/versions/{v5 → core-2}/node/clerkexpressrequireauth-frontendapi.md +0 -0
  439. /package/dist/versions/{v5 → core-2}/node/clerkexpresswithauth-apikey.md +0 -0
  440. /package/dist/versions/{v5 → core-2}/node/clerkexpresswithauth-frontendapi.md +0 -0
  441. /package/dist/versions/{v5 → core-2}/node/createclerkclient-apikey.md +0 -0
  442. /package/dist/versions/{v5 → core-2}/node/createclerkclient-frontendapi.md +0 -0
  443. /package/dist/versions/{v5 → core-2}/node/createclerkexpressrequireauth-apikey.md +0 -0
  444. /package/dist/versions/{v5 → core-2}/node/createclerkexpressrequireauth-frontendapi.md +0 -0
  445. /package/dist/versions/{v5 → core-2}/node/createclerkexpresswithauth-apikey.md +0 -0
  446. /package/dist/versions/{v5 → core-2}/node/createclerkexpresswithauth-frontendapi.md +0 -0
  447. /package/dist/versions/{v5 → core-2}/node/legacyauthobject-removed.md +0 -0
  448. /package/dist/versions/{v5 → core-2}/node/setclerkapikey.md +0 -0
  449. /package/dist/versions/{v5 → core-2}/node/setclerkapiversion.md +0 -0
  450. /package/dist/versions/{v5 → core-2}/node/setclerkhttpoptions.md +0 -0
  451. /package/dist/versions/{v5 → core-2}/node/setclerkserverapiurl.md +0 -0
  452. /package/dist/versions/{v5 → core-2}/react/api-url-value-change.md +0 -0
  453. /package/dist/versions/{v5 → core-2}/remix/clerk-import-change.md +0 -0
  454. /package/dist/versions/{v5 → core-2}/remix/clerkerrorboundary-removed.md +0 -0
  455. /package/dist/versions/{v5 → core-2}/remix/createclerkclient-apikey.md +0 -0
  456. /package/dist/versions/{v5 → core-2}/remix/getauth-apikey.md +0 -0
  457. /package/dist/versions/{v5 → core-2}/remix/rootauthloader-apikey.md +0 -0
  458. /package/dist/versions/{v5 → core-2}/remix/rootauthloader-frontendapi.md +0 -0
  459. /package/dist/versions/{v5 → core-2}/shared/getrequesturl.md +0 -0
  460. /package/dist/versions/{v5 → core-2}/shared/organizationcontext.md +0 -0
@@ -4,10 +4,9 @@ export default [{
4
4
  }, {
5
5
  label: '@clerk/remix',
6
6
  value: 'remix'
7
- }, {
8
- label: 'gatsby-plugin-clerk',
9
- value: 'gatsby'
10
- }, {
7
+ },
8
+ // { label: 'gatsby-plugin-clerk', value: 'gatsby' },
9
+ {
11
10
  label: '@clerk/redwood',
12
11
  value: 'redwood'
13
12
  }, {
@@ -42,5 +41,5 @@ export default [{
42
41
  value: 'types'
43
42
  }, {
44
43
  label: '@clerk/chrome-extension',
45
- value: 'chromeExtension'
44
+ value: 'chrome-extension'
46
45
  }];
@@ -1,5 +1,5 @@
1
1
  import { accordionForCategory, assembleContent, deprecationRemovalsAndHousekeeping, frontmatter, loadVersionChangeData, markdown, markdownTemplate, singleItem, writeToFile } from '../../text-generation.js';
2
- const version = 'v5';
2
+ const version = 'core-2';
3
3
  const name = 'backend';
4
4
  const properName = 'Backend';
5
5
  const packageName = '@clerk/backend';
@@ -1,3 +1,3 @@
1
- Clerk's Core 2 release includes a new major version of the Expo SDK, v1. This release ships with an improved design and UX for its built-in components and a variety of smaller DX improvements and housekeeping items. Each of the potentially breaking changes are detailed in this guide, below.
1
+ Core 2 is included in the Backend SDK starting with version 1. This new version ships with a variety of smaller DX improvements and housekeeping items. Each of the potentially breaking changes are detailed in this guide, below.
2
2
 
3
- By the end of this guide, you’ll have successfully upgraded your Expo project to use `@clerk/clerk-expo` v1. You’ll learn how to update your dependencies, resolve breaking changes, and find deprecations. Step-by-step instructions will lead you through the process.
3
+ By the end of this guide, you’ll have successfully upgraded your Backend project to use `@clerk/backend` v1. You’ll learn how to update your dependencies, resolve breaking changes, and find deprecations. Step-by-step instructions will lead you through the process.
@@ -1,9 +1,9 @@
1
1
  import { accordionForCategory, assembleContent, deprecationRemovalsAndHousekeeping, frontmatter, loadVersionChangeData, markdown, markdownTemplate, singleItem, writeToFile } from '../../text-generation.js';
2
- const version = 'v5';
3
- const name = 'chromeExtension';
2
+ const version = 'core-2';
3
+ const name = 'chrome-extension';
4
4
  const properName = 'Chrome Extension';
5
5
  const packageName = '@clerk/chrome-extension';
6
- const cwd = `${version}/chromeExtension`;
6
+ const cwd = `${version}/${name}`;
7
7
  async function generate() {
8
8
  const data = await loadVersionChangeData(version, name);
9
9
  return assembleContent({
@@ -0,0 +1,3 @@
1
+ Core 2 is included in the Chrome Extension SDK starting with version 1. This new version ships with an improved design and UX for its built-in components, no "flash of white page" when authenticating, and a variety of smaller DX improvements and housekeeping items. Each of the potentially breaking changes are detailed in this guide, below.
2
+
3
+ By the end of this guide, you’ll have successfully upgraded your project to use `@clerk/chrome-extension` v1. You’ll learn how to update your dependencies, resolve breaking changes, and find deprecations. Step-by-step instructions will lead you through the process.
@@ -1,5 +1,6 @@
1
1
  import { accordionForCategory, assembleContent, deprecationRemovalsAndHousekeeping, frontmatter, loadVersionChangeData, markdown, markdownTemplate, writeToFile } from '../../text-generation.js';
2
- const version = 'v5';
2
+ const version = 'core-2';
3
+ const semverVersion = 'v1';
3
4
  const name = 'expo';
4
5
  const properName = 'Expo';
5
6
  const packageName = '@clerk/clerk-expo';
@@ -13,7 +14,7 @@ async function generate() {
13
14
  title: `Upgrading ${properName} to Core 2`,
14
15
  description: `Learn how to upgrade Clerk's ${properName} SDK to the latest version.`
15
16
  }), `# Upgrading \`${packageName}\` to Core 2`, markdown('intro'), markdownTemplate('prepare', {
16
- version: 'v1',
17
+ version: semverVersion,
17
18
  packageName
18
19
  }), markdown('node-version'), markdown('react-version'), markdownTemplate('update-version', {
19
20
  packageName
@@ -0,0 +1,3 @@
1
+ Core 2 is included in the Expo SDK starting with version 1. This release ships with an improved design and UX for its built-in components and a variety of smaller DX improvements and housekeeping items. Each of the potentially breaking changes are detailed in this guide, below.
2
+
3
+ By the end of this guide, you’ll have successfully upgraded your Expo project to use `@clerk/clerk-expo` v1. You’ll learn how to update your dependencies, resolve breaking changes, and find deprecations. Step-by-step instructions will lead you through the process.
@@ -1,5 +1,6 @@
1
1
  import { accordionForCategory, assembleContent, deprecationRemovalsAndHousekeeping, frontmatter, loadVersionChangeData, markdown, markdownTemplate, writeToFile } from '../../text-generation.js';
2
- const version = 'v5';
2
+ const version = 'core-2';
3
+ const semverVersion = 'v1';
3
4
  const name = 'fastify';
4
5
  const properName = 'Fastify';
5
6
  const packageName = '@clerk/fastify';
@@ -13,7 +14,7 @@ async function generate() {
13
14
  title: `Upgrading ${properName} to Core 2`,
14
15
  description: `Learn how to upgrade Clerk's ${properName} SDK to the latest version.`
15
16
  }), `# Upgrading \`${packageName}\` to Core 2`, markdown('intro'), markdownTemplate('prepare', {
16
- version: 'v1',
17
+ version: semverVersion,
17
18
  packageName
18
19
  }), markdown('node-version'), markdownTemplate('update-version', {
19
20
  packageName
@@ -1,3 +1,3 @@
1
- Clerk's Core 2 release includes a new major version of the Fastify SDK, v1. This release ships with a variety of smaller DX improvements and housekeeping items. Each of the potentially breaking changes are detailed in this guide, below.
1
+ Core 2 is included in the Fastify SDK starting with version 1. This release ships with a variety of smaller DX improvements and housekeeping items. Each of the potentially breaking changes are detailed in this guide, below.
2
2
 
3
3
  By the end of this guide, you’ll have successfully upgraded your Fastify project to use `@clerk/fastify` v5. You’ll learn how to update your dependencies, resolve breaking changes, and find deprecations. Step-by-step instructions will lead you through the process.
@@ -1,5 +1,6 @@
1
1
  import { accordionForCategory, assembleContent, deprecationRemovalsAndHousekeeping, frontmatter, loadVersionChangeData, markdown, markdownTemplate, writeToFile } from '../../text-generation.js';
2
- const version = 'v5';
2
+ const version = 'core-2';
3
+ const semverVersion = 'v5';
3
4
  const name = 'gatsby';
4
5
  const properName = 'Gatsby';
5
6
  const packageName = 'gatsby-plugin-clerk';
@@ -10,10 +11,10 @@ async function generate() {
10
11
  data,
11
12
  cwd
12
13
  }, [frontmatter({
13
- title: `Upgrading ${properName} from v4 to v5`,
14
- description: `Learn how to upgrade Clerk's ${properName} SDK from v4 to v5.`
15
- }), `# Upgrading \`${packageName}\` from v4 to v5`, markdown('intro'), markdownTemplate('prepare', {
16
- version,
14
+ title: `Upgrading ${properName} to Core 2`,
15
+ description: `Learn how to upgrade Clerk's ${properName} SDK to the latest version`
16
+ }), `# Upgrading \`${packageName}\` to Core 2`, markdown('intro'), markdownTemplate('prepare', {
17
+ version: semverVersion,
17
18
  packageName
18
19
  }), markdown('node-version'), markdown('react-version'), markdownTemplate('update-version', {
19
20
  packageName: 'gatsby-plugin-clerk'
@@ -0,0 +1,3 @@
1
+ Core 2 is included in the Gatsby SDK starting with version 5. This new version ships with an improved design and UX for its built-in components, no "flash of white page" when authenticating, and a variety of smaller DX improvements and housekeeping items. Each of the potentially breaking changes are detailed in this guide, below.
2
+
3
+ By the end of this guide, you’ll have successfully upgraded your Gatsby project to use `gatsby-plugin-clerk` v5. You’ll learn how to update your dependencies, resolve breaking changes, and find deprecations. Step-by-step instructions will lead you through the process.
@@ -4,7 +4,7 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
4
4
 
5
5
  node $SCRIPT_DIR/overview/index.js
6
6
  node $SCRIPT_DIR/backend/index.js
7
- node $SCRIPT_DIR/chromeExtension/index.js
7
+ node $SCRIPT_DIR/chrome-extension/index.js
8
8
  node $SCRIPT_DIR/expo/index.js
9
9
  node $SCRIPT_DIR/fastify/index.js
10
10
  node $SCRIPT_DIR/gatsby/index.js
@@ -1,5 +1,6 @@
1
1
  import { accordionForCategory, assembleContent, deprecationRemovalsAndHousekeeping, frontmatter, loadVersionChangeData, markdown, markdownTemplate, writeToFile } from '../../text-generation.js';
2
- const version = 'v5';
2
+ const version = 'core-2';
3
+ const semverVersion = 'v5';
3
4
  const name = 'js';
4
5
  const properName = 'Javascript';
5
6
  const packageName = '@clerk/clerk-js';
@@ -13,7 +14,7 @@ async function generate() {
13
14
  title: `Upgrading ${properName} to Core 2`,
14
15
  description: `Learn how to upgrade Clerk's ${properName} SDK to the latest version.`
15
16
  }), `# Upgrading \`${packageName}\` to Core 2`, markdown('intro'), markdownTemplate('prepare', {
16
- version,
17
+ version: semverVersion,
17
18
  packageName
18
19
  }), markdownTemplate('update-version', {
19
20
  packageName
@@ -0,0 +1,3 @@
1
+ Core 2 is included in the Javascript SDK starting with version 5. This new version ships with an improved design and UX for its built-in components, no "flash of white page" when authenticating, and a variety of smaller DX improvements and housekeeping items. Each of the potentially breaking changes are detailed in this guide, below.
2
+
3
+ By the end of this guide, you'll have successfully upgraded your JS project to use `@clerk/clerk-js` v5. You'll learn how to update your dependencies, resolve breaking changes, and find deprecations. Step-by-step instructions will lead you through the process.
@@ -1,4 +1,4 @@
1
- ## Changes to top-level exports
1
+ ### Changes to top-level exports
2
2
 
3
3
  As part of this release, some of the top-level exports of `@clerk/nextjs` have been changed in order to improve bundle size and tree-shaking efficiency. These changes have resulted in a ~75% reduction in build size for middleware bundles. However, you will likely need to make some changes to import paths as a result.
4
4
 
@@ -8,7 +8,7 @@ As part of this release, some of the top-level exports of `@clerk/nextjs` have b
8
8
 
9
9
  <Accordion titles={["@clerk/nextjs/server", "@clerk/nextjs/errors", "@clerk/nextjs/app-beta", "@clerk/nextjs/ssr", "@clerk/nextjs/edge-middleware", "@clerk/nextjs/edge-middlewarefiles", "@clerk/nextjs/api"]}>
10
10
  <AccordionPanel>
11
- Previously these exports have been exported both from `@clerk/nextjs` and `@clerk/nextjs/server`. As of v5 they are only exported from the latter.
11
+ Previously these exports have been exported both from `@clerk/nextjs` and `@clerk/nextjs/server`. As of v5 they are only exported from the latter. Going forward, the expectation can be that any imports that are intended to run within react on the client side, will come from `@clerk/nextjs` and imports that are intended to run on the server, will come from `@clerk/nextjs/server`.
12
12
 
13
13
  ```diff
14
14
  import {
@@ -1,9 +1,10 @@
1
1
  import { accordionForCategory, assembleContent, deprecationRemovalsAndHousekeeping, frontmatter, loadVersionChangeData, markdown, markdownTemplate, writeToFile } from '../../text-generation.js';
2
- const version = 'v5';
2
+ const version = 'core-2';
3
+ const semverVersion = 'v5';
3
4
  const name = 'nextjs';
4
5
  const properName = 'Next.js';
5
6
  const packageName = '@clerk/nextjs';
6
- const cwd = 'v5/nextjs';
7
+ const cwd = `${version}/${name}`;
7
8
  async function generate() {
8
9
  const data = await loadVersionChangeData(version, name);
9
10
  return assembleContent({
@@ -13,7 +14,7 @@ async function generate() {
13
14
  title: `Upgrading ${properName} to Core 2`,
14
15
  description: `Learn how to upgrade Clerk's ${properName} SDK to the latest version.`
15
16
  }), `# Upgrading \`${packageName}\` to Core 2`, markdown('intro'), markdownTemplate('prepare', {
16
- version,
17
+ version: semverVersion,
17
18
  packageName
18
19
  }), markdown('node-version'), markdown('react-version'), markdown('nextjs-version'), markdownTemplate('update-version', {
19
20
  packageName
@@ -0,0 +1,3 @@
1
+ Core 2 is included in the Next.js SDK starting with version 5.0.0. This new version ships with an improved design and UX for its built-in components, no "flash of white page" when authenticating, a substantially improved middleware import, and a variety of smaller DX improvements and housekeeping items. Each of the potentially breaking changes are detailed in this guide, below.
2
+
3
+ By the end of this guide, you’ll have successfully upgraded your Next.js project to use `@clerk/nextjs` v5. You’ll learn how to update your dependencies, resolve breaking changes, and find deprecations. Step-by-step instructions will lead you through the process.
@@ -1,74 +1,51 @@
1
- ## New Middleware architecture
1
+ ### New Middleware architecture
2
2
 
3
- User and customer feedback about `authMiddleware()` has been clear in that Middleware logic was a often friction point. As such, in v5 you will find a completely new Middleware helper called [`clerkMiddleware()`](/docs/references/nextjs/clerk-middleware) that will hopefully alleviate all of the issues folks had with `authMiddleware()`.
3
+ User and customer feedback about `authMiddleware()` has been clear in that Middleware logic was a often friction point. As such, in v5 you will find a completely new Middleware helper called [`clerkMiddleware()`](/docs/references/nextjs/clerk-middleware) that should alleviate the issues folks had with `authMiddleware()`.
4
4
 
5
5
  Additionally, there are now new helpers that enable controlling auth on a _per-page and/or per-layout basis_ when using App Router. While you can still configure which routes are protected via Middleware, the page-based protection strategy is what is now recommended, as the co-location of auth protection configuration with the code for the pages themselves results in a superior developer experience that adds clarity as you navigate your codebase.
6
6
 
7
- ### Per-route auth config
7
+ #### Per-route auth config
8
8
 
9
9
  Sometimes, code speaks louder than words. Let's get right into an example:
10
10
 
11
11
  <Tabs type="auth-protect-layout-page" items={["Layout", "Page"]}>
12
- <Tab>
13
- ```ts filename="app/src/dashboard/layout.tsx"
14
- import { auth } from '@clerk/nextjs/server'
12
+ <Tab>
13
+ ```ts filename="app/src/dashboard/layout.tsx"
14
+ import { auth } from '@clerk/nextjs/server'
15
15
 
16
- export default async function DashboardLayout({ children }) {
17
- auth().protect();
18
- // 👆 This one line is all it takes - the layout and all its children
19
- // will now redirect to your sign in page for un-authenticated users.
16
+ export default async function DashboardLayout({ children }) {
17
+ auth().protect();
18
+ // 👆 This one line is all it takes - the layout and all its children
19
+ // will now redirect to your sign in page for un-authenticated users.
20
20
 
21
- return <>{children}</>
22
-
23
- }
21
+ return <>{children}</>
22
+ }
23
+ ```
24
24
 
25
- ````
26
- </Tab>
27
- <Tab>
28
- ```ts filename="app/src/dashboard/page.tsx"
29
- import { auth } from '@clerk/nextjs/server'
25
+ </Tab>
26
+ <Tab>
27
+ ```ts filename="app/src/dashboard/page.tsx"
28
+ import { auth } from '@clerk/nextjs/server'
30
29
 
31
- export default async function DashboardPage() {
32
- auth().protect();
33
- // 👆 This one line is all it takes - the layout and all its children
34
- // will now redirect to your sign in page for un-authenticated users.
30
+ export default async function DashboardPage() {
31
+ auth().protect();
32
+ // 👆 This one line is all it takes - the layout and all its children
33
+ // will now redirect to your sign in page for un-authenticated users.
35
34
 
36
- return <p>This page is now protected!</p>
37
- }
38
- ````
35
+ return <p>This page is now protected!</p>
36
+ }
37
+ ```
39
38
 
40
- </Tab>
39
+ </Tab>
41
40
  </Tabs>
42
41
 
43
- In this example, we add `auth().protect()` to a layout, and like magic, that layout and all of it's children will be gated by auth. The same logic can be applied for pages.
44
-
45
- Want to get more specific with permission gating? Add the role you are gating as a param:
46
-
47
- ```ts filename="app/src/admin/layout.tsx"
48
- import { auth } from '@clerk/nextjs/server';
49
-
50
- export default async function AdminLayout({ children }) {
51
- auth().protect({ role: 'org:admin' });
52
-
53
- return <>{children}</>;
54
- }
55
- ```
56
-
57
- Note that in order for this to work, you will still need Middleware to be present, but it only requires the most minimal configuration:
58
-
59
- ```ts filename="middleware.ts"
60
- import { clerkMiddleware } from '@clerk/nextjs/server';
42
+ In this example, you add [`auth().protect()`](/docs/references/nextjs/auth#protect) to a layout and that layout and all of it's children will be gated by auth. The same logic can be applied for pages.
61
43
 
62
- export default clerkMiddleware();
63
-
64
- export const config = {
65
- matcher: ['/((?!.*\\..*|_next).*)', '/', '/(api|trpc)(.*)'],
66
- };
67
- ```
44
+ For more details on route protection, check out the [route protection guide](/references/nextjs/route-protection).
68
45
 
69
46
  If you are using the pages router, per-route gating won't work. Instead, configure your auth gating via Middleware as described in the next section.
70
47
 
71
- ### Middleware auth config
48
+ #### Middleware auth config
72
49
 
73
50
  If you prefer to define your auth logic within the Middleware, you can still do this using the new `clerkMiddleware`. The primary change from the previous `authMiddleware()` is that `clerkMiddleware()` does not protect any routes by default, instead requiring the developer to add routes they would like to be protected by auth. This is a substantial contrast to the previous `authMiddleware()`, which protected all routes by default, requiring the developer to add exceptions. The API was also substantially simplified, and it has become easier to combine with other Middleware helpers smoothly as well.
74
51
 
@@ -78,7 +55,7 @@ Here's an example that replicates the auth protection scheme above, but entirely
78
55
  import { clerkMiddleware, createRouteMatcher } from '@clerk/nextjs/server';
79
56
 
80
57
  const isDashboardRoute = createRouteMatcher(['/dashboard(.*)']);
81
- const isAdminRoute = createRouteMatcher(['/admin']);
58
+ const isAdminRoute = createRouteMatcher(['/admin(.*)']);
82
59
 
83
60
  export default clerkMiddleware((auth, req) => {
84
61
  // Restrict admin route to users with specific role
@@ -99,18 +76,18 @@ A couple things to note here:
99
76
  - With `clerkMiddleware`, you're defining the routes you want **to be protected**, rather than the routes you don't want to be protected.
100
77
  - You are able to use the same `auth().protect()` helpers that you can use within layouts/pages here in the Middleware.
101
78
 
102
- ### Migrating to `clerkMiddleware()`
79
+ #### Migrating to `clerkMiddleware()`
103
80
 
104
81
  Clerk strongly recommends migrating to the new `clerkMiddleware()` for an improved DX and access to all present and upcoming features, but also want to note that `authMiddleware()`, while deprecated, will continue to work in v5 and will not be removed until the next major version, so you do not _need_ to make any changes to your Middleware setup this version.
105
82
 
106
- The most basic migration will be updating the import and changing out the default export.
83
+ The most basic migration will be updating the import and changing out the default export, then mirroring the previous behavior of protecting all routes as such:
107
84
 
108
85
  ```diff
109
86
  - import { authMiddleware } from "@clerk/nextjs"
110
87
  + import { clerkMiddleware } from '@clerk/nextjs/server'
111
88
 
112
89
  - export default authMiddleware()
113
- + export default clerkMiddleware()
90
+ + export default clerkMiddleware((auth) => auth().protect())
114
91
 
115
92
  export const config = {
116
93
  matcher: ["/((?!.*\\..*|_next).*)", "/", "/(api|trpc)(.*)"],
@@ -119,9 +96,9 @@ The most basic migration will be updating the import and changing out the defaul
119
96
 
120
97
  Of course, in most cases you'll have a more complicated setup than this. You can find some examples below for how to migrate a few common use cases. Be sure to review the [`clerkMiddleware()` documentation](/docs/references/nextjs/clerk-middleware) and [route protection guide](/docs/references/nextjs/route-protection) if your specific use case is not mentioned.
121
98
 
122
- <Accordion titles={["Making the index page public", "Protecting a single route path", "Combining with other Middlewares (like i18n)"]} heading="h4">
99
+ <Accordion titles={["Protecting all routes except one or more public paths", "Protecting a single route path", "Combining with other Middlewares (like i18n)"]} heading="h4">
123
100
  <AccordionPanel>
124
- By default, `clerkMiddleware()` treats all pages as public, so you no longer need to explcitly set `/` as public.
101
+ By default, `clerkMiddleware()` treats all pages as public unless explicitly protected. If you prefer for it to operate the other way around (all pages are protected unless explicitly made public), you can reverse the middleware logic in this way:
125
102
 
126
103
  Before:
127
104
 
@@ -129,7 +106,7 @@ Of course, in most cases you'll have a more complicated setup than this. You can
129
106
  import { authMiddleware } from "@clerk/nextjs"
130
107
 
131
108
  export default authMiddleware({
132
- publicRoutes: ["/"],
109
+ publicRoutes: ["/", "/contact"],
133
110
  })
134
111
 
135
112
  export const config = {
@@ -145,7 +122,12 @@ Of course, in most cases you'll have a more complicated setup than this. You can
145
122
  createRouteMatcher
146
123
  } from "@clerk/nextjs/server"
147
124
 
148
- export default clerkMiddleware()
125
+ const isPublicRoute = createRouteMatcher(["/", "/contact"])
126
+
127
+ export default clerkMiddleware((auth, req) => {
128
+ if (isPublicRoute(req)) return // if it's a public route, do nothing
129
+ auth().protect() // for any other route, require auth
130
+ })
149
131
 
150
132
  export const config = {
151
133
  matcher: ["/((?!.+\\.[\\w]+$|_next).*)", "/", "/(api|trpc)(.*)"],
@@ -154,7 +136,7 @@ Of course, in most cases you'll have a more complicated setup than this. You can
154
136
 
155
137
  </AccordionPanel>
156
138
  <AccordionPanel>
157
- Having all routes public except everything under `/dashboard`.
139
+ An example can be seen below of code that ensures that all routes are public except everything under `/dashboard`.
158
140
 
159
141
  Before:
160
142
 
@@ -181,9 +163,7 @@ Of course, in most cases you'll have a more complicated setup than this. You can
181
163
  const isDashboardRoute = createRouteMatcher(["/dashboard(.*)"])
182
164
 
183
165
  export default clerkMiddleware((auth, request) => {
184
- if (isDashboardRoute(request)) {
185
- auth().protect()
186
- }
166
+ if (isDashboardRoute(request)) auth().protect()
187
167
  })
188
168
 
189
169
  export const config = {
@@ -235,9 +215,7 @@ Of course, in most cases you'll have a more complicated setup than this. You can
235
215
  const isDashboardRoute = createRouteMatcher(["/dashboard(.*)"])
236
216
 
237
217
  export default clerkMiddleware((auth, request) => {
238
- if (isDashboardRoute(request)) {
239
- auth().protect()
240
- }
218
+ if (isDashboardRoute(request)) auth().protect()
241
219
 
242
220
  return intlMiddleware(request)
243
221
  })
@@ -1,5 +1,6 @@
1
1
  import { accordionForCategory, assembleContent, deprecationRemovalsAndHousekeeping, frontmatter, loadVersionChangeData, markdown, markdownTemplate, singleItem, writeToFile } from '../../text-generation.js';
2
- const version = 'v5';
2
+ const version = 'core-2';
3
+ const semverVersion = 'v5';
3
4
  const name = 'node';
4
5
  const properName = 'Node';
5
6
  const packageName = '@clerk/clerk-sdk-node';
@@ -13,7 +14,7 @@ async function generate() {
13
14
  title: `Upgrading ${properName} to Core 2`,
14
15
  description: `Learn how to upgrade Clerk's ${properName} SDK to the lastest version.`
15
16
  }), `# Upgrading \`${packageName}\` to Core 2`, markdown('intro'), markdownTemplate('prepare', {
16
- version,
17
+ version: semverVersion,
17
18
  packageName
18
19
  }), markdown('node-version'), markdownTemplate('update-version', {
19
20
  packageName
@@ -1,3 +1,3 @@
1
- Clerk's Core 2 release includes a new major version of the Node SDK, v5. This new version ships with a variety of smaller DX improvements and housekeeping items. Each of the potentially breaking changes are detailed in this guide, below.
1
+ Core 2 is included in the Node.js SDK starting with version 5. This new version ships with a variety of smaller DX improvements and housekeeping items. Each of the potentially breaking changes are detailed in this guide, below.
2
2
 
3
3
  By the end of this guide, you’ll have successfully upgraded your Node project to use `@clerk/clerk-sdk-node` v5. You’ll learn how to update your dependencies, resolve breaking changes, and find deprecations. Step-by-step instructions will lead you through the process.
@@ -1,12 +1,12 @@
1
1
  import { assembleContent, frontmatter, markdown, writeToFile } from '../../text-generation.js';
2
- const cwd = 'v5/overview';
2
+ const cwd = 'core-2/overview';
3
3
  async function generate() {
4
4
  return assembleContent({
5
5
  data: {},
6
6
  cwd
7
7
  }, [frontmatter({
8
- title: `Upgrading from v4 to v5 core`,
9
- description: `Learn how to upgrade from v4 to v5 core for Clerk's SDKs`
8
+ title: `Upgrading to Clerk Core 2`,
9
+ description: `Learn how to upgrade to the latest version of Clerk's SDKs`
10
10
  }), markdown('intro')]);
11
11
  }
12
12
  generate().then(writeToFile(cwd));
@@ -0,0 +1,25 @@
1
+ # Upgrading to Clerk Core 2
2
+
3
+ In Febrary 2024, [we updated](https://clerk.com/changelog/2024-01-16) Clerk's SDKs to include Core 2. This new core includes:
4
+
5
+ - 💅 Redesigned and improved component UIs.
6
+ - 🔪 The 401 & "flash of white page" that was visible sometimes when syncing auth state was eliminated.
7
+ - 🧹 A large number of smaller housekeeping changes, bugfixes, and improvements.
8
+ - 📊 [Telemetry](/docs/telemetry) to allow us to better determine feature usage and priority (easy opt-out if you don't like this)
9
+
10
+ ## SDK Guides
11
+
12
+ Core 2 brings both UI changes and breaking code changes, so each SDK has been updated to a new major version.
13
+ We expect upgrades to take less than 30 minutes, and are providing a CLI tool to assist with the process. Please select your SDK below to get started:
14
+
15
+ - [Next.js](/nextjs)
16
+ - [Remix](/remix)
17
+ - [Expo](/expo)
18
+ - [Node](/node)
19
+ - [Fastify](/fastify)
20
+ - [React](/react)
21
+ - [Backend](/backend)
22
+ - [JS](/js)
23
+ - [Chrome Extension](/chrome-extension)
24
+
25
+ Note that the `Gastsby`, `Go`, and `Ruby` SDKs do not yet have a beta release ready - if you are using any of these SDKs there is nothing actionable right now.
@@ -1,5 +1,6 @@
1
1
  import { accordionForCategory, assembleContent, deprecationRemovalsAndHousekeeping, frontmatter, loadVersionChangeData, markdown, markdownTemplate, singleItem, writeToFile } from '../../text-generation.js';
2
- const version = 'v5';
2
+ const version = 'core-2';
3
+ const semverVersion = 'v5';
3
4
  const name = 'react';
4
5
  const properName = 'React';
5
6
  const packageName = '@clerk/clerk-react';
@@ -14,7 +15,7 @@ async function generate() {
14
15
  description: `Learn how to upgrade Clerk's ${properName} SDK to the latest version.`
15
16
  }), `# Upgrading \`${packageName}\` to Core 2`, markdown('intro'), markdownTemplate('prepare', {
16
17
  packageName,
17
- version
18
+ version: semverVersion
18
19
  }), markdown('node-version'), markdown('react-version'), markdownTemplate('update-version', {
19
20
  packageName
20
21
  }), markdown('cli'), '## Breaking Changes', markdown('redesign-preview'), markdown('after-sign-x-handling'), singleItem('navigate-to-routerpush-routerreplace'), markdown('orgs-claim'), markdownTemplate('path-routing', {
@@ -0,0 +1,3 @@
1
+ Core 2 is included in the React SDK starting with version 5. This new version ships with an improved design and UX for its built-in components, no "flash of white page" when authenticating, and a variety of smaller DX improvements and housekeeping items. Each of the potentially breaking changes are detailed in this guide, below.
2
+
3
+ By the end of this guide, you’ll have successfully upgraded your React project to use `@clerk/clerk-react` v5. You’ll learn how to update your dependencies, resolve breaking changes, and find deprecations. Step-by-step instructions will lead you through the process.
@@ -1,5 +1,6 @@
1
1
  import { accordionForCategory, assembleContent, deprecationRemovalsAndHousekeeping, frontmatter, loadVersionChangeData, markdown, markdownTemplate, singleItem, writeToFile } from '../../text-generation.js';
2
- const version = 'v5';
2
+ const version = 'core-2';
3
+ const semverVersion = 'v4';
3
4
  const name = 'remix';
4
5
  const properName = 'Remix';
5
6
  const packageName = '@clerk/remix';
@@ -13,7 +14,7 @@ async function generate() {
13
14
  title: `Upgrading ${properName} to Core 2`,
14
15
  description: `Learn how to upgrade from the Clerk ${properName} SDK to the latest version.`
15
16
  }), `# Upgrading \`${packageName}\` to Core 2`, markdown('intro'), markdownTemplate('prepare', {
16
- version: 'v4',
17
+ version: semverVersion,
17
18
  packageName
18
19
  }), markdown('node-version'), markdown('react-version'), markdownTemplate('update-version', {
19
20
  packageName
@@ -0,0 +1,3 @@
1
+ Core 2 is included in the Remix SDK starting with version 4. This new version ships with an improved design and UX for its built-in components, no "flash of white page" when authenticating, no more need to add a custom error boundary, and a variety of smaller DX improvements and housekeeping items. Each of the potentially breaking changes are detailed in this guide, below.
2
+
3
+ By the end of this guide, you’ll have successfully upgraded your Remix project to use `@clerk/remix` v4. You’ll learn how to update your dependencies, resolve breaking changes, and find deprecations. Step-by-step instructions will lead you through the process.
@@ -1,24 +1,23 @@
1
1
  import { accordionForCategory, assembleContent, frontmatter, loadVersionChangeData, markdown, writeToFile } from '../../text-generation.js';
2
- const cwd = 'v5/retheme';
2
+ const cwd = 'core-2/retheme';
3
3
  async function generate() {
4
- const data = await loadVersionChangeData('v5', 'nextjs');
4
+ const data = await loadVersionChangeData('core-2', 'nextjs');
5
5
  const defaultsChangeItem = {
6
6
  title: 'Changes to default variables',
7
7
  content: `\nThe default values of some [appearance variables](/docs/components/customization/variables) have changed which may impact your UI (if you are not already overriding them).
8
8
 
9
9
  - The default \`colorPrimary\` value changed from \`#103FEF\` to \`#2F3037\`. As the new color is a dark grey, the \`colorPrimary\` of the dark theme was changed to \`#FFFFFF\`.
10
10
  - The default \`fontSize\` value changed from \`1rem\` to \`0.8125rem\`
11
- - The default \`fontWeight\` values changed from \`{ normal: 400, medium: 500, bold: 600 }\` to \`{ normal: 400, medium: 500, bold: 700 }\`
12
- - Previously, the default value for \`fontSmoothing\` was \`auto\`. This value is now unset. If you want to pass a custom value to it, you can still do so.\n`
11
+ - The default \`fontWeight\` values changed from \`{ normal: 400, medium: 500, bold: 600 }\` to \`{ normal: 400, medium: 500, semibold: 600, bold: 700 }\`.\n`
13
12
  };
14
13
  return assembleContent({
15
14
  data: data,
16
15
  cwd
17
16
  }, [frontmatter({
18
- title: 'Redesigned Components in v5',
19
- description: 'Learn how to handle changes as a result of redesigned components in Clerk version 5'
20
- }), '# Redesigned Components in v5', markdown('intro'), '## Appearance Changes', accordionForCategory('appearance', {
21
- additionalItems: defaultsChangeItem
17
+ title: 'Redesigned Components in Core 2',
18
+ description: 'Learn how to handle changes as a result of redesigned components in Clerk Core 2'
19
+ }), '# Redesigned Components in Core 2', markdown('intro'), '## Appearance Changes', accordionForCategory('appearance', {
20
+ additionalItems: [defaultsChangeItem]
22
21
  }), '## Localization Changes', accordionForCategory('localization')]);
23
22
  }
24
23
  generate().then(writeToFile(cwd));
@@ -1,6 +1,6 @@
1
1
  ## CLI upgrade helper
2
2
 
3
- As of this release cycle, Clerk provides a `@clerk/upgrade` CLI tool that you can use to ease the upgrade. The tool will scan your codebase and produce a list of changes you'll need to apply to your project. It should catch the vast majority of the changes needed for a successful upgrade to Core 2. This can save you a lot of time reading through changes that don't apply to your project.
3
+ Clerk now provides a `@clerk/upgrade` CLI tool that you can use to ease the upgrade process. The tool will scan your codebase and produce a list of changes you'll need to apply to your project. It should catch the vast majority of the changes needed for a successful upgrade to any SDK including Core 2. This can save you a lot of time reading through changes that don't apply to your project.
4
4
 
5
5
  To run the CLI tool, navigate to your project and run it in the terminal:
6
6
 
@@ -1,6 +1,6 @@
1
1
  ## Preparing to upgrade
2
2
 
3
- Before uprading, it's highly recommended that you update your Clerk SDKs to the latest Core 1 version (`npm i <%= packageName %>@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.
3
+ Before uprading, it's highly recommended that you update your Clerk SDKs to the latest Core 1 version (`npm i <%= packageName %>@<%= parseInt(version.substring(1)) - 1 %>`). Some changes required for Core 2 SDKs can be applied incrementally to the <%= version %> release, which should contribute to a smoother upgrading experience. After updating, look out for deprecation messages in your terminal and browser console. By resolving these deprecations you'll be able to skip many breaking changes from Core 2.
4
4
 
5
5
  <Callout>
6
6
  Note that Core 2 is currently in beta, while we field feedback and ensure stability. Deploying beta versions to
@@ -2,4 +2,4 @@
2
2
 
3
3
  The new version ships with improved design and UX across all of Clerk's [UI components](/docs/components/overview). If you have used the [`appearance` prop](/docs/components/customization/overview) or tokens for a [custom theme](/docs/components/customization/overview#create-a-custom-theme), you will likely need to make some adjustments to ensure your styling is still looking great. If you're using the [localization prop](/docs/components/customization/localization) you will likely need to make adjustments to account for added or removed localization keys.
4
4
 
5
- [More detail on these changes &raquo;](#redesigned-components)
5
+ [More detail on these changes &raquo;](component-redesign)
@@ -11,8 +11,8 @@ export default function createLoader({
11
11
  // Note: This could benefit perf-wise by being converted to async, but it would
12
12
  // make the code a decent amount more complex.
13
13
  return slugs.map(slug => {
14
- const sdkPath = path.join(__dirname, '../versions', `v${version}`, sdk, `${slug}.md`);
15
- const sharedPath = path.join(__dirname, '../versions', `v${version}`, 'common', `${slug}.md`);
14
+ const sdkPath = path.join(__dirname, '../versions', `${version}`, sdk, `${slug}.md`);
15
+ const sharedPath = path.join(__dirname, '../versions', `${version}`, 'common', `${slug}.md`);
16
16
  const loadPath = fs.existsSync(sdkPath) ? sdkPath : sharedPath;
17
17
  const content = fs.readFileSync(loadPath, 'utf8');
18
18
  const parsed = matter(content);
@@ -0,0 +1,15 @@
1
+ ---
2
+ title: 'Breaking Changes to appearance variables'
3
+ matcherFlags: 'm'
4
+ category: 'appearance'
5
+ matcher:
6
+ - "variables:\\s+{[\\s\\S]*?fontSmoothing:"
7
+ - "variables:\\s+{[\\s\\S]*?shadowShimmer:"
8
+ - "variables:\\s+{[\\s\\S]*?colorAlphaShade:"
9
+ ---
10
+
11
+ Several appearance variables have been removed or renamed. If you were using these variables in your application, you will need to update your code to use the new variables.
12
+
13
+ - The `fontSmoothing` variable has been removed.
14
+ - The `shadowShimmer` variable has been removed.
15
+ - The `colorAlphaShade` variable has been renamed to `colorNeutral`.