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

supabase / supabase-swift / 44344814752
96%

Build:
DEFAULT BRANCH: main
Ran 18 Nov 2026 04:33PM UTC
Jobs 1
Files 224
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

18 Nov 2026 04:14PM UTC coverage: 96.191% (+0.002%) from 96.189%
44344814752

push

github

web-flow
fix(postgrest): apply the configured coders on the typed path (#1861)

* fix(postgrest): apply the configured coders on the typed path

The typed API (`from(Todo.self)`, typed `rpc(_:)`) encoded and decoded with
fixed `JSONEncoder.supabase()` / `JSONDecoder.supabase()` instances, so a custom
date strategy or `userInfo` set on `Configuration.encoder` / `.decoder` applied
to the untyped builders only.

The typed path now uses the configured coders. The one setting it still
ignores is the key strategy: typed column names come from `CodingKeys` and
from the keys of the encoded body, and a key strategy would rename them. When
a coder sets one, the typed path uses a copy with every other setting kept.

* refactor(postgrest): decode typed rows lazily and drop the unused fixed encoder

* fix(supabase): decode typed Realtime rows with the database decoder

`postgresChanges(of:)` on a relation type decoded each row with a fixed
`JSONDecoder.supabase()`, so a row could decode one way from a typed query and
another way from a change. `SupabaseClient` now hands its database decoder,
without its key strategy, to the Realtime client, and the typed stream uses it
when the call passes no decoder. A standalone `RealtimeClient` keeps the old
default.

The key-strategy copy moves to `Helpers` as `ignoringKeyStrategy()`, so the
typed query path and the Realtime path share one rule.

* fix(supabase): decode live query change rows with the database decoder

The first fetch of a live query decodes with the configured database
decoder, but the change rows used the fixed default. Decode both with the
typed row decoder so a date strategy applies to every row.

* fix(supabase): read the typed Realtime and RPC decoders when they decode

SupabaseClient now stores the database decoder itself as the Realtime
typed row decoder. Readers drop its key strategy when they read it, so a
later change to the decoder reaches change rows, as it reaches queries.
The typed RPC path also reads it... (continued)

46 of 46 new or added lines in 9 files covered. (100.0%)

4 existing lines in 1 file now uncovered.

16539 of 17194 relevant lines covered (96.19%)

495065.97 hits per line

Coverage Regressions

Lines Coverage ∆ File
4
90.88
-1.3% Sources/Realtime/Transport/URLSessionWebSocketTransport.swift
Jobs
ID Job ID Ran Files Coverage
1 44344814752.1 18 Nov 2026 04:33PM UTC 224
96.19
GitHub Action Run
Source Files on build 44344814752
  • Tree
  • List 224
  • Changed 13
  • Source Changed 11
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #44344814752
  • 5e06f5b0 on github
  • Prev Build on main (#44344158464)
  • Next Build on main (#44363262766)
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