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

supabase / supabase-flutter / 35615044899
94%

Build:
DEFAULT BRANCH: main
Ran 21 Sep 2026 02:54PM UTC
Jobs 11
Files 161
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

21 Sep 2026 02:52PM UTC coverage: 90.698% (+0.02%) from 90.678%
35615044899

push

github

web-flow
fix(typegen)!: map bytea columns to Uint8List instead of String (#1866)

## Summary

Typegen classified `bytea` as a text format, so a `bytea` column
generated a `String` getter holding the raw `\x…` hex literal PostgREST
sends. It now generates `Uint8List`, decoded on read and encoded back on
write, in line with how the other non-string scalar kinds are converted.

Fixes
https://linear.app/supabase/issue/SDK-1925/fixtypegen-map-postgres-bytea-columns-to-uint8list-instead-of-string

## Changes

- **postgrest**: adds `PostgrestByteaCodec` and its shared instance
`postgrestBytea`, a `Codec<List<int>, String>` between bytes and the
`bytea` literal. Encoding renders hex, the format Postgres emits by
default; decoding reads both hex (any digit case, whitespace between
pairs) and the escape output format. Typed filters render a `Uint8List`
operand through it, so `Books.cover.eq(bytes)` sends `eq.\x…` instead of
an array literal.
- **supabase_typegen**: new `ColumnTypeKind.binary` for the `bytea`
format. Row getters decode with `postgrestBytea.decode`, insert and
update types encode with `postgrestBytea.encode`, column tokens are
`PostgrestColumn<Row, Uint8List>`, and `dart:typed_data` is imported
only when a schema has such a column. `postgrestBytea` is reserved as a
member name so a column called `postgrest_bytea` cannot shadow the codec
in the generated conversions. `bytea[]` elements stay `List<String>`
like the other converted element kinds, and the README says so.
- **Fixtures**: `books` gains a nullable `cover_image bytea` column;
`generator_metadata.json` was regenerated from a fresh `postgres:15`
with `tool/regenerate_fixture.ts` at the pinned
`postgrest-typegen-v0.2.2`, and both goldens were regenerated. The
hostile schema also gets `bytea` columns, including one named
`postgrest_bytea`.
- `sdk-compliance.yaml` registers the new postgrest symbols.

## Breaking change

Regenerated code exposes `bytea` columns as `Uint8List` where it
previously expos... (continued)

51 of 54 new or added lines in 4 files covered. (94.44%)

8064 of 8891 relevant lines covered (90.7%)

4.7 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
91.22
-0.33% packages/supabase_typegen/lib/src/dart_generator.dart
Jobs
ID Job ID Ran Files Coverage
4 supabase_realtime - 35615044899.4 21 Sep 2026 02:57PM UTC 13
90.66
GitHub Action Run
5 supabase_storage - 35615044899.5 21 Sep 2026 02:57PM UTC 9
97.61
GitHub Action Run
6 supabase_flutter - 35615044899.6 21 Sep 2026 02:54PM UTC 14
77.87
GitHub Action Run
7 supabase_typegen - 35615044899.7 21 Sep 2026 02:56PM UTC 22
95.33
GitHub Action Run
8 iceberg - 35615044899.8 21 Sep 2026 02:54PM UTC 6
68.52
GitHub Action Run
9 postgrest - 35615044899.9 21 Sep 2026 02:57PM UTC 22
92.93
GitHub Action Run
10 supabase_auth - 35615044899.10 21 Sep 2026 02:58PM UTC 32
92.0
GitHub Action Run
11 supabase_functions - 35615044899.11 21 Sep 2026 02:54PM UTC 4
93.81
GitHub Action Run
3 supabase - 35608843571.3 21 Sep 2026 02:01PM UTC 16
93.66
GitHub Action Run
2 yet_another_json_isolate - 35608843571.2 21 Sep 2026 01:58PM UTC 1
98.44
GitHub Action Run
8 supabase_common - 35608843571.8 21 Sep 2026 01:58PM UTC 22
87.36
GitHub Action Run
Source Files on build 35615044899
  • Tree
  • List 161
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35615044899
  • 2bb3ff02 on github
  • Prev Build on main (#35612852937)
  • Next Build on main (#35617196415)
  • 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