Repository navigation
fix(postgrest): return a structured error for non-JSON body on successful responses - #2398
Conversation
…sful responses A 2xx response is not a guarantee of a valid JSON body. A proxy, gateway, or CDN in front of PostgREST can return a non-JSON body (e.g. an HTML error page) with a success status, and a dropped connection can yield a truncated body. Previously `JSON.parse` ran unguarded on the success path, so a raw `SyntaxError` would either reject `.throwOnError()` (breaking its documented `PostgrestError` contract) or be swallowed by the network-error handler and reported as a misleading `status: 0` failure even though the request reached the server. Wrap the success-path parse in a try/catch that mirrors the existing non-2xx branch: surface a structured error, preserve the real HTTP status, and throw a `PostgrestError` when `throwOnError()` is set. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@supabase/auth-js
@supabase/functions-js
@supabase/postgrest-js
@supabase/realtime-js
@supabase/storage-js
@supabase/supabase-js
commit: |
mandarini
left a comment
There was a problem hiding this comment.
Thanks for the careful analysis, the two failure modes you identified
(SyntaxError escaping .throwOnError() and the misleading status: 0 when
the request actually reached the server) are real, and the tests are
well-targeted. A few things I'd like to see before this merges, all in the
direction of less code:
-
Mirror the existing non-2xx fallback exactly. The non-2xx branch
already handles non-JSON bodies aserror = { message: body }— three
lines, no truncation, no hint, no custom message format. The success path
should do the same so the two non-JSON branches produce the same error
shape. Something like:try { data = JSON.parse(body) } catch { error = { message: body } data = null if (this.shouldThrowOnError) { throw new PostgrestError({ message: body, details: '', hint: '', code: '' }) } }
That fixes both bugs (the
SyntaxErrorleak, andstatus: 0— which is
fixed implicitly because we no longer fall into the network-error handler)
without introducing a third error shape alongside the existing PostgREST
structured errors and the non-2xx fallback. -
Drop the 500-byte snippet truncation, the
hintparagraph, and the
"Failed to parse … : <parseError.message>"message format. These are
speculative UX polish, not part of the bug fix:- The hint guesses at the user's infrastructure ("proxy, gateway, or
CDN…") — it could be wrong and is worse than no hint when it is. - The 500-byte cap is arbitrary and needs its own test (the one you
wrote) just to defend that arbitrary choice. - The custom message format becomes a new string consumers may match
against.
If we later want a richer error shape, that's a separate refactor that
should bring both the success and non-2xx fallbacks along together. - The hint guesses at the user's infrastructure ("proxy, gateway, or
-
Drop the long inline comment. The rationale already lives in the PR
description and the commit message — that's where readers go for "why
this exists." A one-line comment is fine if it adds something the code
doesn't already say.
With those changes the tests will simplify too, the truncation test goes
away, and the others stay roughly the same since the structured-error
assertions become error.message === <body> checks.
… fallback Address review feedback on supabase#2398. The success-path JSON.parse guard now mirrors the existing non-2xx fallback exactly (error = { message: body }) instead of introducing a separate structured-error shape. This still fixes both bugs the PR targets — the SyntaxError escaping .throwOnError() and the misleading status: 0 — since the fix is the try/catch itself, not the error shape. Drops the arbitrary 500-byte body truncation, the speculative hint, the custom message format, and the long inline comment (and the test that only existed to defend the truncation). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
as you asked |
|
Thank you! |
This PR updates @supabase/*-js libraries to version 2.107.0. **Source**: manual **Changes**: - Updated @supabase/supabase-js to 2.107.0 - Updated @supabase/auth-js to 2.107.0 - Updated @supabase/realtime-js to 2.107.0 - Updated @supabase/postgest-js to 2.107.0 - Refreshed pnpm-lock.yaml --- ## Release Notes ## v2.107.0 ## 2.107.0 (2026-06-02) ### 🚀 Features - **auth:** remove navigator.locks-based mutex; introduce commit guard + dispose() ([#2392](supabase/supabase-js#2392)) - **realtime:** allow httpSend to send binary payload ([#2400](supabase/supabase-js#2400)) - **supabase:** update X-Client-Info to structured metadata format ([#2359](supabase/supabase-js#2359)) ### 🩹 Fixes - **auth:** return AuthInvalidJwtError from getClaims for expired JWT ([#2395](supabase/supabase-js#2395)) - **auth:** recognize ?error= redirects in implicit grant gate ([#2407](supabase/supabase-js#2407)) - **auth): revert fix(auth:** encode client-id in oauth requests ([#2383](supabase/supabase-js#2383), [#2417](supabase/supabase-js#2417)) - **postgrest:** return a structured error for non-JSON body on successful responses ([#2398](supabase/supabase-js#2398)) - **release:** pin workspace:* sibling deps before JSR publish ([#2418](supabase/supabase-js#2418)) - **release:** publish gotrue-js legacy mirror via pnpm ([#2419](supabase/supabase-js#2419)) ### ❤️ Thank You - Claude Opus 4.7 (1M context) - Claude Sonnet 4.6 - Eduardo Gurgel - Guilherme Souza - Katerina Skroumpelou @mandarini - Omar Al Matar @Bewinxed - youcef zr @youcefzemmar - youcefzemmar This PR was created automatically. Co-authored-by: supabase-workflow-trigger[bot] <266661614+supabase-workflow-trigger[bot]@users.noreply.github.com>
This PR updates @supabase/*-js libraries to version 2.107.0. **Source**: manual **Changes**: - Updated @supabase/supabase-js to 2.107.0 - Updated @supabase/auth-js to 2.107.0 - Updated @supabase/realtime-js to 2.107.0 - Updated @supabase/postgest-js to 2.107.0 - Refreshed pnpm-lock.yaml --- ## Release Notes ## v2.107.0 ## 2.107.0 (2026-06-02) ### 🚀 Features - **auth:** remove navigator.locks-based mutex; introduce commit guard + dispose() ([#2392](supabase/supabase-js#2392)) - **realtime:** allow httpSend to send binary payload ([#2400](supabase/supabase-js#2400)) - **supabase:** update X-Client-Info to structured metadata format ([#2359](supabase/supabase-js#2359)) ### 🩹 Fixes - **auth:** return AuthInvalidJwtError from getClaims for expired JWT ([#2395](supabase/supabase-js#2395)) - **auth:** recognize ?error= redirects in implicit grant gate ([#2407](supabase/supabase-js#2407)) - **auth): revert fix(auth:** encode client-id in oauth requests ([#2383](supabase/supabase-js#2383), [#2417](supabase/supabase-js#2417)) - **postgrest:** return a structured error for non-JSON body on successful responses ([#2398](supabase/supabase-js#2398)) - **release:** pin workspace:* sibling deps before JSR publish ([#2418](supabase/supabase-js#2418)) - **release:** publish gotrue-js legacy mirror via pnpm ([#2419](supabase/supabase-js#2419)) ### ❤️ Thank You - Claude Opus 4.7 (1M context) - Claude Sonnet 4.6 - Eduardo Gurgel - Guilherme Souza - Katerina Skroumpelou @mandarini - Omar Al Matar @Bewinxed - youcef zr @youcefzemmar - youcefzemmar This PR was created automatically. Co-authored-by: supabase-workflow-trigger[bot] <266661614+supabase-workflow-trigger[bot]@users.noreply.github.com>
This PR updates `@supabase/supabase-js` to v2.107.0. **Source**: manual --- ## Release Notes ## v2.107.0 ## 2.107.0 (2026-06-02) ### 🚀 Features - **auth:** remove navigator.locks-based mutex; introduce commit guard + dispose() ([#2392](supabase/supabase-js#2392)) - **realtime:** allow httpSend to send binary payload ([#2400](supabase/supabase-js#2400)) - **supabase:** update X-Client-Info to structured metadata format ([#2359](supabase/supabase-js#2359)) ### 🩹 Fixes - **auth:** return AuthInvalidJwtError from getClaims for expired JWT ([#2395](supabase/supabase-js#2395)) - **auth:** recognize ?error= redirects in implicit grant gate ([#2407](supabase/supabase-js#2407)) - **auth): revert fix(auth:** encode client-id in oauth requests ([#2383](supabase/supabase-js#2383), [#2417](supabase/supabase-js#2417)) - **postgrest:** return a structured error for non-JSON body on successful responses ([#2398](supabase/supabase-js#2398)) - **release:** pin workspace:* sibling deps before JSR publish ([#2418](supabase/supabase-js#2418)) - **release:** publish gotrue-js legacy mirror via pnpm ([#2419](supabase/supabase-js#2419)) ### ❤️ Thank You - Claude Opus 4.7 (1M context) - Claude Sonnet 4.6 - Eduardo Gurgel - Guilherme Souza - Katerina Skroumpelou @mandarini - Omar Al Matar @Bewinxed - youcef zr @youcefzemmar - youcefzemmar ## v2.106.2 ## 2.106.2 (2026-05-25) ### 🩹 Fixes - **auth:** restore signup user response ([#2391](supabase/supabase-js#2391)) - **misc:** add react-native export condition for Hermes-safe resolution ([#2393](supabase/supabase-js#2393)) ### ❤️ Thank You - Myroslav Hryhschenko @BLOCKMATERIAL - Vaibhav @7ttp This PR was created automatically. Co-authored-by: supabase-workflow-trigger[bot] <266661614+supabase-workflow-trigger[bot]@users.noreply.github.com>
 <h3>Snyk has created this PR to upgrade @supabase/supabase-js from 2.98.0 to 2.107.0.</h3> :information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project. <hr/> - The recommended version is **119 versions** ahead of your current version. - The recommended version was released **22 days ago**. <details> <summary><b>Release notes</b></summary> <br/> <details> <summary>Package name: <b>@supabase/supabase-js</b></summary> <ul> <li> <b>2.107.0</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.107.0">2026-06-02</a></br><h2>2.107.0 (2026-06-02)</h2> <h3>🚀 Features</h3> <ul> <li><strong>auth:</strong> remove navigator.locks-based mutex; introduce commit guard + dispose() (<a href="https://redirect.github.com/supabase/supabase-js/pull/2392" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2392/hovercard">#2392</a>)</li> <li><strong>realtime:</strong> allow httpSend to send binary payload (<a href="https://redirect.github.com/supabase/supabase-js/pull/2400" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2400/hovercard">#2400</a>)</li> <li><strong>supabase:</strong> update X-Client-Info to structured metadata format (<a href="https://redirect.github.com/supabase/supabase-js/pull/2359" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2359/hovercard">#2359</a>)</li> </ul> <h3>🩹 Fixes</h3> <ul> <li><strong>auth:</strong> return AuthInvalidJwtError from getClaims for expired JWT (<a href="https://redirect.github.com/supabase/supabase-js/pull/2395" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2395/hovercard">#2395</a>)</li> <li><strong>auth:</strong> recognize ?error= redirects in implicit grant gate (<a href="https://redirect.github.com/supabase/supabase-js/pull/2407" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2407/hovercard">#2407</a>)</li> <li><strong>auth): revert fix(auth:</strong> encode client-id in oauth requests (<a href="https://redirect.github.com/supabase/supabase-js/pull/2383" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2383/hovercard">#2383</a>, <a href="https://redirect.github.com/supabase/supabase-js/pull/2417" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2417/hovercard">#2417</a>)</li> <li><strong>postgrest:</strong> return a structured error for non-JSON body on successful responses (<a href="https://redirect.github.com/supabase/supabase-js/pull/2398" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2398/hovercard">#2398</a>)</li> <li><strong>release:</strong> pin workspace:* sibling deps before JSR publish (<a href="https://redirect.github.com/supabase/supabase-js/pull/2418" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2418/hovercard">#2418</a>)</li> <li><strong>release:</strong> publish gotrue-js legacy mirror via pnpm (<a href="https://redirect.github.com/supabase/supabase-js/pull/2419" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2419/hovercard">#2419</a>)</li> </ul> <h3>❤️ Thank You</h3> <ul> <li>Claude Opus 4.7 (1M context)</li> <li>Claude Sonnet 4.6</li> <li>Eduardo Gurgel</li> <li>Guilherme Souza</li> <li>Katerina Skroumpelou <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mandarini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/mandarini">@ mandarini</a></li> <li>Omar Al Matar <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Bewinxed/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/Bewinxed">@ Bewinxed</a></li> <li>youcef zr <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/youcefzemmar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/youcefzemmar">@ youcefzemmar</a></li> <li>youcefzemmar</li> </ul> </li> <li> <b>2.107.0-canary.6</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.107.0-canary.6">2026-06-02</a></br><h2>2.107.0-canary.6 (2026-06-02)</h2> <p>This was a version bump only, there were no code changes.</p> </li> <li> <b>2.107.0-canary.5</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.107.0-canary.5">2026-06-02</a></br><h2>2.107.0-canary.5 (2026-06-02)</h2> <h3>🩹 Fixes</h3> <ul> <li><strong>release:</strong> publish gotrue-js legacy mirror via pnpm (<a href="https://redirect.github.com/supabase/supabase-js/pull/2419" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2419/hovercard">#2419</a>)</li> </ul> <h3>❤️ Thank You</h3> <ul> <li>Katerina Skroumpelou <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mandarini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/mandarini">@ mandarini</a></li> </ul> </li> <li> <b>2.107.0-canary.4</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.107.0-canary.4">2026-06-02</a></br><h2>2.107.0-canary.4 (2026-06-02)</h2> <h3>🩹 Fixes</h3> <ul> <li><strong>release:</strong> pin workspace:* sibling deps before JSR publish (<a href="https://redirect.github.com/supabase/supabase-js/pull/2418" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2418/hovercard">#2418</a>)</li> </ul> <h3>❤️ Thank You</h3> <ul> <li>Katerina Skroumpelou <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mandarini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/mandarini">@ mandarini</a></li> </ul> </li> <li> <b>2.107.0-canary.3</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.107.0-canary.3">2026-06-02</a></br><h2>2.107.0-canary.3 (2026-06-02)</h2> <p>This was a version bump only, there were no code changes.</p> </li> <li> <b>2.107.0-canary.2</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.107.0-canary.2">2026-06-02</a></br><h2>2.107.0-canary.2 (2026-06-02)</h2> <h3>🩹 Fixes</h3> <ul> <li><strong>auth): revert fix(auth:</strong> encode client-id in oauth requests (<a href="https://redirect.github.com/supabase/supabase-js/pull/2383" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2383/hovercard">#2383</a>, <a href="https://redirect.github.com/supabase/supabase-js/pull/2417" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2417/hovercard">#2417</a>)</li> </ul> <h3>❤️ Thank You</h3> <ul> <li>Katerina Skroumpelou <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mandarini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/mandarini">@ mandarini</a></li> </ul> </li> <li> <b>2.107.0-canary.1</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.107.0-canary.1">2026-06-01</a></br><h2>2.107.0-canary.1 (2026-06-01)</h2> <h3>🚀 Features</h3> <ul> <li><strong>auth:</strong> remove navigator.locks-based mutex; introduce commit guard + dispose() (<a href="https://redirect.github.com/supabase/supabase-js/pull/2392" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2392/hovercard">#2392</a>)</li> </ul> <h3>❤️ Thank You</h3> <ul> <li>Katerina Skroumpelou</li> <li>Omar Al Matar <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Bewinxed/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/Bewinxed">@ Bewinxed</a></li> </ul> </li> <li> <b>2.107.0-canary.0</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.107.0-canary.0">2026-06-01</a></br><h2>2.107.0-canary.0 (2026-06-01)</h2> <h3>🚀 Features</h3> <ul> <li><strong>realtime:</strong> allow httpSend to send binary payload (<a href="https://redirect.github.com/supabase/supabase-js/pull/2400" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2400/hovercard">#2400</a>)</li> <li><strong>supabase:</strong> update X-Client-Info to structured metadata format (<a href="https://redirect.github.com/supabase/supabase-js/pull/2359" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2359/hovercard">#2359</a>)</li> </ul> <h3>🩹 Fixes</h3> <ul> <li><strong>auth:</strong> recognize ?error= redirects in implicit grant gate (<a href="https://redirect.github.com/supabase/supabase-js/pull/2407" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2407/hovercard">#2407</a>)</li> </ul> <h3>❤️ Thank You</h3> <ul> <li>Claude Sonnet 4.6</li> <li>Eduardo Gurgel</li> <li>Guilherme Souza</li> <li>Katerina Skroumpelou <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mandarini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/mandarini">@ mandarini</a></li> </ul> </li> <li> <b>2.107.0-beta.7</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.107.0-beta.7">2026-06-02</a></br><h2>2.107.0-beta.7 (2026-06-02)</h2> <h3>🚀 Features</h3> <ul> <li><strong>auth:</strong> remove navigator.locks-based mutex; introduce commit guard + dispose() (<a href="https://redirect.github.com/supabase/supabase-js/pull/2392" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2392/hovercard">#2392</a>)</li> <li><strong>realtime:</strong> allow httpSend to send binary payload (<a href="https://redirect.github.com/supabase/supabase-js/pull/2400" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2400/hovercard">#2400</a>)</li> <li><strong>supabase:</strong> update X-Client-Info to structured metadata format (<a href="https://redirect.github.com/supabase/supabase-js/pull/2359" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2359/hovercard">#2359</a>)</li> </ul> <h3>🩹 Fixes</h3> <ul> <li><strong>auth:</strong> return AuthInvalidJwtError from getClaims for expired JWT (<a href="https://redirect.github.com/supabase/supabase-js/pull/2395" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2395/hovercard">#2395</a>)</li> <li><strong>auth:</strong> recognize ?error= redirects in implicit grant gate (<a href="https://redirect.github.com/supabase/supabase-js/pull/2407" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2407/hovercard">#2407</a>)</li> <li><strong>auth): revert fix(auth:</strong> encode client-id in oauth requests (<a href="https://redirect.github.com/supabase/supabase-js/pull/2383" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2383/hovercard">#2383</a>, <a href="https://redirect.github.com/supabase/supabase-js/pull/2417" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2417/hovercard">#2417</a>)</li> <li><strong>postgrest:</strong> return a structured error for non-JSON body on successful responses (<a href="https://redirect.github.com/supabase/supabase-js/pull/2398" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2398/hovercard">#2398</a>)</li> <li><strong>release:</strong> pin workspace:* sibling deps before JSR publish (<a href="https://redirect.github.com/supabase/supabase-js/pull/2418" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2418/hovercard">#2418</a>)</li> <li><strong>release:</strong> publish gotrue-js legacy mirror via pnpm (<a href="https://redirect.github.com/supabase/supabase-js/commit/8f5c54db">8f5c54db</a>)</li> </ul> <h3>❤️ Thank You</h3> <ul> <li>Claude Opus 4.7 (1M context)</li> <li>Claude Sonnet 4.6</li> <li>Eduardo Gurgel</li> <li>Guilherme Souza</li> <li>Katerina Skroumpelou <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mandarini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/mandarini">@ mandarini</a></li> <li>Omar Al Matar <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Bewinxed/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/Bewinxed">@ Bewinxed</a></li> <li>youcef zr <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/youcefzemmar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/youcefzemmar">@ youcefzemmar</a></li> <li>youcefzemmar</li> </ul> </li> <li> <b>2.107.0-beta.6</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.107.0-beta.6">2026-06-02</a></br><h2>2.107.0-beta.6 (2026-06-02)</h2> <h3>🚀 Features</h3> <ul> <li><strong>auth:</strong> remove navigator.locks-based mutex; introduce commit guard + dispose() (<a href="https://redirect.github.com/supabase/supabase-js/pull/2392" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2392/hovercard">#2392</a>)</li> <li><strong>realtime:</strong> allow httpSend to send binary payload (<a href="https://redirect.github.com/supabase/supabase-js/pull/2400" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2400/hovercard">#2400</a>)</li> <li><strong>supabase:</strong> update X-Client-Info to structured metadata format (<a href="https://redirect.github.com/supabase/supabase-js/pull/2359" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2359/hovercard">#2359</a>)</li> </ul> <h3>🩹 Fixes</h3> <ul> <li><strong>auth:</strong> return AuthInvalidJwtError from getClaims for expired JWT (<a href="https://redirect.github.com/supabase/supabase-js/pull/2395" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2395/hovercard">#2395</a>)</li> <li><strong>auth:</strong> recognize ?error= redirects in implicit grant gate (<a href="https://redirect.github.com/supabase/supabase-js/pull/2407" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2407/hovercard">#2407</a>)</li> <li><strong>auth): revert fix(auth:</strong> encode client-id in oauth requests (<a href="https://redirect.github.com/supabase/supabase-js/pull/2383" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2383/hovercard">#2383</a>, <a href="https://redirect.github.com/supabase/supabase-js/pull/2417" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2417/hovercard">#2417</a>)</li> <li><strong>postgrest:</strong> return a structured error for non-JSON body on successful responses (<a href="https://redirect.github.com/supabase/supabase-js/pull/2398" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2398/hovercard">#2398</a>)</li> <li><strong>release:</strong> pin workspace:* sibling deps before JSR publish (<a href="https://redirect.github.com/supabase/supabase-js/commit/be5cd5f9">be5cd5f9</a>)</li> </ul> <h3>❤️ Thank You</h3> <ul> <li>Claude Opus 4.7 (1M context)</li> <li>Claude Sonnet 4.6</li> <li>Eduardo Gurgel</li> <li>Guilherme Souza</li> <li>Katerina Skroumpelou <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mandarini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/mandarini">@ mandarini</a></li> <li>Omar Al Matar <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Bewinxed/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/Bewinxed">@ Bewinxed</a></li> <li>youcef zr <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/youcefzemmar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/youcefzemmar">@ youcefzemmar</a></li> <li>youcefzemmar</li> </ul> </li> <li> <b>2.107.0-beta.1</b> - 2026-05-27 </li> <li> <b>2.107.0-beta.0</b> - 2026-05-26 </li> <li> <b>2.106.3-canary.2</b> - 2026-05-28 </li> <li> <b>2.106.3-canary.1</b> - 2026-05-28 </li> <li> <b>2.106.3-canary.0</b> - 2026-05-28 </li> <li> <b>2.106.2</b> - 2026-05-25 </li> <li> <b>2.106.2-canary.1</b> - 2026-05-22 </li> <li> <b>2.106.2-canary.0</b> - 2026-05-22 </li> <li> <b>2.106.2-beta.2</b> - 2026-05-22 </li> <li> <b>2.106.2-beta.0</b> - 2026-05-21 </li> <li> <b>2.106.1</b> - 2026-05-20 </li> <li> <b>2.106.1-canary.1</b> - 2026-05-20 </li> <li> <b>2.106.1-canary.0</b> - 2026-05-20 </li> <li> <b>2.106.1-beta.3</b> - 2026-05-20 </li> <li> <b>2.106.1-beta.2</b> - 2026-05-20 </li> <li> <b>2.106.1-beta.1</b> - 2026-05-19 </li> <li> <b>2.106.1-beta.0</b> - 2026-05-19 </li> <li> <b>2.106.0</b> - 2026-05-18 </li> <li> <b>2.106.0-canary.4</b> - 2026-05-15 </li> <li> <b>2.106.0-canary.3</b> - 2026-05-15 </li> <li> <b>2.106.0-canary.2</b> - 2026-05-14 </li> <li> <b>2.106.0-canary.1</b> - 2026-05-13 </li> <li> <b>2.105.5-beta.10</b> - 2026-05-14 </li> <li> <b>2.105.5-beta.9</b> - 2026-05-13 </li> <li> <b>2.105.5-beta.8</b> - 2026-05-13 </li> <li> <b>2.105.5-beta.5</b> - 2026-05-13 </li> <li> <b>2.105.5-beta.0</b> - 2026-05-11 </li> <li> <b>2.105.4</b> - 2026-05-08 </li> <li> <b>2.105.4-canary.2</b> - 2026-05-08 </li> <li> <b>2.105.4-canary.1</b> - 2026-05-08 </li> <li> <b>2.105.4-canary.0</b> - 2026-05-08 </li> <li> <b>2.105.3</b> - 2026-05-04 </li> <li> <b>2.105.2</b> - 2026-05-04 </li> <li> <b>2.105.2-canary.4</b> - 2026-05-04 </li> <li> <b>2.105.2-canary.3</b> - 2026-05-04 </li> <li> <b>2.105.2-canary.2</b> - 2026-05-04 </li> <li> <b>2.105.2-canary.1</b> - 2026-05-04 </li> <li> <b>2.105.2-canary.0</b> - 2026-04-28 </li> <li> <b>2.105.1</b> - 2026-04-28 </li> <li> <b>2.105.1-canary.2</b> - 2026-04-28 </li> <li> <b>2.105.1-canary.1</b> - 2026-04-28 </li> <li> <b>2.105.1-canary.0</b> - 2026-04-28 </li> <li> <b>2.105.0</b> - 2026-04-27 </li> <li> <b>2.104.2-canary.4</b> - 2026-04-27 </li> <li> <b>2.104.2-canary.3</b> - 2026-04-27 </li> <li> <b>2.104.2-canary.2</b> - 2026-04-27 </li> <li> <b>2.104.2-canary.1</b> - 2026-04-24 </li> <li> <b>2.104.2-canary.0</b> - 2026-04-24 </li> <li> <b>2.104.1</b> - 2026-04-23 </li> <li> <b>2.104.1-canary.3</b> - 2026-04-23 </li> <li> <b>2.104.1-canary.2</b> - 2026-04-23 </li> <li> <b>2.104.1-canary.1</b> - 2026-04-22 </li> <li> <b>2.104.1-canary.0</b> - 2026-04-22 </li> <li> <b>2.104.0</b> - 2026-04-20 </li> <li> <b>2.104.0-canary.2</b> - 2026-04-17 </li> <li> <b>2.104.0-canary.1</b> - 2026-04-17 </li> <li> <b>2.104.0-canary.0</b> - 2026-04-02 </li> <li> <b>2.103.3</b> - 2026-04-16 </li> <li> <b>2.103.3-canary.1</b> - 2026-04-16 </li> <li> <b>2.103.3-canary.0</b> - 2026-04-15 </li> <li> <b>2.103.2</b> - 2026-04-15 </li> <li> <b>2.103.2-canary.3</b> - 2026-04-15 </li> <li> <b>2.103.2-canary.2</b> - 2026-04-15 </li> <li> <b>2.103.2-canary.1</b> - 2026-04-15 </li> <li> <b>2.103.2-canary.0</b> - 2026-04-15 </li> <li> <b>2.103.1</b> - 2026-04-15 </li> <li> <b>2.103.1-canary.0</b> - 2026-04-15 </li> <li> <b>2.103.1-beta.0</b> - 2026-04-09 </li> <li> <b>2.103.0</b> - 2026-04-09 </li> <li> <b>2.103.0-canary.2</b> - 2026-04-09 </li> <li> <b>2.103.0-canary.1</b> - 2026-04-09 </li> <li> <b>2.103.0-canary.0</b> - 2026-04-02 </li> <li> <b>2.102.2-canary.0</b> - 2026-04-08 </li> <li> <b>2.102.1</b> - 2026-04-07 </li> <li> <b>2.102.1-canary.0</b> - 2026-04-07 </li> <li> <b>2.102.0</b> - 2026-04-07 </li> <li> <b>2.102.0-canary.5</b> - 2026-04-07 </li> <li> <b>2.102.0-canary.4</b> - 2026-04-07 </li> <li> <b>2.102.0-canary.3</b> - 2026-04-06 </li> <li> <b>2.102.0-canary.2</b> - 2026-04-03 </li> <li> <b>2.102.0-canary.1</b> - 2026-04-03 </li> <li> <b>2.102.0-canary.0</b> - 2026-04-02 </li> <li> <b>2.102.0-beta.0</b> - 2026-03-31 </li> <li> <b>2.101.1</b> - 2026-03-31 </li> <li> <b>2.101.1-canary.0</b> - 2026-03-31 </li> <li> <b>2.101.0</b> - 2026-03-30 </li> <li> <b>2.101.0-canary.0</b> - 2026-03-30 </li> <li> <b>2.100.1</b> - 2026-03-26 </li> <li> <b>2.100.0</b> - 2026-03-23 </li> <li> <b>2.100.0-rc.0</b> - 2026-03-16 </li> <li> <b>2.100.0-canary.9</b> - 2026-03-30 </li> <li> <b>2.100.0-canary.8</b> - 2026-03-30 </li> <li> <b>2.100.0-canary.7</b> - 2026-03-26 </li> <li> <b>2.100.0-canary.6</b> - 2026-03-26 </li> <li> <b>2.100.0-canary.5</b> - 2026-03-26 </li> <li> <b>2.100.0-canary.4</b> - 2026-03-23 </li> <li> <b>2.100.0-canary.3</b> - 2026-03-20 </li> <li> <b>2.100.0-canary.2</b> - 2026-03-19 </li> <li> <b>2.100.0-canary.1</b> - 2026-03-19 </li> <li> <b>2.100.0-canary.0</b> - 2026-03-17 </li> <li> <b>2.99.3</b> - 2026-03-19 </li> <li> <b>2.99.3-canary.0</b> - 2026-03-16 </li> <li> <b>2.99.2</b> - 2026-03-16 </li> <li> <b>2.99.2-canary.0</b> - 2026-03-13 </li> <li> <b>2.99.1</b> - 2026-03-11 </li> <li> <b>2.99.1-canary.0</b> - 2026-03-11 </li> <li> <b>2.99.0</b> - 2026-03-09 </li> <li> <b>2.98.1-canary.1</b> - 2026-03-05 </li> <li> <b>2.98.1-canary.0</b> - 2026-02-27 </li> <li> <b>2.98.0</b> - 2026-02-26 </li> </ul> from <a href="https://redirect.github.com/supabase/supabase-js/releases">@supabase/supabase-js GitHub release notes</a> </details> </details> --- > [!IMPORTANT] > > - Check the changes in this PR to ensure they won't cause issues with your project. > - This PR was automatically created by Snyk using the credentials of a real user. --- **Note:** _You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs._ **For more information:** <img src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6ImZha2Uta2V5IiwiYW5vbnltb3VzSWQiOiJjMDY0ZmVjNC1jYTNmLTQ3MzQtYjIxMi0wNTM3ZWVhNGRjYTYiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6ImMwNjRmZWM0LWNhM2YtNDczNC1iMjEyLTA1MzdlZWE0ZGNhNiJ9fQ==" width="0" height="0"/> > - 🧐 [View latest project report](https://app.eu.snyk.io/org/antigravity-awesome-skills-default/project/e1f199d3-0a16-4ac7-a9a1-528e774fc41f?utm_source=github&utm_medium=referral&page=upgrade-pr) > - 📜 [Customise PR templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates?utm_source=&utm_content=fix-pr-template) > - 🛠 [Adjust upgrade PR settings](https://app.eu.snyk.io/org/antigravity-awesome-skills-default/project/e1f199d3-0a16-4ac7-a9a1-528e774fc41f/settings/integration?utm_source=github&utm_medium=referral&page=upgrade-pr) > - 🔕 [Ignore this dependency or unsubscribe from future upgrade PRs](https://app.eu.snyk.io/org/antigravity-awesome-skills-default/project/e1f199d3-0a16-4ac7-a9a1-528e774fc41f/settings/integration?pkg=@supabase/supabase-js&utm_source=github&utm_medium=referral&page=upgrade-pr#auto-dep-upgrades) [//]: # 'snyk:metadata:{"breakingChangeRiskLevel":null,"FF_showPullRequestBreakingChanges":false,"FF_showPullRequestBreakingChangesWebSearch":false,"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"@supabase/supabase-js","from":"2.98.0","to":"2.107.0"}],"env":"prod","hasFixes":false,"isBreakingChange":false,"isMajorUpgrade":false,"issuesToFix":[],"prId":"c064fec4-ca3f-4734-b212-0537eea4dca6","prPublicId":"c064fec4-ca3f-4734-b212-0537eea4dca6","packageManager":"npm","priorityScoreList":[],"projectPublicId":"e1f199d3-0a16-4ac7-a9a1-528e774fc41f","projectUrl":"https://app.eu.snyk.io/org/antigravity-awesome-skills-default/project/e1f199d3-0a16-4ac7-a9a1-528e774fc41f?utm_source=github&utm_medium=referral&page=upgrade-pr","prType":"upgrade","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":[],"type":"auto","upgrade":[],"upgradeInfo":{"versionsDiff":119,"publishedDate":"2026-06-02T14:09:20.056Z"},"vulns":[]}'
…onses (#1474) ## What When a PostgREST request succeeds (2xx status) but the response body is not valid JSON (for example, an HTML `502 Bad Gateway` page from a proxy, or a truncated response), the SDK now throws a structured `PostgrestException` carrying the raw body, status code, and reason phrase. ## Why The previous handling caught the `FormatException` and set `body = null`, which behaved badly: - For `.select()` (return type `PostgrestList`), the `null` flowed into `PostgrestList.from(null)` and crashed with an opaque `TypeError`. - For `.maybeSingle()`/`.single()`, it silently returned `null`, making a proxy's HTML error page indistinguishable from "no rows". This is the Dart equivalent of the supabase-js structured-error / `throwOnError` behavior, since the Dart builder always throws on error rather than returning a `{data, error}` shape. ## Not a breaking change CSV and `pgrst.plan+text` bodies are handled before the JSON decode, so the only bodies reaching this branch are genuinely malformed. Today those either crash with an opaque error or return a misleading `null`, so converting them into a clean `PostgrestException` is a bug fix. ## Tests Added a `non-json-succ` mock route returning `200` with an HTML body, covering both `.select()` and `.maybeSingle()` paths. Closes SDK-1029. Parity with supabase/supabase-js#2398.
)  <h3>Snyk has created this PR to upgrade @supabase/supabase-js from 2.98.0 to 2.107.0.</h3> :information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project. <hr/> - The recommended version is **119 versions** ahead of your current version. - The recommended version was released **22 days ago**. <details> <summary><b>Release notes</b></summary> <br/> <details> <summary>Package name: <b>@supabase/supabase-js</b></summary> <ul> <li> <b>2.107.0</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.107.0">2026-06-02</a></br><h2>2.107.0 (2026-06-02)</h2> <h3>🚀 Features</h3> <ul> <li><strong>auth:</strong> remove navigator.locks-based mutex; introduce commit guard + dispose() (<a href="https://redirect.github.com/supabase/supabase-js/pull/2392" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2392/hovercard">sickn33#2392</a>)</li> <li><strong>realtime:</strong> allow httpSend to send binary payload (<a href="https://redirect.github.com/supabase/supabase-js/pull/2400" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2400/hovercard">sickn33#2400</a>)</li> <li><strong>supabase:</strong> update X-Client-Info to structured metadata format (<a href="https://redirect.github.com/supabase/supabase-js/pull/2359" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2359/hovercard">sickn33#2359</a>)</li> </ul> <h3>🩹 Fixes</h3> <ul> <li><strong>auth:</strong> return AuthInvalidJwtError from getClaims for expired JWT (<a href="https://redirect.github.com/supabase/supabase-js/pull/2395" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2395/hovercard">sickn33#2395</a>)</li> <li><strong>auth:</strong> recognize ?error= redirects in implicit grant gate (<a href="https://redirect.github.com/supabase/supabase-js/pull/2407" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2407/hovercard">sickn33#2407</a>)</li> <li><strong>auth): revert fix(auth:</strong> encode client-id in oauth requests (<a href="https://redirect.github.com/supabase/supabase-js/pull/2383" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2383/hovercard">sickn33#2383</a>, <a href="https://redirect.github.com/supabase/supabase-js/pull/2417" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2417/hovercard">sickn33#2417</a>)</li> <li><strong>postgrest:</strong> return a structured error for non-JSON body on successful responses (<a href="https://redirect.github.com/supabase/supabase-js/pull/2398" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2398/hovercard">sickn33#2398</a>)</li> <li><strong>release:</strong> pin workspace:* sibling deps before JSR publish (<a href="https://redirect.github.com/supabase/supabase-js/pull/2418" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2418/hovercard">sickn33#2418</a>)</li> <li><strong>release:</strong> publish gotrue-js legacy mirror via pnpm (<a href="https://redirect.github.com/supabase/supabase-js/pull/2419" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2419/hovercard">sickn33#2419</a>)</li> </ul> <h3>❤️ Thank You</h3> <ul> <li>Claude Opus 4.7 (1M context)</li> <li>Claude Sonnet 4.6</li> <li>Eduardo Gurgel</li> <li>Guilherme Souza</li> <li>Katerina Skroumpelou <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mandarini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/mandarini">@ mandarini</a></li> <li>Omar Al Matar <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Bewinxed/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/Bewinxed">@ Bewinxed</a></li> <li>youcef zr <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/youcefzemmar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/youcefzemmar">@ youcefzemmar</a></li> <li>youcefzemmar</li> </ul> </li> <li> <b>2.107.0-canary.6</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.107.0-canary.6">2026-06-02</a></br><h2>2.107.0-canary.6 (2026-06-02)</h2> <p>This was a version bump only, there were no code changes.</p> </li> <li> <b>2.107.0-canary.5</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.107.0-canary.5">2026-06-02</a></br><h2>2.107.0-canary.5 (2026-06-02)</h2> <h3>🩹 Fixes</h3> <ul> <li><strong>release:</strong> publish gotrue-js legacy mirror via pnpm (<a href="https://redirect.github.com/supabase/supabase-js/pull/2419" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2419/hovercard">sickn33#2419</a>)</li> </ul> <h3>❤️ Thank You</h3> <ul> <li>Katerina Skroumpelou <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mandarini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/mandarini">@ mandarini</a></li> </ul> </li> <li> <b>2.107.0-canary.4</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.107.0-canary.4">2026-06-02</a></br><h2>2.107.0-canary.4 (2026-06-02)</h2> <h3>🩹 Fixes</h3> <ul> <li><strong>release:</strong> pin workspace:* sibling deps before JSR publish (<a href="https://redirect.github.com/supabase/supabase-js/pull/2418" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2418/hovercard">sickn33#2418</a>)</li> </ul> <h3>❤️ Thank You</h3> <ul> <li>Katerina Skroumpelou <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mandarini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/mandarini">@ mandarini</a></li> </ul> </li> <li> <b>2.107.0-canary.3</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.107.0-canary.3">2026-06-02</a></br><h2>2.107.0-canary.3 (2026-06-02)</h2> <p>This was a version bump only, there were no code changes.</p> </li> <li> <b>2.107.0-canary.2</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.107.0-canary.2">2026-06-02</a></br><h2>2.107.0-canary.2 (2026-06-02)</h2> <h3>🩹 Fixes</h3> <ul> <li><strong>auth): revert fix(auth:</strong> encode client-id in oauth requests (<a href="https://redirect.github.com/supabase/supabase-js/pull/2383" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2383/hovercard">sickn33#2383</a>, <a href="https://redirect.github.com/supabase/supabase-js/pull/2417" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2417/hovercard">sickn33#2417</a>)</li> </ul> <h3>❤️ Thank You</h3> <ul> <li>Katerina Skroumpelou <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mandarini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/mandarini">@ mandarini</a></li> </ul> </li> <li> <b>2.107.0-canary.1</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.107.0-canary.1">2026-06-01</a></br><h2>2.107.0-canary.1 (2026-06-01)</h2> <h3>🚀 Features</h3> <ul> <li><strong>auth:</strong> remove navigator.locks-based mutex; introduce commit guard + dispose() (<a href="https://redirect.github.com/supabase/supabase-js/pull/2392" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2392/hovercard">sickn33#2392</a>)</li> </ul> <h3>❤️ Thank You</h3> <ul> <li>Katerina Skroumpelou</li> <li>Omar Al Matar <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Bewinxed/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/Bewinxed">@ Bewinxed</a></li> </ul> </li> <li> <b>2.107.0-canary.0</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.107.0-canary.0">2026-06-01</a></br><h2>2.107.0-canary.0 (2026-06-01)</h2> <h3>🚀 Features</h3> <ul> <li><strong>realtime:</strong> allow httpSend to send binary payload (<a href="https://redirect.github.com/supabase/supabase-js/pull/2400" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2400/hovercard">sickn33#2400</a>)</li> <li><strong>supabase:</strong> update X-Client-Info to structured metadata format (<a href="https://redirect.github.com/supabase/supabase-js/pull/2359" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2359/hovercard">sickn33#2359</a>)</li> </ul> <h3>🩹 Fixes</h3> <ul> <li><strong>auth:</strong> recognize ?error= redirects in implicit grant gate (<a href="https://redirect.github.com/supabase/supabase-js/pull/2407" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2407/hovercard">sickn33#2407</a>)</li> </ul> <h3>❤️ Thank You</h3> <ul> <li>Claude Sonnet 4.6</li> <li>Eduardo Gurgel</li> <li>Guilherme Souza</li> <li>Katerina Skroumpelou <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mandarini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/mandarini">@ mandarini</a></li> </ul> </li> <li> <b>2.107.0-beta.7</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.107.0-beta.7">2026-06-02</a></br><h2>2.107.0-beta.7 (2026-06-02)</h2> <h3>🚀 Features</h3> <ul> <li><strong>auth:</strong> remove navigator.locks-based mutex; introduce commit guard + dispose() (<a href="https://redirect.github.com/supabase/supabase-js/pull/2392" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2392/hovercard">sickn33#2392</a>)</li> <li><strong>realtime:</strong> allow httpSend to send binary payload (<a href="https://redirect.github.com/supabase/supabase-js/pull/2400" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2400/hovercard">sickn33#2400</a>)</li> <li><strong>supabase:</strong> update X-Client-Info to structured metadata format (<a href="https://redirect.github.com/supabase/supabase-js/pull/2359" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2359/hovercard">sickn33#2359</a>)</li> </ul> <h3>🩹 Fixes</h3> <ul> <li><strong>auth:</strong> return AuthInvalidJwtError from getClaims for expired JWT (<a href="https://redirect.github.com/supabase/supabase-js/pull/2395" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2395/hovercard">sickn33#2395</a>)</li> <li><strong>auth:</strong> recognize ?error= redirects in implicit grant gate (<a href="https://redirect.github.com/supabase/supabase-js/pull/2407" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2407/hovercard">sickn33#2407</a>)</li> <li><strong>auth): revert fix(auth:</strong> encode client-id in oauth requests (<a href="https://redirect.github.com/supabase/supabase-js/pull/2383" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2383/hovercard">sickn33#2383</a>, <a href="https://redirect.github.com/supabase/supabase-js/pull/2417" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2417/hovercard">sickn33#2417</a>)</li> <li><strong>postgrest:</strong> return a structured error for non-JSON body on successful responses (<a href="https://redirect.github.com/supabase/supabase-js/pull/2398" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2398/hovercard">sickn33#2398</a>)</li> <li><strong>release:</strong> pin workspace:* sibling deps before JSR publish (<a href="https://redirect.github.com/supabase/supabase-js/pull/2418" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2418/hovercard">sickn33#2418</a>)</li> <li><strong>release:</strong> publish gotrue-js legacy mirror via pnpm (<a href="https://redirect.github.com/supabase/supabase-js/commit/8f5c54db">8f5c54db</a>)</li> </ul> <h3>❤️ Thank You</h3> <ul> <li>Claude Opus 4.7 (1M context)</li> <li>Claude Sonnet 4.6</li> <li>Eduardo Gurgel</li> <li>Guilherme Souza</li> <li>Katerina Skroumpelou <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mandarini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/mandarini">@ mandarini</a></li> <li>Omar Al Matar <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Bewinxed/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/Bewinxed">@ Bewinxed</a></li> <li>youcef zr <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/youcefzemmar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/youcefzemmar">@ youcefzemmar</a></li> <li>youcefzemmar</li> </ul> </li> <li> <b>2.107.0-beta.6</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.107.0-beta.6">2026-06-02</a></br><h2>2.107.0-beta.6 (2026-06-02)</h2> <h3>🚀 Features</h3> <ul> <li><strong>auth:</strong> remove navigator.locks-based mutex; introduce commit guard + dispose() (<a href="https://redirect.github.com/supabase/supabase-js/pull/2392" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2392/hovercard">sickn33#2392</a>)</li> <li><strong>realtime:</strong> allow httpSend to send binary payload (<a href="https://redirect.github.com/supabase/supabase-js/pull/2400" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2400/hovercard">sickn33#2400</a>)</li> <li><strong>supabase:</strong> update X-Client-Info to structured metadata format (<a href="https://redirect.github.com/supabase/supabase-js/pull/2359" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2359/hovercard">sickn33#2359</a>)</li> </ul> <h3>🩹 Fixes</h3> <ul> <li><strong>auth:</strong> return AuthInvalidJwtError from getClaims for expired JWT (<a href="https://redirect.github.com/supabase/supabase-js/pull/2395" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2395/hovercard">sickn33#2395</a>)</li> <li><strong>auth:</strong> recognize ?error= redirects in implicit grant gate (<a href="https://redirect.github.com/supabase/supabase-js/pull/2407" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2407/hovercard">sickn33#2407</a>)</li> <li><strong>auth): revert fix(auth:</strong> encode client-id in oauth requests (<a href="https://redirect.github.com/supabase/supabase-js/pull/2383" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2383/hovercard">sickn33#2383</a>, <a href="https://redirect.github.com/supabase/supabase-js/pull/2417" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2417/hovercard">sickn33#2417</a>)</li> <li><strong>postgrest:</strong> return a structured error for non-JSON body on successful responses (<a href="https://redirect.github.com/supabase/supabase-js/pull/2398" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2398/hovercard">sickn33#2398</a>)</li> <li><strong>release:</strong> pin workspace:* sibling deps before JSR publish (<a href="https://redirect.github.com/supabase/supabase-js/commit/be5cd5f9">be5cd5f9</a>)</li> </ul> <h3>❤️ Thank You</h3> <ul> <li>Claude Opus 4.7 (1M context)</li> <li>Claude Sonnet 4.6</li> <li>Eduardo Gurgel</li> <li>Guilherme Souza</li> <li>Katerina Skroumpelou <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mandarini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/mandarini">@ mandarini</a></li> <li>Omar Al Matar <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Bewinxed/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/Bewinxed">@ Bewinxed</a></li> <li>youcef zr <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/youcefzemmar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/youcefzemmar">@ youcefzemmar</a></li> <li>youcefzemmar</li> </ul> </li> <li> <b>2.107.0-beta.1</b> - 2026-05-27 </li> <li> <b>2.107.0-beta.0</b> - 2026-05-26 </li> <li> <b>2.106.3-canary.2</b> - 2026-05-28 </li> <li> <b>2.106.3-canary.1</b> - 2026-05-28 </li> <li> <b>2.106.3-canary.0</b> - 2026-05-28 </li> <li> <b>2.106.2</b> - 2026-05-25 </li> <li> <b>2.106.2-canary.1</b> - 2026-05-22 </li> <li> <b>2.106.2-canary.0</b> - 2026-05-22 </li> <li> <b>2.106.2-beta.2</b> - 2026-05-22 </li> <li> <b>2.106.2-beta.0</b> - 2026-05-21 </li> <li> <b>2.106.1</b> - 2026-05-20 </li> <li> <b>2.106.1-canary.1</b> - 2026-05-20 </li> <li> <b>2.106.1-canary.0</b> - 2026-05-20 </li> <li> <b>2.106.1-beta.3</b> - 2026-05-20 </li> <li> <b>2.106.1-beta.2</b> - 2026-05-20 </li> <li> <b>2.106.1-beta.1</b> - 2026-05-19 </li> <li> <b>2.106.1-beta.0</b> - 2026-05-19 </li> <li> <b>2.106.0</b> - 2026-05-18 </li> <li> <b>2.106.0-canary.4</b> - 2026-05-15 </li> <li> <b>2.106.0-canary.3</b> - 2026-05-15 </li> <li> <b>2.106.0-canary.2</b> - 2026-05-14 </li> <li> <b>2.106.0-canary.1</b> - 2026-05-13 </li> <li> <b>2.105.5-beta.10</b> - 2026-05-14 </li> <li> <b>2.105.5-beta.9</b> - 2026-05-13 </li> <li> <b>2.105.5-beta.8</b> - 2026-05-13 </li> <li> <b>2.105.5-beta.5</b> - 2026-05-13 </li> <li> <b>2.105.5-beta.0</b> - 2026-05-11 </li> <li> <b>2.105.4</b> - 2026-05-08 </li> <li> <b>2.105.4-canary.2</b> - 2026-05-08 </li> <li> <b>2.105.4-canary.1</b> - 2026-05-08 </li> <li> <b>2.105.4-canary.0</b> - 2026-05-08 </li> <li> <b>2.105.3</b> - 2026-05-04 </li> <li> <b>2.105.2</b> - 2026-05-04 </li> <li> <b>2.105.2-canary.4</b> - 2026-05-04 </li> <li> <b>2.105.2-canary.3</b> - 2026-05-04 </li> <li> <b>2.105.2-canary.2</b> - 2026-05-04 </li> <li> <b>2.105.2-canary.1</b> - 2026-05-04 </li> <li> <b>2.105.2-canary.0</b> - 2026-04-28 </li> <li> <b>2.105.1</b> - 2026-04-28 </li> <li> <b>2.105.1-canary.2</b> - 2026-04-28 </li> <li> <b>2.105.1-canary.1</b> - 2026-04-28 </li> <li> <b>2.105.1-canary.0</b> - 2026-04-28 </li> <li> <b>2.105.0</b> - 2026-04-27 </li> <li> <b>2.104.2-canary.4</b> - 2026-04-27 </li> <li> <b>2.104.2-canary.3</b> - 2026-04-27 </li> <li> <b>2.104.2-canary.2</b> - 2026-04-27 </li> <li> <b>2.104.2-canary.1</b> - 2026-04-24 </li> <li> <b>2.104.2-canary.0</b> - 2026-04-24 </li> <li> <b>2.104.1</b> - 2026-04-23 </li> <li> <b>2.104.1-canary.3</b> - 2026-04-23 </li> <li> <b>2.104.1-canary.2</b> - 2026-04-23 </li> <li> <b>2.104.1-canary.1</b> - 2026-04-22 </li> <li> <b>2.104.1-canary.0</b> - 2026-04-22 </li> <li> <b>2.104.0</b> - 2026-04-20 </li> <li> <b>2.104.0-canary.2</b> - 2026-04-17 </li> <li> <b>2.104.0-canary.1</b> - 2026-04-17 </li> <li> <b>2.104.0-canary.0</b> - 2026-04-02 </li> <li> <b>2.103.3</b> - 2026-04-16 </li> <li> <b>2.103.3-canary.1</b> - 2026-04-16 </li> <li> <b>2.103.3-canary.0</b> - 2026-04-15 </li> <li> <b>2.103.2</b> - 2026-04-15 </li> <li> <b>2.103.2-canary.3</b> - 2026-04-15 </li> <li> <b>2.103.2-canary.2</b> - 2026-04-15 </li> <li> <b>2.103.2-canary.1</b> - 2026-04-15 </li> <li> <b>2.103.2-canary.0</b> - 2026-04-15 </li> <li> <b>2.103.1</b> - 2026-04-15 </li> <li> <b>2.103.1-canary.0</b> - 2026-04-15 </li> <li> <b>2.103.1-beta.0</b> - 2026-04-09 </li> <li> <b>2.103.0</b> - 2026-04-09 </li> <li> <b>2.103.0-canary.2</b> - 2026-04-09 </li> <li> <b>2.103.0-canary.1</b> - 2026-04-09 </li> <li> <b>2.103.0-canary.0</b> - 2026-04-02 </li> <li> <b>2.102.2-canary.0</b> - 2026-04-08 </li> <li> <b>2.102.1</b> - 2026-04-07 </li> <li> <b>2.102.1-canary.0</b> - 2026-04-07 </li> <li> <b>2.102.0</b> - 2026-04-07 </li> <li> <b>2.102.0-canary.5</b> - 2026-04-07 </li> <li> <b>2.102.0-canary.4</b> - 2026-04-07 </li> <li> <b>2.102.0-canary.3</b> - 2026-04-06 </li> <li> <b>2.102.0-canary.2</b> - 2026-04-03 </li> <li> <b>2.102.0-canary.1</b> - 2026-04-03 </li> <li> <b>2.102.0-canary.0</b> - 2026-04-02 </li> <li> <b>2.102.0-beta.0</b> - 2026-03-31 </li> <li> <b>2.101.1</b> - 2026-03-31 </li> <li> <b>2.101.1-canary.0</b> - 2026-03-31 </li> <li> <b>2.101.0</b> - 2026-03-30 </li> <li> <b>2.101.0-canary.0</b> - 2026-03-30 </li> <li> <b>2.100.1</b> - 2026-03-26 </li> <li> <b>2.100.0</b> - 2026-03-23 </li> <li> <b>2.100.0-rc.0</b> - 2026-03-16 </li> <li> <b>2.100.0-canary.9</b> - 2026-03-30 </li> <li> <b>2.100.0-canary.8</b> - 2026-03-30 </li> <li> <b>2.100.0-canary.7</b> - 2026-03-26 </li> <li> <b>2.100.0-canary.6</b> - 2026-03-26 </li> <li> <b>2.100.0-canary.5</b> - 2026-03-26 </li> <li> <b>2.100.0-canary.4</b> - 2026-03-23 </li> <li> <b>2.100.0-canary.3</b> - 2026-03-20 </li> <li> <b>2.100.0-canary.2</b> - 2026-03-19 </li> <li> <b>2.100.0-canary.1</b> - 2026-03-19 </li> <li> <b>2.100.0-canary.0</b> - 2026-03-17 </li> <li> <b>2.99.3</b> - 2026-03-19 </li> <li> <b>2.99.3-canary.0</b> - 2026-03-16 </li> <li> <b>2.99.2</b> - 2026-03-16 </li> <li> <b>2.99.2-canary.0</b> - 2026-03-13 </li> <li> <b>2.99.1</b> - 2026-03-11 </li> <li> <b>2.99.1-canary.0</b> - 2026-03-11 </li> <li> <b>2.99.0</b> - 2026-03-09 </li> <li> <b>2.98.1-canary.1</b> - 2026-03-05 </li> <li> <b>2.98.1-canary.0</b> - 2026-02-27 </li> <li> <b>2.98.0</b> - 2026-02-26 </li> </ul> from <a href="https://redirect.github.com/supabase/supabase-js/releases">@supabase/supabase-js GitHub release notes</a> </details> </details> --- > [!IMPORTANT] > > - Check the changes in this PR to ensure they won't cause issues with your project. > - This PR was automatically created by Snyk using the credentials of a real user. --- **Note:** _You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs._ **For more information:** <img src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6ImZha2Uta2V5IiwiYW5vbnltb3VzSWQiOiJjMDY0ZmVjNC1jYTNmLTQ3MzQtYjIxMi0wNTM3ZWVhNGRjYTYiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6ImMwNjRmZWM0LWNhM2YtNDczNC1iMjEyLTA1MzdlZWE0ZGNhNiJ9fQ==" width="0" height="0"/> > - 🧐 [View latest project report](https://app.eu.snyk.io/org/antigravity-awesome-skills-default/project/e1f199d3-0a16-4ac7-a9a1-528e774fc41f?utm_source=github&utm_medium=referral&page=upgrade-pr) > - 📜 [Customise PR templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates?utm_source=&utm_content=fix-pr-template) > - 🛠 [Adjust upgrade PR settings](https://app.eu.snyk.io/org/antigravity-awesome-skills-default/project/e1f199d3-0a16-4ac7-a9a1-528e774fc41f/settings/integration?utm_source=github&utm_medium=referral&page=upgrade-pr) > - 🔕 [Ignore this dependency or unsubscribe from future upgrade PRs](https://app.eu.snyk.io/org/antigravity-awesome-skills-default/project/e1f199d3-0a16-4ac7-a9a1-528e774fc41f/settings/integration?pkg=@supabase/supabase-js&utm_source=github&utm_medium=referral&page=upgrade-pr#auto-dep-upgrades) [//]: # 'snyk:metadata:{"breakingChangeRiskLevel":null,"FF_showPullRequestBreakingChanges":false,"FF_showPullRequestBreakingChangesWebSearch":false,"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"@supabase/supabase-js","from":"2.98.0","to":"2.107.0"}],"env":"prod","hasFixes":false,"isBreakingChange":false,"isMajorUpgrade":false,"issuesToFix":[],"prId":"c064fec4-ca3f-4734-b212-0537eea4dca6","prPublicId":"c064fec4-ca3f-4734-b212-0537eea4dca6","packageManager":"npm","priorityScoreList":[],"projectPublicId":"e1f199d3-0a16-4ac7-a9a1-528e774fc41f","projectUrl":"https://app.eu.snyk.io/org/antigravity-awesome-skills-default/project/e1f199d3-0a16-4ac7-a9a1-528e774fc41f?utm_source=github&utm_medium=referral&page=upgrade-pr","prType":"upgrade","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":[],"type":"auto","upgrade":[],"upgradeInfo":{"versionsDiff":119,"publishedDate":"2026-06-02T14:09:20.056Z"},"vulns":[]}'
… fallback Address review feedback on supabase#2398. The success-path JSON.parse guard now mirrors the existing non-2xx fallback exactly (error = { message: body }) instead of introducing a separate structured-error shape. This still fixes both bugs the PR targets — the SyntaxError escaping .throwOnError() and the misleading status: 0 — since the fix is the try/catch itself, not the error shape. Drops the arbitrary 500-byte body truncation, the speculative hint, the custom message format, and the long inline comment (and the test that only existed to defend the truncation). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Description
On the success path (
res.ok === true),postgrest-jscallsJSON.parse(body)with no error handling. A 2xx status does not guarantee a JSON body:upstream connect error— with a success status.Unexpected end of JSON input) even from a perfectly well-behaved server.When that happens today the raw
SyntaxErrorescapesprocessResponse, and the result depends on how the query was awaited:.throwOnError()→ the promise rejects with aSyntaxError, not aPostgrestError. This breaks the documented contract —catchblocks that readerror.code/error.hint/error.detailsreceive an unexpected shape.{ status: 0, error: { message: "SyntaxError: Unexpected token ..." } }.status: 0signals a client-side network failure, which is misleading: the request actually reached the server and returned a real HTTP status.The non-2xx branch already tolerates non-JSON bodies (it falls back to
error = { message: body }). This PR makes the success path symmetric with it.Change
Wrap the success-path
JSON.parsein atry/catch. On parse failure:message,detailswith a truncated body snippet, an actionablehint, emptycode— matching the existing client-side error shape),status/statusTextinstead of reportingstatus: 0,PostgrestErrorwhen.throwOnError()is set.Valid-JSON responses are completely unaffected — this is purely defensive.
Type of Change
Testing
packages/core/postgrest-js/test/fetch-errors.test.ts, mocked fetch — no Docker): HTML body on 200, truncated JSON, real-status preservation, oversized-body truncation indetails, and thethrowOnError → PostgrestErrorcontract.nx type-check/nx type-check:testpass.nx format:checkpasses; mock-based suites (fetch-errors,retry,timeout-and-url-length) pass.Checklist
nx format)fix(postgrest): ...)Related context:
supabase/postgrest-js#646andsupabase/postgrest-js#282(the "Unexpected token < in JSON" class of reports). This PR intentionally scopes to client-side robustness/contract-correctness rather than expecting upstream proxies to always emit JSON.🤖 Generated with Claude Code