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

Rob--W / proxy-from-env / 22623984828
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: restore-cjs-support
DEFAULT BRANCH: master
Ran 03 Mar 2026 12:56PM UTC
Jobs 4
Files 2
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

03 Mar 2026 12:27PM UTC coverage: 100.0%. Remained the same
22623984828

Pull #38

github

Rob--W
Restore CJS support for Node versions before 20

In 2.0.0 I dropped CJS support because `require(esm)` is supported by
default in v20.19.0, and `import` syntax even works in `v12.17.0`.

Despite anything earlier than 20 being EOL (and 20 itself going EOL next
month - https://nodejs.org/en/about/previous-releases ), some downstream
packages still want to support older Node versions.

This restores CJS support for versions as low as Node 10. Older versions
are unsupported due to the absence of the URL global in older versions.

index.cjs is a copy of index.js, except using CJS exports instead of ESM
exports. These files should be kept in sync until we drop CJS support
again.
Pull Request #38: Restore CJS support for Node versions before 20

72 of 72 branches covered (100.0%)

2 of 2 new or added lines in 1 file covered. (100.0%)

537 of 537 relevant lines covered (100.0%)

65.32 hits per line

Jobs
ID Job ID Ran Files Coverage
1 coverage-node-25 - 22623984828.1 03 Mar 2026 12:56PM UTC 1
100.0
GitHub Action Run
2 coverage-node-22 - 22623984828.2 03 Mar 2026 12:56PM UTC 2
100.0
GitHub Action Run
3 coverage-node-24 - 22623984828.3 03 Mar 2026 12:56PM UTC 1
100.0
GitHub Action Run
4 coverage-node-20 - 22623984828.4 03 Mar 2026 12:56PM UTC 2
100.0
GitHub Action Run
Source Files on build 22623984828
  • Tree
  • List 2
  • 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 #22623984828
  • Pull Request #38
  • PR Base - master (#21811215135)
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