Skip to content

v2.0.0

Choose a tag to compare

@Rob--W Rob--W released this 09 Feb 03:25
· 4 commits to master since this release

What's Changed

  • 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 input is an invalid URL.

  • Switch from CJS to ESM. When import syntax is used, the minimum
    compatible Node.js version is v12.17.0. When require is used, the
    minimum compatible Node.js version is v20.19.0, because that version
    introduced require(esm) support.

  • Drop detection of npm_config_-prefixed environment variables, which
    was introduced in 1.1.0. Now the behavior is back to version 1.0.0.
    This should not affect users in practice, because the npn ecosystem
    dropped support for these environment variables many years ago (#13).

Full Changelog: v1.1.0...v2.0.0