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

supabase / supabase-flutter / 35857206303
94%

Build:
DEFAULT BRANCH: main
Ran 23 Sep 2026 11:58AM UTC
Jobs 11
Files 166
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 Sep 2026 11:53AM UTC coverage: 90.596% (-0.003%) from 90.599%
35857206303

push

github

web-flow
fix(supabase_typegen): format generated code for language version 3.8 (#1874)

## What

- Formats the generated file for the language version of the project it
is written into, instead of the formatter's latest language version.
- The CLI resolves that version from the SDK lower bound of the nearest
`pubspec.yaml` (of the output file's directory, or of the current
directory with `--output -`), generates for it, and then runs `dart
format` of the running SDK over the result, so `dart format` in the
project leaves the file unchanged.
- Without a pubspec, or when the SDK formatter cannot be run, the output
falls back to the in-process formatter at Dart 3.8, the lowest language
version the generated code is valid for (the value types use null-aware
map elements).

## Why

Since Dart 3.13 the formatter writes a trailing comma after a split
extension type representation field:

```dart
extension type const PrivateAchievementItemTblInsert._(
  Map<String, dynamic> _json,
) implements Object {
```

The analyzer rejects that in any project whose language version is older
than 3.13:

```
error - The representation field can't have a trailing comma. Try removing the trailing comma. - representation_field_trailing_comma
```

So a table whose type name is long enough to make the clause split
produced a generated file that did not compile. The workspace lockfile
still pins `dart_style` 3.1.8, which predates the change, so the
repository's own tests did not see it, but a global install or a
consumer project resolves 3.1.10 or newer and does.

Formatting for the project's own language version fixes the compile
error and also makes the output match what `dart format` produces there.
Running the SDK's `dart format` as the last step closes the remaining
gap: the `dart_style` version the tool resolves through pub can differ
from the one bundled with the SDK, and they format the same construct
differently (this repository's own golden shows that: the checked-in
golden is ... (continued)

36 of 40 new or added lines in 3 files covered. (90.0%)

8275 of 9134 relevant lines covered (90.6%)

4.89 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
92.0
packages/supabase_typegen/lib/src/language_version_io.dart
2
83.33
packages/supabase_typegen/lib/src/sdk_formatter_io.dart
Jobs
ID Job ID Ran Files Coverage
11 supabase_typegen - 35857206303.11 23 Sep 2026 11:58AM UTC 24
95.14
GitHub Action Run
9 supabase_functions - 35624013119.9 21 Sep 2026 04:13PM UTC 4
93.81
GitHub Action Run
3 supabase_common - 35624013119.3 21 Sep 2026 04:13PM UTC 22
87.36
GitHub Action Run
6 iceberg - 35624013119.6 21 Sep 2026 04:13PM UTC 6
68.52
GitHub Action Run
7 supabase_storage - 35624013119.7 21 Sep 2026 04:15PM UTC 9
97.61
GitHub Action Run
2 yet_another_json_isolate - 35608843571.2 21 Sep 2026 01:58PM UTC 1
98.44
GitHub Action Run
5 supabase_realtime - 35624013119.5 21 Sep 2026 04:15PM UTC 13
90.66
GitHub Action Run
2 supabase_auth - 35624013119.2 21 Sep 2026 04:16PM UTC 32
92.0
GitHub Action Run
11 supabase - 35624013119.11 21 Sep 2026 04:17PM UTC 17
93.3
GitHub Action Run
4 supabase_flutter - 35624013119.4 21 Sep 2026 04:13PM UTC 14
78.5
GitHub Action Run
8 postgrest - 35624013119.8 21 Sep 2026 04:16PM UTC 24
91.99
GitHub Action Run
Source Files on build 35857206303
  • Tree
  • List 166
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35857206303
  • 787b43f9 on github
  • Prev Build on main (#35624013119)
  • Next Build on main (#35861666412)
  • 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