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

supabase / supabase-js / 16799791201
80%

Build:
DEFAULT BRANCH: master
Ran 07 Aug 2025 08:53AM UTC
Jobs 3
Files 7
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

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

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 %.

6 of 7 new or added lines in 1 file covered. (85.71%)

122 of 146 relevant lines covered (83.56%)

34.01 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
94.29
14.29% src/index.ts
Jobs
ID Job ID Ran Files Coverage
1 node-20-ubuntu-latest - 16799791201.1 07 Aug 2025 08:53AM UTC 7
74.8
GitHub Action Run
2 node-20-windows-latest - 16799791201.2 07 Aug 2025 08:53AM UTC 7
74.8
GitHub Action Run
3 node-20-macos-latest - 16799791201.3 07 Aug 2025 08:53AM UTC 7
74.8
GitHub Action Run
Source Files on build 16799791201
  • 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 Repo
  • Github Actions Build #16799791201
  • 4f38a9c0 on github
  • Prev Build on master (#16571216480)
  • Next Build on master (#16799791196)
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

© 2025 Coveralls, Inc