-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(clerk-js): Handle empty 204 responses from FAPI #5410
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: bcbc2b6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 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/agent-toolkit@0.0.12-snapshot.v20250321105238 --save-exact
npm i @clerk/astro@2.4.1-snapshot.v20250321105238 --save-exact
npm i @clerk/backend@1.25.4-snapshot.v20250321105238 --save-exact
npm i @clerk/chrome-extension@2.2.18-snapshot.v20250321105238 --save-exact
npm i @clerk/clerk-js@5.57.1-snapshot.v20250321105238 --save-exact
npm i @clerk/clerk-expo@2.9.1-snapshot.v20250321105238 --save-exact
npm i @clerk/express@1.3.55-snapshot.v20250321105238 --save-exact
npm i @clerk/fastify@2.1.28-snapshot.v20250321105238 --save-exact
npm i @clerk/nextjs@6.12.7-snapshot.v20250321105238 --save-exact
npm i @clerk/nuxt@1.4.2-snapshot.v20250321105238 --save-exact
npm i @clerk/react-router@1.1.7-snapshot.v20250321105238 --save-exact
npm i @clerk/remix@4.5.7-snapshot.v20250321105238 --save-exact
npm i @clerk/testing@1.4.29-snapshot.v20250321105238 --save-exact |
!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/agent-toolkit@0.0.12-snapshot.v20250321141137 --save-exact
npm i @clerk/astro@2.4.1-snapshot.v20250321141137 --save-exact
npm i @clerk/backend@1.25.4-snapshot.v20250321141137 --save-exact
npm i @clerk/chrome-extension@2.2.18-snapshot.v20250321141137 --save-exact
npm i @clerk/clerk-js@5.57.1-snapshot.v20250321141137 --save-exact
npm i @clerk/elements@0.23.4-snapshot.v20250321141137 --save-exact
npm i @clerk/clerk-expo@2.9.1-snapshot.v20250321141137 --save-exact
npm i @clerk/expo-passkeys@0.1.25-snapshot.v20250321141137 --save-exact
npm i @clerk/express@1.3.55-snapshot.v20250321141137 --save-exact
npm i @clerk/fastify@2.1.28-snapshot.v20250321141137 --save-exact
npm i @clerk/localizations@3.13.1-snapshot.v20250321141137 --save-exact
npm i @clerk/nextjs@6.12.7-snapshot.v20250321141137 --save-exact
npm i @clerk/nuxt@1.4.2-snapshot.v20250321141137 --save-exact
npm i @clerk/clerk-react@5.25.1-snapshot.v20250321141137 --save-exact
npm i @clerk/react-router@1.1.7-snapshot.v20250321141137 --save-exact
npm i @clerk/remix@4.5.7-snapshot.v20250321141137 --save-exact
npm i @clerk/shared@3.1.0-snapshot.v20250321141137 --save-exact
npm i @clerk/testing@1.4.29-snapshot.v20250321141137 --save-exact
npm i @clerk/themes@2.2.23-snapshot.v20250321141137 --save-exact
npm i @clerk/types@4.49.1-snapshot.v20250321141137 --save-exact
npm i @clerk/vue@1.4.1-snapshot.v20250321141137 --save-exact |
Description
We want to handle 204 responses from FAPI with empty body.
The
response.json()
throws when response has no body.The resource
fromJSON
will be called withnull
which skips updating the resource and returns the current state.Checklist
pnpm test
runs as expected.pnpm build
runs as expected.Type of change