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

supabase / supabase-swift / 42634032946
96%

Build:
DEFAULT BRANCH: main
Ran 09 Nov 2026 02:31PM UTC
Jobs 1
Files 219
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

09 Nov 2026 02:22PM UTC coverage: 95.983% (+0.03%) from 95.95%
42634032946

push

github

web-flow
feat!: throw from client initializers on an invalid configuration (#1762)

* feat!: throw from client initializers on an invalid configuration

SupabaseClient, StorageClient and FunctionsClient now throw instead of
trapping when the URL has no host. A server that builds clients from
per-tenant configuration can catch the error instead of crashing the
process.

- Add SupabaseClientError with the invalidConfiguration kind.
- Add the invalidConfiguration kind to StorageError and FunctionsError.
- Update CODE_STYLE.md: public initializers throw on bad configuration;
  only internal invariants trap.
- Add migration entries, update docs, examples and tests to use try.
- Add the server-side Swift design doc.

BREAKING CHANGE: SupabaseClient.init, StorageClient.init(configuration:)
and FunctionsClient.init(configuration:) are now throwing. Add `try` at
each call site.

* test: add try to the initializer calls main added

* chore: remove the server-side design doc from the repository

* feat!: throw from the Auth, PostgREST and Realtime client initializers too

Every client initializer now throws its module error with kind
invalidConfiguration when the URL has no scheme or no host. The check is
shared in Helpers (URL.hasSchemeAndHost). swift-http-types traps when it
builds a request from a URL with no scheme, so a client must not accept one.

BREAKING CHANGE: AuthClient.init(configuration:), PostgrestClient.init(configuration:),
PostgrestClient.init(url:...) and RealtimeClient.init(url:options:) are now
throwing. Add try at each call site.

* fix: allow the checked force-try calls in the format lint and fix a stale doc link

swift-format's NeverUseForceTry rule rejected the `try!` calls that build
SupabaseClient's sub-clients and the example apps' fixed-URL clients. Each
call now has a `swift-format-ignore: NeverUseForceTry` comment.

SupabaseClientError pointed at `init(supabaseURL:supabaseKey:options:)`,
which no longer exists, so the DocC build failed.

88 of 95 new or added lines in 10 files covered. (92.63%)

15673 of 16329 relevant lines covered (95.98%)

520300.43 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
97.95
-0.64% Sources/Storage/StorageAPI.swift
3
96.02
-0.6% Sources/Storage/StorageRequests.swift
1
93.33
Sources/Supabase/SupabaseClientError.swift
Jobs
ID Job ID Ran Files Coverage
1 42634032946.1 09 Nov 2026 02:31PM UTC 219
95.98
GitHub Action Run
Source Files on build 42634032946
  • Tree
  • List 219
  • Changed 19
  • Source Changed 19
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42634032946
  • 1e9e416a on github
  • Prev Build on main (#42625506993)
  • Next Build on main (#42641763344)
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