fix(clerk-js,types): Introduce experimental.rethrowOfflineNetworkErrors Clerk option to enable rethrowing network errors - #4525
Conversation
🦋 Changeset detectedLatest commit: a77fcda The changes in this PR will be included in the next version bump. This PR includes changesets to release 21 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
!snapshot |
|
Hey @anagstef - the snapshot version command generated the following package versions:
Tip: Use the snippet copy button below to quickly install the required packages. npm i @clerk/astro@1.4.8-snapshot.v6db56a78ff8bd026e58d6be41383e109862d0e9d --save-exact
npm i @clerk/backend@1.16.0-snapshot.v6db56a78ff8bd026e58d6be41383e109862d0e9d --save-exact
npm i @clerk/chrome-extension@1.3.31-snapshot.v6db56a78ff8bd026e58d6be41383e109862d0e9d --save-exact
npm i @clerk/clerk-js@5.32.0-snapshot.v6db56a78ff8bd026e58d6be41383e109862d0e9d --save-exact
npm i @clerk/elements@0.18.6-snapshot.v6db56a78ff8bd026e58d6be41383e109862d0e9d --save-exact
npm i @clerk/clerk-expo@2.3.0-snapshot.v6db56a78ff8bd026e58d6be41383e109862d0e9d --save-exact
npm i @clerk/expo-passkeys@0.0.2-snapshot.v6db56a78ff8bd026e58d6be41383e109862d0e9d --save-exact
npm i @clerk/express@1.3.10-snapshot.v6db56a78ff8bd026e58d6be41383e109862d0e9d --save-exact
npm i @clerk/fastify@2.0.12-snapshot.v6db56a78ff8bd026e58d6be41383e109862d0e9d --save-exact
npm i @clerk/localizations@3.5.1-snapshot.v6db56a78ff8bd026e58d6be41383e109862d0e9d --save-exact
npm i @clerk/nextjs@6.3.0-snapshot.v6db56a78ff8bd026e58d6be41383e109862d0e9d --save-exact
npm i @clerk/clerk-react@5.15.2-snapshot.v6db56a78ff8bd026e58d6be41383e109862d0e9d --save-exact
npm i @clerk/remix@4.2.48-snapshot.v6db56a78ff8bd026e58d6be41383e109862d0e9d --save-exact
npm i @clerk/clerk-sdk-node@5.0.61-snapshot.v6db56a78ff8bd026e58d6be41383e109862d0e9d --save-exact
npm i @clerk/shared@2.12.0-snapshot.v6db56a78ff8bd026e58d6be41383e109862d0e9d --save-exact
npm i @clerk/tanstack-start@0.4.24-snapshot.v6db56a78ff8bd026e58d6be41383e109862d0e9d --save-exact
npm i @clerk/testing@1.3.22-snapshot.v6db56a78ff8bd026e58d6be41383e109862d0e9d --save-exact
npm i @clerk/themes@2.1.42-snapshot.v6db56a78ff8bd026e58d6be41383e109862d0e9d --save-exact
npm i @clerk/types@4.31.0-snapshot.v6db56a78ff8bd026e58d6be41383e109862d0e9d --save-exact
npm i @clerk/ui@0.1.17-snapshot.v6db56a78ff8bd026e58d6be41383e109862d0e9d --save-exact |
…en-on-expo-instead-of-muting-them
…en-on-expo-instead-of-muting-them
…en-on-expo-instead-of-muting-them
|
!snapshot |
|
Hey @anagstef - the snapshot version command generated the following package versions:
Tip: Use the snippet copy button below to quickly install the required packages. npm i @clerk/astro@1.4.10-snapshot.v123daa6313f2072c93583786a79ceb2b02cb68c9 --save-exact
npm i @clerk/backend@1.16.2-snapshot.v123daa6313f2072c93583786a79ceb2b02cb68c9 --save-exact
npm i @clerk/chrome-extension@1.3.33-snapshot.v123daa6313f2072c93583786a79ceb2b02cb68c9 --save-exact
npm i @clerk/clerk-js@5.33.1-snapshot.v123daa6313f2072c93583786a79ceb2b02cb68c9 --save-exact
npm i @clerk/elements@0.19.2-snapshot.v123daa6313f2072c93583786a79ceb2b02cb68c9 --save-exact
npm i @clerk/clerk-expo@2.3.2-snapshot.v123daa6313f2072c93583786a79ceb2b02cb68c9 --save-exact
npm i @clerk/expo-passkeys@0.0.4-snapshot.v123daa6313f2072c93583786a79ceb2b02cb68c9 --save-exact
npm i @clerk/express@1.3.12-snapshot.v123daa6313f2072c93583786a79ceb2b02cb68c9 --save-exact
npm i @clerk/fastify@2.0.14-snapshot.v123daa6313f2072c93583786a79ceb2b02cb68c9 --save-exact
npm i @clerk/localizations@3.6.2-snapshot.v123daa6313f2072c93583786a79ceb2b02cb68c9 --save-exact
npm i @clerk/nextjs@6.3.2-snapshot.v123daa6313f2072c93583786a79ceb2b02cb68c9 --save-exact
npm i @clerk/clerk-react@5.15.4-snapshot.v123daa6313f2072c93583786a79ceb2b02cb68c9 --save-exact
npm i @clerk/remix@4.2.50-snapshot.v123daa6313f2072c93583786a79ceb2b02cb68c9 --save-exact
npm i @clerk/clerk-sdk-node@5.0.63-snapshot.v123daa6313f2072c93583786a79ceb2b02cb68c9 --save-exact
npm i @clerk/shared@2.12.2-snapshot.v123daa6313f2072c93583786a79ceb2b02cb68c9 --save-exact
npm i @clerk/tanstack-start@0.4.26-snapshot.v123daa6313f2072c93583786a79ceb2b02cb68c9 --save-exact
npm i @clerk/testing@1.3.24-snapshot.v123daa6313f2072c93583786a79ceb2b02cb68c9 --save-exact
npm i @clerk/themes@2.1.44-snapshot.v123daa6313f2072c93583786a79ceb2b02cb68c9 --save-exact
npm i @clerk/types@4.32.1-snapshot.v123daa6313f2072c93583786a79ceb2b02cb68c9 --save-exact
npm i @clerk/ui@0.1.19-snapshot.v123daa6313f2072c93583786a79ceb2b02cb68c9 --save-exact
npm i @clerk/vue@0.0.3-snapshot.v123daa6313f2072c93583786a79ceb2b02cb68c9 --save-exact |
experimental.rethrowOfflineNetworkErrors Clerk option to enable rethrowing network errors
|
!snapshot |
|
Hey @anagstef - the snapshot version command generated the following package versions:
Tip: Use the snippet copy button below to quickly install the required packages. npm i @clerk/astro@1.4.10-snapshot.vb069571c43a1227a1da0d7e0baafaab7745d760c --save-exact
npm i @clerk/backend@1.16.2-snapshot.vb069571c43a1227a1da0d7e0baafaab7745d760c --save-exact
npm i @clerk/chrome-extension@1.3.33-snapshot.vb069571c43a1227a1da0d7e0baafaab7745d760c --save-exact
npm i @clerk/clerk-js@5.33.1-snapshot.vb069571c43a1227a1da0d7e0baafaab7745d760c --save-exact
npm i @clerk/elements@0.19.2-snapshot.vb069571c43a1227a1da0d7e0baafaab7745d760c --save-exact
npm i @clerk/clerk-expo@2.3.2-snapshot.vb069571c43a1227a1da0d7e0baafaab7745d760c --save-exact
npm i @clerk/expo-passkeys@0.0.4-snapshot.vb069571c43a1227a1da0d7e0baafaab7745d760c --save-exact
npm i @clerk/express@1.3.12-snapshot.vb069571c43a1227a1da0d7e0baafaab7745d760c --save-exact
npm i @clerk/fastify@2.0.14-snapshot.vb069571c43a1227a1da0d7e0baafaab7745d760c --save-exact
npm i @clerk/localizations@3.6.2-snapshot.vb069571c43a1227a1da0d7e0baafaab7745d760c --save-exact
npm i @clerk/nextjs@6.3.2-snapshot.vb069571c43a1227a1da0d7e0baafaab7745d760c --save-exact
npm i @clerk/clerk-react@5.15.4-snapshot.vb069571c43a1227a1da0d7e0baafaab7745d760c --save-exact
npm i @clerk/remix@4.2.50-snapshot.vb069571c43a1227a1da0d7e0baafaab7745d760c --save-exact
npm i @clerk/clerk-sdk-node@5.0.63-snapshot.vb069571c43a1227a1da0d7e0baafaab7745d760c --save-exact
npm i @clerk/shared@2.12.2-snapshot.vb069571c43a1227a1da0d7e0baafaab7745d760c --save-exact
npm i @clerk/tanstack-start@0.4.26-snapshot.vb069571c43a1227a1da0d7e0baafaab7745d760c --save-exact
npm i @clerk/testing@1.3.24-snapshot.vb069571c43a1227a1da0d7e0baafaab7745d760c --save-exact
npm i @clerk/themes@2.1.44-snapshot.vb069571c43a1227a1da0d7e0baafaab7745d760c --save-exact
npm i @clerk/types@4.32.1-snapshot.vb069571c43a1227a1da0d7e0baafaab7745d760c --save-exact
npm i @clerk/ui@0.1.19-snapshot.vb069571c43a1227a1da0d7e0baafaab7745d760c --save-exact
npm i @clerk/vue@0.0.3-snapshot.vb069571c43a1227a1da0d7e0baafaab7745d760c --save-exact |
| '@clerk/clerk-js': patch | ||
| '@clerk/types': patch |
There was a problem hiding this comment.
I'd do a minor, because we are adding to the public api
…en-on-expo-instead-of-muting-them
…ors` Clerk option to enable rethrowing network errors (#4525)
Description
This is a bug fix that relates to #3563, where we used to silence network errors on Expo.
In this PR, we bubble up the fetch error when the
experimental.rethrowOfflineNetworkErrorsoption istrueon theClerkProvidercomponent.Example usage on ClerkProvider:
Example of handling the error on Expo:
Checklist
npm testruns as expected.npm run buildruns as expected.Type of change