npm / proxy-from-env
proxy-from-env
What changed in proxy-from-env 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
3 breaking1 behavior and defaults
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initproxy-from-env 24 changes
Breaking changes 3
The package switches from CJS to ESM;
importrequires Node.js v12.17.0 or later, whilerequirerequires Node.js v20.19.0 or later.Invalid URL inputs may now return an empty string instead of a proxy URL because strings are parsed with the WHATWG URL constructor.
Detection of
npm_config_-prefixed environment variables is dropped, reverting behavior to version 1.0.0.
Behavior and default changes 1
Supports older Node.js versions, as old as Node v10.0.0.