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

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

Build:
Build:
LAST BUILD BRANCH: restore-cjs-support
DEFAULT BRANCH: master
Repo Added 21 Feb 2016 12:00AM UTC
Files 2
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

LAST BUILD ON BRANCH restore-cjs-support
branch: restore-cjs-support
CHANGE BRANCH
x
Reset
  • restore-cjs-support
  • actions-up
  • coveralls-main-only
  • dependabot/npm_and_yarn/minimatch-3.1.5
  • gh-ci
  • master
  • no-old-node
  • prepend-missing-scheme
  • use-url
  • v0.1.1
  • v1.0.0
  • v1.1.0
  • v2.0.0

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

Relevant lines Covered
Build:
Build:
537 RELEVANT LINES 537 COVERED LINES
65.32 HITS PER LINE
Source Files on restore-cjs-support
  • Tree
  • List 2
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
22623984828 restore-cjs-support 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 go... Pull #38 03 Mar 2026 12:56PM UTC Rob--W github
100.0
22602950278 restore-cjs-support Merge f3b0439a3 into f4d1be891 Pull #38 03 Mar 2026 12:50AM UTC web-flow github
100.0
22602853457 restore-cjs-support 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 go... push 03 Mar 2026 12:47AM UTC Rob--W github
100.0
22601672661 restore-cjs-support Restore CJS support index.cjs is a copy of index.cjs, except using CJS exports instead of ESM exports. These files should be kept in sync until we drop CJS support again. push 03 Mar 2026 12:06AM UTC Rob--W github
100.0
See All Builds (47)
  • Repo on GitHub
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