# What changed in proxy-from-env

> 4 changes in proxy-from-env 2 from its official release notes, upgrade guides and advisories: 3 breaking. Each one cited. Sources checked 2026-10-18. HTML: https://unstale.sh/npm/proxy-from-env/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## proxy-from-env 2

### Breaking changes

- The package switches from CJS to ESM; `import` requires Node.js v12.17.0 or later, while `require` requires Node.js v20.19.0 or later. (2.0.0) — [release notes](https://github.com/Rob--W/proxy-from-env/releases/tag/v2.0.0)
- Invalid URL inputs may now return an empty string instead of a proxy URL because strings are parsed with the WHATWG URL constructor. (2.0.0) — [release notes](https://github.com/Rob--W/proxy-from-env/releases/tag/v2.0.0)
- Detection of `npm_config_`-prefixed environment variables is dropped, reverting behavior to version 1.0.0. (2.0.0) — [release notes](https://github.com/Rob--W/proxy-from-env/releases/tag/v2.0.0)

### Behavior and default changes

- Supports older Node.js versions, as old as Node v10.0.0. (2.1.0) — [release notes](https://github.com/Rob--W/proxy-from-env/releases/tag/v2.1.0)
