Skip to content

fix(postgrest): return a structured error for non-JSON body on successful responses - #2398

Merged
mandarini merged 2 commits into
supabase:masterfrom
ogyamada:fix/postgrest-json-parse-on-ok-response
May 28, 2026
Merged

mandarini merged 2 commits into
supabase:masterfrom
ogyamada:fix/postgrest-json-parse-on-ok-response

Conversation

@ogyamada

Copy link
Copy Markdown
Contributor

Description

On the success path (res.ok === true), postgrest-js calls JSON.parse(body) with no error handling. A 2xx status does not guarantee a JSON body:

  • A proxy / gateway / CDN in front of PostgREST (Cloudflare, nginx, a corporate proxy, a service worker, etc.) can return a non-JSON body — e.g. an HTML error page or a plaintext upstream connect error — with a success status.
  • A connection dropped mid-stream yields a truncated body (Unexpected end of JSON input) even from a perfectly well-behaved server.

When that happens today the raw SyntaxError escapes processResponse, and the result depends on how the query was awaited:

  1. With .throwOnError() → the promise rejects with a SyntaxError, not a PostgrestError. This breaks the documented contract — catch blocks that read error.code / error.hint / error.details receive an unexpected shape.
  2. Without it → the error is caught by the network-error handler and returned as { status: 0, error: { message: "SyntaxError: Unexpected token ..." } }. status: 0 signals 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.parse in a try/catch. On parse failure:

  • return a structured error (message, details with a truncated body snippet, an actionable hint, empty code — matching the existing client-side error shape),
  • preserve the real HTTP status / statusText instead of reporting status: 0,
  • throw a PostgrestError when .throwOnError() is set.

Valid-JSON responses are completely unaffected — this is purely defensive.

Type of Change

  • Bug fix (fix)

Testing

  • Unit tests added (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 in details, and the throwOnError → PostgrestError contract.
  • nx type-check / nx type-check:test pass.
  • nx format:check passes; mock-based suites (fetch-errors, retry, timeout-and-url-length) pass.

Checklist

  • Code formatted (nx format)
  • Used conventional commits (fix(postgrest): ...)

Related context: supabase/postgrest-js#646 and supabase/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

…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]>
@ogyamada
ogyamada requested review from a team as code owners May 25, 2026 22:29
@pkg-pr-new

pkg-pr-new Bot commented May 28, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@supabase/auth-js

npm i https://pkg.pr.new/@supabase/auth-js@2398

@supabase/functions-js

npm i https://pkg.pr.new/@supabase/functions-js@2398

@supabase/postgrest-js

npm i https://pkg.pr.new/@supabase/postgrest-js@2398

@supabase/realtime-js

npm i https://pkg.pr.new/@supabase/realtime-js@2398

@supabase/storage-js

npm i https://pkg.pr.new/@supabase/storage-js@2398

@supabase/supabase-js

npm i https://pkg.pr.new/@supabase/supabase-js@2398

commit: 597a29d

@mandarini mandarini left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

  1. Mirror the existing non-2xx fallback exactly. The non-2xx branch
    already handles non-JSON bodies as error = { 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 SyntaxError leak, and status: 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.

  2. Drop the 500-byte snippet truncation, the hint paragraph, 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.

  3. 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.

@mandarini mandarini self-assigned this May 28, 2026
… 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]>
@ogyamada

Copy link
Copy Markdown
Contributor Author

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:

1. **Mirror the existing non-2xx fallback exactly.** The non-2xx branch
   already handles non-JSON bodies as `error = { 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:
   ```ts
   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 `SyntaxError` leak, and `status: 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.

2. **Drop the 500-byte snippet truncation, the `hint` paragraph, 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.

3. **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.

as you asked

@ogyamada
ogyamada requested a review from mandarini May 28, 2026 14:19
@mandarini
mandarini merged commit b5390d2 into supabase:master May 28, 2026
21 checks passed
@mandarini

Copy link
Copy Markdown
Contributor

Thank you!

mandarini pushed a commit to supabase/supabase that referenced this pull request Jun 2, 2026
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>
imor pushed a commit to supabase/supabase that referenced this pull request Jun 3, 2026
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>
mandarini pushed a commit to supabase/ssr that referenced this pull request Jun 3, 2026
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>
sickn33 added a commit to sickn33/agentic-awesome-skills that referenced this pull request Jun 25, 2026
![snyk-top-banner](https://res.cloudinary.com/snyk/image/upload/r-d/scm-platform/snyk-pull-requests/pr-banner-default.svg)

<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&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;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&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;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&#x3D;@supabase/supabase-js&amp;utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;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":[]}'
spydon added a commit to supabase/supabase-flutter that referenced this pull request Jun 26, 2026
…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.
munir-abbasi pushed a commit to munir-abbasi/agentic-awesome-skills that referenced this pull request Jul 13, 2026
)

![snyk-top-banner](https://res.cloudinary.com/snyk/image/upload/r-d/scm-platform/snyk-pull-requests/pr-banner-default.svg)

<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&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;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&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;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&#x3D;@supabase/supabase-js&amp;utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;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":[]}'
ogyamada pushed a commit to ogyamada/supabase-js that referenced this pull request Aug 23, 2026
… 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants