Pac-proxy-agent has a new version, 7.2.0, released on February 18, 2025, succeeding version 7.1.0 released on December 7, 2024. Both versions serve the same core purpose: providing an http.Agent implementation for HTTP requests using Proxy Auto-Configuration (PAC) files. This enables developers to easily route requests through proxies defined in PAC files, offering flexibility in network configurations.
The primary notable difference lies in the dist section. Version 7.2.0 indicates an "unpackedSize" of 33599 bytes, subtly smaller than version 7.1.0's 33649 bytes – suggesting minor optimizations or changes in the packaged files that constitute a size reduction of 50 bytes. In practice, this size change isn't significant for most use cases. The file count stays the same. A more important and useful difference is releaseDate as this allows you to check if the version you are using is too old or not.
Both versions share the same dependencies and devDependencies. For developers relying on pac-proxy-agent, the core functionality remains consistent between these two versions. Existing code utilizing version 7.1.0 should function seamlessly with version 7.2.0, without the requirement of major code rewrite or changes. The library supports various proxy types through its dependencies, including HTTP, HTTPS, and SOCKS proxies, managed by http-proxy-agent, https-proxy-agent, and socks-proxy-agent respectively. It utilizes @tootallnate/quickjs-emscripten to execute javascript code from the PAC file. This facilitates dynamic proxy resolution based on the PAC file's logic. It also depends on several libraries that allows it to get the content of the PAC file (get-uri), debug the library (debug).
The are not vulnerabilities for the version 7.2.0 of the package pac-proxy-agent