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

supabase / supabase-flutter / 39768280064
92%

Build:
DEFAULT BRANCH: main
Ran 22 Oct 2026 11:09AM UTC
Jobs 11
Files 174
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

22 Oct 2026 11:07AM UTC coverage: 91.762%. Remained the same
39768280064

push

github

web-flow
fix(postgrest): warn on a bare await of typed update() and delete() (#2007)

## What

The typed `update()` and `delete()` return a
`PostgrestTypedUnscopedBuilder`, which is not a `Future` and sends
nothing until `where()` or `all()` is called. Dart allows `await` on any
value, so this compiled and silently did nothing:

```dart
await supabase.table(Books.table).delete();
await supabase.table(Books.table).update(BooksUpdate(inPrint: false));
```

The only signal was the `await_only_futures` lint, which projects
without the core lint set do not get.

Both methods are now annotated with `@UseResult`, so the analyzer's
`unused_result` warning, which is on by default and needs no lint
configuration, reports a bare call or a bare `await` of either one.
Chaining `where()` or `all()` counts as using the result and stays
clean.

`MIGRATION.md` and the `PostgrestTypedUnscopedBuilder` dartdoc now point
at the `unused_result` warning instead of `await_only_futures`.

## Verification

There is no analyzer-output test harness in the repository, so this was
checked by running `dart analyze` on a scratch file in the postgrest
package:

```dart
await t.delete();          // warning: unused_result
t.delete();                // warning: unused_result
await t.update(Object());  // warning: unused_result
await t.delete().all();    // clean
```

`dart analyze packages` reports no issues, so no existing caller is
affected.

Fixes SDK-2326

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **New Features**
* Added analyzer warnings when typed `update()` or `delete()` calls are
awaited without sending a request. Use `where()` or `all()` to send the
request.
* **Documentation**
* Updated the migration guide and typed-write guidance to reflect the
`unused_result` warning.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

2 of 2 new or added lines in 1 file covered. (100.0%)

10705 of 11666 relevant lines covered (91.76%)

5.39 hits per line

Jobs
ID Job ID Ran Files Coverage
3 postgrest - 39768280064.3 22 Oct 2026 11:11AM UTC 28
91.95
GitHub Action Run
4 supabase_flutter - 39768280064.4 22 Oct 2026 11:09AM UTC 16
80.85
GitHub Action Run
5 iceberg - 39768280064.5 22 Oct 2026 11:09AM UTC 6
71.32
GitHub Action Run
6 supabase_storage - 39768280064.6 22 Oct 2026 11:11AM UTC 10
96.26
GitHub Action Run
7 supabase - 39768280064.7 22 Oct 2026 11:12AM UTC 20
93.48
GitHub Action Run
8 supabase_functions - 39768280064.8 22 Oct 2026 11:09AM UTC 4
93.28
GitHub Action Run
9 supabase_auth - 39768280064.9 22 Oct 2026 11:12AM UTC 34
93.38
GitHub Action Run
10 supabase_typegen - 39768280064.10 22 Oct 2026 11:09AM UTC 6
94.36
GitHub Action Run
11 supabase_realtime - 39768280064.11 22 Oct 2026 11:11AM UTC 14
91.17
GitHub Action Run
9 yet_another_json_isolate - 39603824352.9 21 Oct 2026 12:58PM UTC 1
98.44
GitHub Action Run
11 supabase_common - 39605471296.11 21 Oct 2026 01:10PM UTC 35
93.58
GitHub Action Run
Source Files on build 39768280064
  • Tree
  • List 174
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39768280064
  • ae452e4a on github
  • Prev Build on main (#39625362934)
  • Next Build on main (#39775457039)
  • 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