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

supabase / supabase-flutter / 43409785739
94%

Build:
DEFAULT BRANCH: main
Ran 13 Nov 2026 10:33AM UTC
Jobs 12
Files 197
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

13 Nov 2026 10:31AM UTC coverage: 94.417% (+0.02%) from 94.397%
43409785739

push

github

web-flow
refactor!: name the remaining auth and storage serializers fromJson and toJson (#2165)

Most data classes convert with `fromJson` and `toJson`. A few in auth
and storage still used other names, and `User.fromJson` and
`Session.fromJson` were static methods that returned `null` for
incomplete JSON, while every other `fromJson` is a factory that throws a
`FormatException`.

Resolves SDK-3046. The realtime ones were renamed in #2161.

### Changes

**Public API** (breaking)

- `User.fromJson` and `Session.fromJson` are factory constructors
returning a non-null `User` and `Session`. JSON without an `id` or
`access_token` throws a `FormatException` instead of returning `null`.
`rows.map(User.fromJson)` now gives a `List<User>`.
- `UserIdentity.fromMap` is renamed to `UserIdentity.fromJson`.

**Callers that used the `null` result as a probe**

- `AuthResponse.fromJson` and `UserResponse.fromJson` check
`access_token` and `id` themselves, so a sign-up that needs confirmation
still has a user and no session. `AuthResponse.fromJson` no longer
parses the session twice.
- `recoverSession` and the session parser of token responses check
`access_token` before parsing, keeping their
`AuthSessionMissingException`. `recoverSession` throws a
`FormatException` instead of a `TypeError` for a value that is not a
JSON object.
- The web broadcast listener treats a session without an `access_token`
as no session, as before.
- Restoring a persisted session checks `access_token` too, so a value
without one is still removed without a warning.
- `GenerateLinkResponse` and `admin.listUsers()` rely on the factory's
`FormatException` instead of throwing their own.

**Internal**

- `FileSort.toMap` and `ListFilesOptions.toMap` in `supabase_storage`
are renamed to `toJson`.

**Docs**

- `MIGRATION.md` gets a section on the two factories and the
`UserIdentity` rename, listed under "Changes the compiler will not
catch" since a leftover null check only produces an analyzer warning.
"Sto... (continued)

70 of 73 new or added lines in 7 files covered. (95.89%)

1 existing line in 1 file now uncovered.

13259 of 14043 relevant lines covered (94.42%)

7.06 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
93.36
-0.05% packages/supabase_auth/lib/src/auth_client.dart

Coverage Regressions

Lines Coverage ∆ File
1
93.36
-0.05% packages/supabase_auth/lib/src/auth_client.dart
Jobs
ID Job ID Ran Files Coverage
3 supabase_typegen - 43409785739.3 13 Nov 2026 10:34AM UTC 7
95.53
GitHub Action Run
4 postgrest - 43409785739.4 13 Nov 2026 10:34AM UTC 30
93.16
GitHub Action Run
5 supabase_auth - 43409785739.5 13 Nov 2026 10:35AM UTC 33
94.55
GitHub Action Run
6 supabase - 43409785739.6 13 Nov 2026 10:35AM UTC 22
94.56
GitHub Action Run
7 iceberg - 43409785739.7 13 Nov 2026 10:33AM UTC 7
99.72
GitHub Action Run
8 supabase_storage - 43409785739.8 13 Nov 2026 10:34AM UTC 13
95.98
GitHub Action Run
9 supabase_test - 43409785739.9 13 Nov 2026 10:33AM UTC 9
93.83
GitHub Action Run
10 supabase_flutter - 43409785739.10 13 Nov 2026 10:33AM UTC 16
89.16
GitHub Action Run
11 supabase_realtime - 43409785739.11 13 Nov 2026 10:34AM UTC 16
92.23
GitHub Action Run
12 supabase_functions - 43409785739.12 13 Nov 2026 10:33AM UTC 4
94.48
GitHub Action Run
2 yet_another_json_isolate - 43406437180.2 13 Nov 2026 10:06AM UTC 2
98.65
GitHub Action Run
10 supabase_common - 43406437180.10 13 Nov 2026 10:06AM UTC 38
94.41
GitHub Action Run
Source Files on build 43409785739
  • Tree
  • List 197
  • Changed 8
  • Source Changed 8
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43409785739
  • 6efdfb92 on github
  • Prev Build on main (#43406437180)
  • Next Build on main (#43429286010)
  • 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