fix(core): resolve DEP0040 punycode deprecation via patch-package (#17692)

Co-authored-by: Adib234 <30782825+Adib234@users.noreply.github.com>
This commit is contained in:
Atharva Ralegankar
2026-01-29 21:34:26 +05:30
committed by GitHub
parent f9da18e0cc
commit ac7687c1dd
3 changed files with 252 additions and 27 deletions
+11
View File
@@ -0,0 +1,11 @@
diff --git a/node_modules/whatwg-url/lib/url-state-machine.js b/node_modules/whatwg-url/lib/url-state-machine.js
index 27d977a..2f5633a 100644
--- a/node_modules/whatwg-url/lib/url-state-machine.js
+++ b/node_modules/whatwg-url/lib/url-state-machine.js
@@ -1,5 +1,5 @@
"use strict";
-const punycode = require("punycode");
+const punycode = require("punycode/"); // Trailing slash ensures userland package usage
const tr46 = require("tr46");
const specialSchemes = {