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

supabase / supabase-swift / 43185608779
96%

Build:
DEFAULT BRANCH: main
Ran 12 Nov 2026 08:54AM 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

12 Nov 2026 08:45AM UTC coverage: 96.165% (+0.03%) from 96.134%
43185608779

push

github

web-flow
refactor(helpers)!: keep a JSON number's exact digits in JSONValue (#1790)

* refactor(helpers)!: JSONValue keeps a JSON number's exact digits

JSONValue had `.integer(Int)` and `.double(Double)`. A number that neither
type holds exactly lost digits, and decoding `12345678901234567.89` as `Int`
silently cut off the fraction.

`JSONValue` now has one `.number(JSONNumber)` case. `JSONNumber` stores the
canonical decimal digits and an exponent, and has exact `intValue` and
`decimalValue` accessors and a nearest `doubleValue`. Decoding reads a
`Decimal` first (up to 38 significant digits). Encoding writes the first
exact type of `Int64`, `UInt64`, `Double`, and `Decimal`.

BREAKING CHANGE: `JSONValue.integer` and `JSONValue.double` are replaced by
`JSONValue.number(JSONNumber)`. `1 == 1.0`, `doubleValue` returns a value for
integers, and `value` can return a `Decimal`. See V3_MIGRATION.md.

Fixes SDK-2969

* test(helpers): cover JSONNumber exponent limits, non-number decode, and the Double fallback

* test(helpers): cover the Bool and Double fast paths of JSONValue(_:)

238 of 240 new or added lines in 7 files covered. (99.17%)

3 existing lines in 1 file now uncovered.

16147 of 16791 relevant lines covered (96.16%)

676115.01 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
99.42
Sources/Helpers/JSONValue/JSONNumber.swift
1
94.87
0.0% Sources/Helpers/JSONValue/JSONValue+Codable.swift

Coverage Regressions

Lines Coverage ∆ File
3
97.52
-2.48% Sources/Helpers/JSONValue/JSONValue.swift
Jobs
ID Job ID Ran Files Coverage
1 43185608779.1 12 Nov 2026 08:54AM UTC 219
96.16
GitHub Action Run
Source Files on build 43185608779
  • Tree
  • List 219
  • Changed 7
  • Source Changed 6
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43185608779
  • 1cd45114 on github
  • Prev Build on main (#43001974653)
  • Next Build on main (#43190590020)
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