File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -3441,6 +3441,10 @@ Node-API callbacks.
34413441
34423442<!-- YAML
34433443changes:
3444+ - version:
3445+ - REPLACEME
3446+ pr-url: https://github.com/nodejs/node/pull/55017
3447+ description: Runtime deprecation.
34443448 - version:
34453449 - v19.9.0
34463450 - v18.17.0
@@ -3453,7 +3457,7 @@ changes:
34533457 description: Documentation-only deprecation.
34543458-->
34553459
3456- Type: Documentation-only (supports [ ` --pending-deprecation ` ] [ ] )
3460+ Type: Runtime
34573461
34583462[ ` url.parse() ` ] [ ] behavior is not standardized and prone to errors that
34593463have security implications. Use the [ WHATWG URL API] [ ] instead. CVEs are not
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ const {
4545
4646// This ensures setURLConstructor() is called before the native
4747// URL::ToObject() method is used.
48- const { spliceOne } = require ( 'internal/util' ) ;
48+ const { isInsideNodeModules , spliceOne } = require ( 'internal/util' ) ;
4949
5050// WHATWG URL implementation provided by internal/url
5151const {
@@ -125,7 +125,7 @@ const {
125125let urlParseWarned = false ;
126126
127127function urlParse ( url , parseQueryString , slashesDenoteHost ) {
128- if ( ! urlParseWarned && getOptionValue ( '--pending-deprecation' ) ) {
128+ if ( ! urlParseWarned && isInsideNodeModules ( ) ) {
129129 urlParseWarned = true ;
130130 process . emitWarning (
131131 '`url.parse()` behavior is not standardized and prone to ' +
You can’t perform that action at this time.
0 commit comments