• 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: SELECT
CHANGE BRANCH
x
  • No branch selected
  • actions-up
  • coveralls-main-only
  • dependabot/npm_and_yarn/minimatch-3.1.5
  • gh-ci
  • master
  • no-old-node
  • prepend-missing-scheme
  • restore-cjs-support
  • 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 master
  • 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
22513033922 dependabot/npm_and_yarn/minimatch-3.1.5 Bump minimatch from 3.1.2 to 3.1.5 Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.1.2 to 3.1.5. - [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md) - [Commits](https://github.com/isaacs/minimatch/compare/v3.1.... Pull #37 28 Feb 2026 04:09AM UTC web-flow github
100.0
21811215135 master 2.0.0 - Remove `url.parse` usage to avoid DEP0169 DeprecationWarning (#30). - Use WHATWG `URL` constructor to parse strings instead of `url.parse`. This may cause `getProxyForUrl` to return an empty string instead of a proxy URL when the inp... push 09 Feb 2026 03:21AM UTC Rob--W github
100.0
21811215130 v2.0.0 2.0.0 - Remove `url.parse` usage to avoid DEP0169 DeprecationWarning (#30). - Use WHATWG `URL` constructor to parse strings instead of `url.parse`. This may cause `getProxyForUrl` to return an empty string instead of a proxy URL when the inp... push 09 Feb 2026 03:21AM UTC Rob--W github
100.0
21808123573 master Replace url.parse with WHATWG URL API Fixes #4 Fixes #30 push 09 Feb 2026 12:20AM UTC Rob--W github
100.0
21807432422 master test: simplify testProxyUrl When the test was authored, assertion messages used to be too verbose and confusing without context. Nowadays, the built-in `node --test ./test.js` call prints the title of the test that had run (declared with `it`) a... push 08 Feb 2026 11:32PM UTC Rob--W github
100.0
21345883438 master CI: Run tests with all supported Node.js versions And also fix up mistake from b67a31e03 that prevented tests from running at all due to the removed test-old-node / test-recent-node jobs (replaced by one test-node). push 26 Jan 2026 04:03AM UTC Rob--W github
98.56
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