npm / request-filtering-agent
request-filtering-agent
What changed in request-filtering-agent 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-21.
6 breaking2 behavior and defaults1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initrequest-filtering-agent 35 changes
Breaking changes 3
Literal private-IP validation now reports errors through the socket/callback path instead of throwing synchronously, so HTTP and HTTPS requests emit request.on("error").
The package changes from CommonJS to ESM, affecting how developers import it.
Node.js 20 or later is required; Node.js 14, 16, and 18 are no longer supported.
Behavior and default changes 2
denyIPAddressList now supports CIDR notation.
allowIPAddressList now supports CIDR notation for specifying allowed IP addresses.
request-filtering-agent 24 changes
Breaking changes 3
Removes the applyRequestFilter(agent) function because it is incompatible with Node.js 20+.
Supports Node.js 18 and 20, and drops support for Node.js 12, 14, and 16.
Removes this duplicated option because the redirect attack pattern is already blocked.
Fixes and other changes 1
Fixes an error on Node.js 20+ caused by incompatible use of Node.js internals.