util._extend is deprecated
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- javascript, node.js
- Bereich
- networking
Rechercherichtung
Überprüfe lib/http-proxy/common.js und lib/http-proxy/index.js, beginnend mit ihren util._extend-Imports und der Deprecation-Warnung von Node 22. Verifiziere die betroffenen Proxy-Pfade unter Node 22 und bestätige, dass die Warnung nicht mehr ausgegeben wird, während das bestehende Verhalten unverändert bleibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch [email protected] for the project I'm working on.
Node 22 reports:
(node:37843) [DEP0060] DeprecationWarning: The
util._extendAPI is deprecated. Please use Object.assign() instead.
Here is the diff that solved my problem:
diff --git a/node_modules/http-proxy/lib/http-proxy/common.js b/node_modules/http-proxy/lib/http-proxy/common.js
index 6513e81..0555e80 100644
--- a/node_modules/http-proxy/lib/http-proxy/common.js
+++ b/node_modules/http-proxy/lib/http-proxy/common.js
@@ -1,6 +1,6 @@
var common = exports,
url = require('url'),
- extend = require('util')._extend,
+ extend = Object.assign,
required = require('requires-port');
var upgradeHeader = /(^|,)\s*upgrade\s*($|,)/i,
diff --git a/node_modules/http-proxy/lib/http-proxy/index.js b/node_modules/http-proxy/lib/http-proxy/index.js
index 977a4b3..739409c 100644
--- a/node_modules/http-proxy/lib/http-proxy/index.js
+++ b/node_modules/http-proxy/lib/http-proxy/index.js
@@ -1,5 +1,5 @@
var httpProxy = module.exports,
- extend = require('util')._extend,
+ extend = Object.assign,
parse_url = require('url').parse,
EE3 = require('eventemitter3'),
http = require('http'),
This issue body was partially generated by patch-package.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 14.1k
- Forks
- 2k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus http-party/node-http-proxy
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
http-party/node-http-proxy#1719 ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 72/100
http-party/node-http-proxy#1721 · 1 Kommentar ·
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 55/100
http-party/node-http-proxy#1715 · 1 Kommentar · 5 Reaktionen ·
-
Is this library is dead?Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 15/100
http-party/node-http-proxy#1711 · 2 Kommentare ·
-
HTTP3 + QUIC support?Offen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
http-party/node-http-proxy#1710 · 5 Reaktionen ·
Alle Issues in http-party/node-http-proxy
Ähnliche Issues
-
needs verification
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 7 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
awesome-dsh-plugin/awesome-dsh-plugin#14322 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
swc-project/swc-ai-issues#414 ·
-
[workshop-sim] Repair: Make Copilot access and billing path decision self-contained in Steps 07/07dOffenfeedback simulation workshop
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
githubnext/gh-aw-workshop#5597 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug]: v0.1.61 fails to initialize preload script due to system memory information error on LinuxOffenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
CommandCodeAI/desktop#167 ·