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

supabase / supabase-swift / 24670072301
81%

Build:
DEFAULT BRANCH: main
Ran 20 Apr 2026 01:59PM UTC
Jobs 1
Files 86
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

20 Apr 2026 01:45PM UTC coverage: 80.3% (-0.1%) from 80.424%
24670072301

push

github

web-flow
fix(storage): make signedURL optional in createSignedURLs response (#958)

When one of the requested paths does not exist, the Storage API returns
`signedURL: null` for that item. The Swift client was crashing with a
decoding error because the response struct had a non-optional `signedURL`.

The backend (`supabase/storage`) guarantees that exactly one of `signedURL`
or `error` is non-null per item — never both, never neither. This makes a
Swift enum the natural representation.

Changes:
- Added `SignedURLResult` enum with `.success(path:signedURL:)` and
  `.failure(path:error:)` cases, exposing only the relevant value per item
- `createSignedURLs` now returns `[SignedURLResult]` (new preferred overload)
- Old `createSignedURLs -> [URL]` overloads kept in Deprecated.swift with
  `@_disfavoredOverload` and a deprecation message; they delegate to the new
  method and `compactMap` out failures so existing callers continue to work
- Private response structs renamed to avoid shadowing public types
- Updated all tests to pattern-match on the enum cases
- Fixed SupabaseStorageTests mock to include the `path` field the API returns

`SignedURL` struct is unchanged — no breaking API changes.

Fixes: SDK-851

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

13 of 27 new or added lines in 2 files covered. (48.15%)

6416 of 7990 relevant lines covered (80.3%)

28.57 hits per line

Uncovered Changes

Lines Coverage ∆ File
14
33.85
-9.29% Sources/Storage/Types.swift
Jobs
ID Job ID Ran Files Coverage
1 24670072301.1 20 Apr 2026 01:59PM UTC 86
80.3
GitHub Action Run
Source Files on build 24670072301
  • Tree
  • List 86
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24670072301
  • 52c44ba9 on github
  • Prev Build on main (#24669336067)
  • Next Build on main (#24671165499)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc