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

supabase / supabase-js / 16799791201 / 3
96%
master: 96%

Build:
DEFAULT BRANCH: master
Ran 07 Aug 2025 08:53AM UTC
Files 7
Run time 0s
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

07 Aug 2025 08:52AM UTC coverage: 74.8% (+2.1%) from 72.653%
16799791201.3

push

github

web-flow
fix: avoid Next.js Edge Runtime warnings in Node.js deprecation check (#1520)

* fix: avoid Next.js Edge Runtime warnings in Node.js deprecation check

Use dynamic property access for process.version to prevent Next.js static
analysis from flagging the code as incompatible with Edge Runtime.

The deprecation warning logic remains unchanged - it only runs in actual
Node.js environments and is properly guarded against Edge Runtime execution.

Fixes #1515

* fix: restore undefined and null checks for process.version

Maintain the original defensive programming checks while still using
dynamic property access to avoid Edge Runtime warnings

* test: add comprehensive tests for Node.js deprecation warning

- Test browser environment detection
- Test Edge Runtime compatibility (no process object)
- Test various process.version states (undefined, null, invalid)
- Test version detection for Node.js 16, 18, 20, 22
- Test invalid version format handling

* fix: update deprecation tests to work with TypeScript isolatedModules

- Add export {} to make file a module
- Remove problematic test for undefined process (dependencies require it)
- Add comment explaining why Edge Runtime scenario is hard to test in Node

* test: eliminate TTYWRAP warnings in deprecation tests

Use Object.defineProperty to mock only process.version instead of
spreading the entire process object. This avoids copying TTY handles
and other complex properties that cause Jest warnings.

65 of 104 branches covered (62.5%)

Branch coverage included in aggregate %.

122 of 146 relevant lines covered (83.56%)

11.34 hits per line

Source Files on job node-20-macos-latest - 16799791201.3
  • Tree
  • List 7
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 16799791201
  • 4f38a9c0 on github
  • Prev Job for on master (#16571216480.3)
  • Next Job for on master (#16799791196.2)
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