Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#1715·node-http-proxy

Deprecation: replace util._extend usage with Object.assign (DEP0060)

Author: albert-raphaelCreated Dec 27, 2025Updated Jan 16, 2026

Node.js now deprecates util._extend (DEP0060). I observed this deprecation when running a dev server that depends on http-proxy (via webpack-dev-server/http-proxy-middleware). The minimal fix is to replace occurrences of util._extend(...) with Object.assign(...).

Steps to reproduce:

  1. Create a small project that uses http-proxy (or http-proxy-middleware with webpack-dev-server).
  2. Start the dev server with Node 24+ or use --trace-deprecation and observe DEP0060 pointing to http-proxy's use of util._extend.

Suggested patch: replace util._extend( with Object.assign( in lib/http-proxy/index.js. This is backwards-compatible in all supported Node.js versions.

I can open a small PR with a one-line replacement plus a test if you want — let me know if you'd prefer a PR or if there are other constraints to follow for this change.

Source: http-party/node-http-proxy

View original on GitHubView discussion on GitHub