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

supabase / supabase-flutter / 39264869603
92%

Build:
DEFAULT BRANCH: main
Ran 19 Oct 2026 02:01PM UTC
Jobs 11
Files 163
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

19 Oct 2026 01:59PM UTC coverage: 91.963% (-0.07%) from 92.037%
39264869603

push

github

web-flow
feat(postgrest)!: quote JSON path keys and add int array-index methods (#1983)

`jsonText(path)` and `jsonObject(path)` on the typed column expressions
sent `path` as written, `data->>$path`. So `jsonText('0')` read array
index 0 instead of the key `"0"`, `jsonText('a.b')` did not parse, and a
key with `,` or `"` had to be quoted and escaped by hand.

Now a `String` is always an object key, sent quoted with `\` and `"`
escaped the way PostgREST reads them. Two new methods, `jsonTextAt(int
index)` and `jsonObjectAt(int index)`, send a bare array index, and a
negative index counts from the end. Dart has no overloading, so these
are separate methods rather than an `int` overload as in
supabase/supabase-swift#1498.

```dart
Items.data.jsonText('name');                    // data->>"name"
Items.data.jsonText('0');                       // data->>"0", the key
Items.data.jsonObject('tags').jsonTextAt(0);    // data->"tags"->>0
Items.data.jsonObject('tags').jsonTextAt(-1);   // data->"tags"->>-1
```

A multi-step string path like `jsonObject('items->0')` no longer works.
Chain the calls instead: `jsonObject('items').jsonObjectAt(0)`. The
response key of a path now includes the quotes, `data->>"name"`. The
quoting reuses the escaping the `select` alias already did.

This is breaking only for the `@experimental` typed table surface, which
has shipped in 3.0.0 dev releases only, so there is no `MIGRATION.md`
section.

## Tests

- Unit tests cover quoted keys (digits, `.`, `,`, parentheses, empty),
escaping of `"` and `\`, bare indexes, and a quoted `"0"` inside an
embed, which does not get the closing cast that a bare index needs.
- The live `resource_embedding_test` now reads a digit key, a dotted
key, a comma key, a quoted key and a negative index. It also filters on
a quoted key, compares a `->` value numerically and orders by a dotted
key. It passes against the local stack.
- The full postgrest suite passes with `-j 1`.

Fixes SDK-2278

<!-- This is an auto-... (continued)

28 of 40 new or added lines in 3 files covered. (70.0%)

1 existing line in 1 file now uncovered.

10069 of 10949 relevant lines covered (91.96%)

5.43 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
82.35
-4.53% packages/postgrest/lib/src/postgrest_derived_expression.dart
3
93.81
-3.34% packages/postgrest/lib/src/postgrest_column_expression.dart
2
92.86
-1.88% packages/postgrest/lib/src/postgrest_embedded_relation.dart

Coverage Regressions

Lines Coverage ∆ File
1
93.81
-3.34% packages/postgrest/lib/src/postgrest_column_expression.dart
Jobs
ID Job ID Ran Files Coverage
3 postgrest - 39264869603.3 19 Oct 2026 02:04PM UTC 32
93.89
GitHub Action Run
4 iceberg - 39264869603.4 19 Oct 2026 02:01PM UTC 6
71.32
GitHub Action Run
5 supabase - 39264869603.5 19 Oct 2026 02:04PM UTC 17
94.28
GitHub Action Run
6 supabase_storage - 39264869603.6 19 Oct 2026 02:04PM UTC 10
96.35
GitHub Action Run
7 supabase_typegen - 39264869603.7 19 Oct 2026 02:02PM UTC 6
96.26
GitHub Action Run
8 supabase_auth - 39264869603.8 19 Oct 2026 02:05PM UTC 34
93.38
GitHub Action Run
9 supabase_realtime - 39264869603.9 19 Oct 2026 02:04PM UTC 14
90.92
GitHub Action Run
10 supabase_functions - 39264869603.10 19 Oct 2026 02:01PM UTC 4
93.28
GitHub Action Run
11 supabase_flutter - 39264869603.11 19 Oct 2026 02:01PM UTC 16
80.61
GitHub Action Run
8 supabase_common - 39234881764.8 19 Oct 2026 10:06AM UTC 23
87.92
GitHub Action Run
7 yet_another_json_isolate - 39234881764.7 19 Oct 2026 10:06AM UTC 1
98.44
GitHub Action Run
Source Files on build 39264869603
  • Tree
  • List 163
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39264869603
  • 2d3262b6 on github
  • Prev Build on main (#39261126285)
  • Next Build on main (#39266875227)
  • 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