-
Notifications
You must be signed in to change notification settings - Fork 858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecation warning for util._extend
#1017
Comments
Thanks for the report. With semver, when You can just update your package lock file to retrieve updated
http-proxy-middleware/package.json Line 90 in 82aaf0a
Closing this issue You can read more about semver: https://semver.org |
Hello. I am getting "Deprecation warning for util._extend", when using http-proxy-middleware with Express.
My package.json:
My error:
|
http-proxy@1.18.1 is already the latest version, and hasn't been updated for 4 years. And is still using |
@chimurai please reopen this issue again. Facing the same deprecation warning with the lastest version :/ |
@chimurai You can take a look at the vitejs repo. They patched the http-proxy package to solve this issue : vitejs/vite#16655 |
This comment was marked as spam.
This comment was marked as spam.
Getting this issue too.
|
Why was this closed? This is still an issue. You have a dead dependency then called http-proxy which haven't been updated in 5 years. So there wont be any update there. Please replace your dependency to them and fix this issue. Getting this since angular uses http-proxy-middleware as a dependency so can't really be fixed elsewhere. Please reopen. Having the same issue with node 22.11.0 |
There seem to be something in the work here http-party/node-http-proxy#1666 at http-proxy but ye still no release for those tracking this issue . |
Yeah I doubt there will be an updating coming in node-http-proxy any time soon... Best to switch to a fork, write a patch or switch a proxy implementation dependency |
@chimurai see above comments please. |
Checks
http-proxy-middleware
.Describe the bug (be clear and concise)
In Node v22 they started showing a deprecation warning for usage of
util._extend
, which is used in a dependency of this library.There is a PR for that dependency:
Object.assign
instead of deprecatedutil._extend
http-party/node-http-proxy#1666Once that is merged and a new version is released,
http-proxy-middleware
will need to update the dependency to stop receiving the deprecation warning in Node v22+.I'm mainly making this issue to encourage prioritization of the linked PR.
Step-by-step reproduction instructions
Expected behavior (be clear and concise)
No deprecation warnings
How is http-proxy-middleware used in your project?
What http-proxy-middleware configuration are you using?
What OS/version and node/version are you seeing the problem?
Additional context (optional)
No response
The text was updated successfully, but these errors were encountered: