• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-flutter / 39966257653
93%

Build:
DEFAULT BRANCH: main
Ran 23 Oct 2026 02:05PM UTC
Jobs 12
Files 185
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Oct 2026 02:02PM UTC coverage: 92.337% (+0.07%) from 92.272%
39966257653

push

github

web-flow
fix(postgrest)!: stop transforms from silently changing or dropping part of a request (#2026)

Linear:
https://linear.app/supabase/issue/SDK-2333/fixpostgrest-transforms-that-silently-change-or-drop-part-of-a-request

## What changed

Six builder methods compiled but sent something other than what was
asked for. Each one now either sends the right request or fails at the
call site.

1. **`head()` after a write.** It used to turn an insert, upsert, update
or delete into a `HEAD`, so the write never happened and the call still
succeeded. Both surfaces now throw a `StateError` when `head()` is
called after a write. A select, a count and a function call still send a
`HEAD`.
2. **`maybeSingle()` on a write.** An insert, upsert, update or delete
now sends `Accept: application/vnd.pgrst.object+json`, as `single()`
does. A delete or update that matches several rows is rolled back by
PostgREST before the error reaches the caller. Before, it was committed
and then the call threw. The 406 that PostgREST returns when no row
matched is turned back into `null` (count `0`). Reads and function calls
still enforce the limit client-side, so a read that finds nothing does
not cause a 406. `single()` after `maybeSingle()` clears the flag, so a
zero-row result still throws `PGRST116`.
3. **Typed `count()`.** It returns a new `PostgrestTypedCountBuilder`
with `where()` and the request options (`retry`, `requestTimeout`,
`abortSignal`, `setHeader`) but no transforms. `limit()` and `range()`
used to be dropped silently, and `csv()`, `select()` and `explain()`
crashed with a null check error. `PostgrestHttpTableExecutor` also
rejects a hand-built count request that carries a limit, offset,
ordering, embed scope or result shape.
4. **Untyped `rpc(...).head()`.** The arguments are moved into the query
string, which the typed executor already did. A `HEAD` has no body to
fall back on, so on both surfaces `head()` throws an `ArgumentError` for
arguments PostgREST would not pass t... (continued)

90 of 96 new or added lines in 10 files covered. (93.75%)

53 existing lines in 2 files now uncovered.

11592 of 12554 relevant lines covered (92.34%)

6.07 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
62.5
packages/postgrest/lib/src/postgrest_typed_count_builder.dart

Coverage Regressions

Lines Coverage ∆ File
52
93.03
1.2% packages/supabase_auth/lib/src/auth_client.dart
1
97.92
-0.04% packages/supabase_auth/lib/src/auth_mfa_api.dart
Jobs
ID Job ID Ran Files Coverage
3 iceberg - 39966257653.3 23 Oct 2026 02:05PM UTC 6
77.18
GitHub Action Run
4 supabase_flutter - 39966257653.4 23 Oct 2026 02:06PM UTC 16
80.52
GitHub Action Run
5 supabase - 39966257653.5 23 Oct 2026 02:09PM UTC 20
93.84
GitHub Action Run
6 supabase_auth - 39966257653.6 23 Oct 2026 02:09PM UTC 34
94.05
GitHub Action Run
7 postgrest - 39966257653.7 23 Oct 2026 02:07PM UTC 29
92.41
GitHub Action Run
8 supabase_test - 39966257653.8 23 Oct 2026 02:05PM UTC 9
92.31
GitHub Action Run
9 supabase_functions - 39966257653.9 23 Oct 2026 02:05PM UTC 4
93.44
GitHub Action Run
10 supabase_storage - 39966257653.10 23 Oct 2026 02:07PM UTC 10
96.51
GitHub Action Run
11 supabase_realtime - 39966257653.11 23 Oct 2026 02:07PM UTC 14
91.04
GitHub Action Run
12 supabase_typegen - 39966257653.12 23 Oct 2026 02:07PM UTC 6
94.46
GitHub Action Run
10 supabase_common - 39964796217.10 23 Oct 2026 01:53PM UTC 36
94.12
GitHub Action Run
3 yet_another_json_isolate - 39964796217.3 23 Oct 2026 01:53PM UTC 1
98.68
GitHub Action Run
Source Files on build 39966257653
  • Tree
  • List 185
  • Changed 15
  • Source Changed 14
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39966257653
  • f9924ac8 on github
  • Prev Build on main (#39965616380)
  • Next Build on main (#39969092550)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc