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

supabase / supabase-flutter / 29081780486
87%

Build:
DEFAULT BRANCH: main
Ran 10 Jul 2026 09:05AM UTC
Jobs 9
Files 95
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

10 Jul 2026 09:03AM UTC coverage: 86.993% (+0.2%) from 86.746%
29081780486

push

github

web-flow
refactor: modernize dart syntax across client packages (#1574)

## What

Sweeps the client packages for code that can use syntax introduced in
Dart 3.9 or earlier (our minimum SDK floor), and adds lint rules so new
code keeps to the modern style.

All changes are behavior-preserving refactors.

### Switch expressions (replacing value-returning switch statements /
if-else chains)
- `postgrest`: `textSearch` type mapping
- `realtime_client`: `connectionState`,
`PostgresChangeFilterType.token`, `PostgresChangeEvent.fromString`,
`ChannelEventsExtended.eventName`, `_binaryDecode`
- `gotrue`: `JWK operator[]`, `fetch` HTTP method dispatch,
`PhoneEnrollment._fromJsonValue`
- `supabase`: `_getPostgrestData` filter dispatch

### Null-aware collection elements (`{'k': ?v}`) and spreads (`...?`)
- `storage_client`: `ToQueryParams`
- `gotrue`: `JWK.toJson`, `getOAuthSignInUrl` url params

### Collection-for / spread (replacing `fold` / `addAll`)
- `postgrest`: `_setColumnsSearchParam`
- `storage_client`: `download` query merge

### if-case pattern (replacing manual `is` + cast)
- `postgrest`: `_handleMaybeSingleError`

## Lint rules added to `supabase_lints`
- `use_enums` (core)
- `unnecessary_breaks` (core)
- `prefer-switch-expression` (DCM)

Enum switches are kept exhaustive (no `_` wildcard) so
`avoid-wildcard-cases-with-enums` stays satisfied.

## Testing
- `dart analyze` clean across all packages with the new rules.
- `dcm analyze` reports no new issues (one pre-existing
`avoid-inferrable-type-arguments` in `gotrue_oauth_api.dart` is
untouched).
- Package test suites pass; remaining failures are pre-existing
integration tests that require a running local Supabase instance.

Closes SDK-1283

79 of 102 new or added lines in 14 files covered. (77.45%)

29 existing lines in 5 files now uncovered.

4655 of 5351 relevant lines covered (86.99%)

4.05 hits per line

Uncovered Changes

Lines Coverage ∆ File
10
81.97
0.61% packages/supabase/lib/src/supabase_stream_builder.dart
6
93.19
0.79% packages/realtime_client/lib/src/realtime_client.dart
3
76.67
4.79% packages/gotrue/lib/src/types/jwt.dart
2
67.39
0.25% packages/gotrue/lib/src/types/mfa.dart
1
74.27
0.04% packages/gotrue/lib/src/gotrue_client.dart
1
83.33
-0.11% packages/realtime_client/lib/src/types.dart

Coverage Regressions

Lines Coverage ∆ File
17
89.82
0.19% packages/supabase/lib/src/supabase_client.dart
9
88.46
0.0% packages/supabase_flutter/lib/src/supabase.dart
1
81.97
0.61% packages/supabase/lib/src/supabase_stream_builder.dart
1
76.67
4.79% packages/gotrue/lib/src/types/jwt.dart
1
67.39
0.25% packages/gotrue/lib/src/types/mfa.dart
Jobs
ID Job ID Ran Files Coverage
1 supabase_common - 29081780486.1 10 Jul 2026 09:05AM UTC 10
87.85
GitHub Action Run
2 functions_client - 29081780486.2 10 Jul 2026 09:05AM UTC 3
98.81
GitHub Action Run
3 supabase_flutter - 29081780486.3 10 Jul 2026 09:05AM UTC 10
79.31
GitHub Action Run
4 yet_another_json_isolate - 29081780486.4 10 Jul 2026 09:05AM UTC 1
77.78
GitHub Action Run
5 postgrest - 29081780486.5 10 Jul 2026 09:07AM UTC 10
84.89
GitHub Action Run
6 supabase - 29081780486.6 10 Jul 2026 09:06AM UTC 16
82.57
GitHub Action Run
7 storage_client - 29081780486.7 10 Jul 2026 09:07AM UTC 6
93.87
GitHub Action Run
8 realtime_client - 29081780486.8 10 Jul 2026 09:08AM UTC 11
89.61
GitHub Action Run
9 gotrue - 29081780486.9 10 Jul 2026 09:08AM UTC 28
86.47
GitHub Action Run
Source Files on build 29081780486
  • Tree
  • List 95
  • Changed 16
  • Source Changed 16
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29081780486
  • b74fdfee on github
  • Prev Build on main (#29080142790)
  • Next Build on main (#29084055776)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc