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

supabase / supabase-swift / 44215251806
96%

Build:
DEFAULT BRANCH: main
Ran 18 Nov 2026 01:43AM UTC
Jobs 1
Files 223
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 01:21AM UTC coverage: 96.129% (-0.02%) from 96.153%
44215251806

push

github

web-flow
fix(postgrest): throw from typed readOnly() when arguments are not an object (#1852)

* fix(postgrest): throw from typed readOnly() when arguments are not an object

Typed `readOnly()` reported an issue and silently kept the call as a POST
when the function did not encode as a JSON object, while the untyped
`rpc(_:params:get: true)` threw `.invalidRequest` for the same input.
Both paths now share one check and throw the same error before anything
is sent, so a read-only call never changes its HTTP method behind the
caller's back (postgrest-js keeps GET for `get: true` too).

`readOnly()` is now `throws`. It is part of the experimental typed API,
and existing call sites already use `try` because `rpc(_:)` throws.

* fix(postgrest): keep the arguments on a second readOnly() call

A second `readOnly()` found no body and replaced the query with an empty
one, so the arguments were lost. A call without a body is already
read-only, so `readOnly()` now returns it unchanged.

Also stop parsing a placeholder `{}` body, and make the no-arguments test
check that both queries are empty instead of only equal.

14 of 14 new or added lines in 2 files covered. (100.0%)

4 existing lines in 1 file now uncovered.

16338 of 16996 relevant lines covered (96.13%)

662533.64 hits per line

Coverage Regressions

Lines Coverage ∆ File
4
90.51
-1.36% Sources/Realtime/Transport/URLSessionWebSocketTransport.swift
Jobs
ID Job ID Ran Files Coverage
1 44215251806.1 18 Nov 2026 01:43AM UTC 223
96.13
GitHub Action Run
Source Files on build 44215251806
  • Tree
  • List 223
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #44215251806
  • 2c5b4f2f on github
  • Prev Build on main (#44214065205)
  • Next Build on main (#44274069207)
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