# What changed in request-filtering-agent

> 9 changes in request-filtering-agent 2 to 3 from its official release notes, upgrade guides and advisories: 6 breaking. Each one cited. Sources checked 2026-11-21. HTML: https://unstale.sh/npm/request-filtering-agent/

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

## request-filtering-agent 3

### Breaking changes

- 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"). (3.2.1) — [release notes](https://github.com/azu/request-filtering-agent/releases/tag/v3.2.1), [security advisory](https://github.com/advisories/GHSA-R3R9-WP5J-PQ5G)
- The package changes from CommonJS to ESM, affecting how developers import it. (3.0.0) — [release notes](https://github.com/azu/request-filtering-agent/releases/tag/v3.0.0)
- Node.js 20 or later is required; Node.js 14, 16, and 18 are no longer supported. (3.0.0) — [release notes](https://github.com/azu/request-filtering-agent/releases/tag/v3.0.0)

### Behavior and default changes

- denyIPAddressList now supports CIDR notation. (3.2.0) — [release notes](https://github.com/azu/request-filtering-agent/releases/tag/v3.2.0)
- allowIPAddressList now supports CIDR notation for specifying allowed IP addresses. (3.1.0) — [release notes](https://github.com/azu/request-filtering-agent/releases/tag/v3.1.0)

## request-filtering-agent 2

### Breaking changes

- Removes the applyRequestFilter(agent) function because it is incompatible with Node.js 20+. (2.0.0) — [release notes](https://github.com/azu/request-filtering-agent/releases/tag/v2.0.0)
- Supports Node.js 18 and 20, and drops support for Node.js 12, 14, and 16. (2.0.0) — [release notes](https://github.com/azu/request-filtering-agent/releases/tag/v2.0.0)
- Removes this duplicated option because the redirect attack pattern is already blocked. (2.0.0) — [release notes](https://github.com/azu/request-filtering-agent/releases/tag/v2.0.0)

### Fixes and other changes

- Fixes an error on Node.js 20+ caused by incompatible use of Node.js internals. (2.0.0) — [release notes](https://github.com/azu/request-filtering-agent/releases/tag/v2.0.0)
