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

supabase / supabase-flutter / 36864123641
92%

Build:
DEFAULT BRANCH: main
Ran 01 Oct 2026 12:48PM UTC
Jobs 11
Files 173
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

01 Oct 2026 12:47PM UTC coverage: 91.392% (+0.05%) from 91.338%
36864123641

push

github

web-flow
feat(supabase_typegen): default the generated import to the Supabase package the project depends on (#1904)

## Summary

The generated file imported `package:postgrest/postgrest.dart` by
default. A supabase_flutter app depends on `supabase_flutter`, not on
`postgrest`, so the analyzer reported `depend_on_referenced_packages` on
the generated file.

Without `--import`, the tool now reads the `dependencies` of the
`pubspec.yaml` nearest to the output, the same one the language version
is read from. It imports the library of the first of these that is a
direct dependency:

1. `package:supabase_flutter/supabase_flutter.dart`
2. `package:supabase/supabase.dart`
3. `package:postgrest/postgrest.dart`

When the pubspec lists none of them, or there is no pubspec, the import
stays `package:postgrest/postgrest.dart`. `dev_dependencies` are
ignored. A pubspec that is not valid YAML gets the same error and exit
code as the language version lookup. An explicit `--import` always wins.

## Changes

* `packageImportUri` sits next to `packageLanguageVersion` and shares
its pubspec lookup and YAML loading.
* The `--import` option no longer has a static default, and its help
text explains the detection.
* The README describes the default.
* Unit tests cover each package, the precedence between them, no
matching dependency, a `dev_dependencies`-only match, ancestor lookup, a
missing pubspec and invalid YAML.

The list of required symbols in the `generateDartCode` dartdoc still
matches what the generator emits.

Closes SDK-1979

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

* **New Features**
* Generated Dart files now select imports for `PostgrestTable` and
`PostgrestColumn` based on the output project’s nearest `pubspec.yaml`,
preferring `supabase_flutter`, then `supabase`, then `postgrest`. If
none is listed, generation uses `package:postgrest`.
* The `--import` option overrides the automatically selected import wit... (continued)

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

9014 of 9863 relevant lines covered (91.39%)

4.97 hits per line

Jobs
ID Job ID Ran Files Coverage
1 supabase_common - 36864123641.1 01 Oct 2026 12:48PM UTC 22
87.5
GitHub Action Run
2 supabase_storage - 36864123641.2 01 Oct 2026 12:51PM UTC 9
97.83
GitHub Action Run
3 supabase_typegen - 36864123641.3 01 Oct 2026 12:50PM UTC 24
95.81
GitHub Action Run
4 supabase_functions - 36864123641.4 01 Oct 2026 12:48PM UTC 4
96.0
GitHub Action Run
5 postgrest - 36864123641.5 01 Oct 2026 12:51PM UTC 29
94.06
GitHub Action Run
6 yet_another_json_isolate - 36864123641.6 01 Oct 2026 12:48PM UTC 1
98.44
GitHub Action Run
7 supabase_flutter - 36864123641.7 01 Oct 2026 12:49PM UTC 15
81.0
GitHub Action Run
8 supabase - 36864123641.8 01 Oct 2026 12:52PM UTC 18
94.26
GitHub Action Run
9 iceberg - 36864123641.9 01 Oct 2026 12:48PM UTC 6
68.52
GitHub Action Run
10 supabase_realtime - 36864123641.10 01 Oct 2026 12:51PM UTC 13
90.66
GitHub Action Run
11 supabase_auth - 36864123641.11 01 Oct 2026 12:53PM UTC 32
92.07
GitHub Action Run
Source Files on build 36864123641
  • Tree
  • List 173
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #36864123641
  • a5c20985 on github
  • Prev Build on main (#36698110206)
  • Next Build on main (#36977860469)
  • 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