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

supabase / supabase-flutter / 39972307761
93%

Build:
DEFAULT BRANCH: main
Ran 23 Oct 2026 02:47PM UTC
Jobs 12
Files 185
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 Oct 2026 02:45PM UTC coverage: 92.427% (+0.009%) from 92.418%
39972307761

push

github

web-flow
feat(functions)!: response headers, a region type, consistent naming and errors that stay in FunctionsException (#2031)

Resolves
[SDK-2350](https://linear.app/supabase/issue/SDK-2350/featfunctions-response-headers-a-region-enum-consistent-naming-and).

## Breaking changes

- **Naming.** `FunctionException` is now `FunctionsException` and
`FunctionResponse` is now `FunctionsResponse`, so every public type
shares the `Functions` prefix of `FunctionsClient`,
`FunctionsApiException`, `FunctionsFetchException` and
`FunctionsRelayException`.
- **Response headers.** `FunctionsResponse.headers` exposes the response
headers, on streamed responses too.
- **Region.** `region` on `invoke()`, `FunctionsClient` and
`FunctionsClientOptions` takes a `FunctionsRegion` instead of a
`String`. It has one constant per region that supabase-js
`FunctionRegion` lists, `FunctionsRegion.any`,
`FunctionsRegion.custom('...')` for regions that have no constant yet,
and `FunctionsRegion.values`. It is an extension type over `String`,
because a Dart enum cannot hold a custom value. A raw string no longer
compiles, so typos cannot reach the server.

## Fixes

- **Query parameters.** `queryParameters` is now `Map<String, Object?>`,
so `Map<String, dynamic>` still works. Values are sent as `toString()`,
a `DateTime` in ISO 8601, an `Iterable` as one parameter per element,
and `null` is dropped. Before, `{'page': 2}` threw a `_TypeError`.
- **JSON decoding.** `application/json` and every `+json` type
(`application/problem+json`, `application/vnd.api+json`, and so on) are
decoded, on both success and error responses. An empty JSON body is
`null` instead of `""`.
- **Errors stay in `FunctionsException`.** A body the codec cannot
encode, and a multipart `body` that is not a map of strings, now throw a
`FunctionsFetchException` before anything is sent. Before, release
builds got a `JsonUnsupportedObjectError` or a cast `TypeError`. A
successful response whose body is not valid JSON or UTF... (continued)

65 of 67 new or added lines in 3 files covered. (97.01%)

11668 of 12624 relevant lines covered (92.43%)

6.14 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
77.78
-5.56% packages/supabase_functions/lib/src/types.dart
Jobs
ID Job ID Ran Files Coverage
3 iceberg - 39972307761.3 23 Oct 2026 02:47PM UTC 6
77.18
GitHub Action Run
4 supabase_functions - 39972307761.4 23 Oct 2026 02:47PM UTC 4
93.87
GitHub Action Run
5 supabase_realtime - 39972307761.5 23 Oct 2026 02:49PM UTC 14
91.69
GitHub Action Run
6 supabase_flutter - 39972307761.6 23 Oct 2026 02:48PM UTC 16
80.58
GitHub Action Run
7 supabase_test - 39972307761.7 23 Oct 2026 02:47PM UTC 9
92.31
GitHub Action Run
8 supabase_auth - 39972307761.8 23 Oct 2026 02:51PM UTC 34
94.05
GitHub Action Run
9 postgrest - 39972307761.9 23 Oct 2026 02:50PM UTC 29
92.41
GitHub Action Run
10 supabase_typegen - 39972307761.10 23 Oct 2026 02:49PM UTC 6
94.46
GitHub Action Run
11 supabase_storage - 39972307761.11 23 Oct 2026 02:50PM UTC 10
96.51
GitHub Action Run
12 supabase - 39972307761.12 23 Oct 2026 02:52PM UTC 20
93.84
GitHub Action Run
10 supabase_common - 39964796217.10 23 Oct 2026 01:53PM UTC 36
94.12
GitHub Action Run
3 yet_another_json_isolate - 39964796217.3 23 Oct 2026 01:53PM UTC 1
98.68
GitHub Action Run
Source Files on build 39972307761
  • Tree
  • List 185
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39972307761
  • 48bb86ad on github
  • Prev Build on main (#39969092550)
  • Next Build on main (#39974612774)
  • 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