v2.0.0
What's Changed
-
Remove
url.parseusage to avoid DEP0169 DeprecationWarning (#30). -
Use WHATWG
URLconstructor to parse strings instead ofurl.parse.
This may causegetProxyForUrlto return an empty string instead of
a proxy URL when the input is an invalid URL. -
Switch from CJS to ESM. When
importsyntax is used, the minimum
compatible Node.js version is v12.17.0. Whenrequireis used, the
minimum compatible Node.js version is v20.19.0, because that version
introducedrequire(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