Skip to content

Commit bd5393f

Browse files
committed
add reason for url.resolve deprecation
1 parent d80ff13 commit bd5393f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/api/url.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1839,7 +1839,7 @@ changes:
18391839
18401840
`url.format(urlString)` is shorthand for `url.format(url.parse(urlString))`.
18411841
1842-
Because it invokes the deprecated [`url.parse()`][], passing a string argument
1842+
Because it invokes the deprecated [`url.parse()`][] internally, passing a string argument
18431843
to `url.format()` is itself deprecated.
18441844
18451845
Canonicalizing a URL string can be performed using the WHATWG URL API, by
@@ -1988,6 +1988,8 @@ changes:
19881988
* `from` {string} The base URL to use if `to` is a relative URL.
19891989
* `to` {string} The target URL to resolve.
19901990
1991+
Because it invokes the deprecated [`url.parse()`][] internally, `url.resolve()` is itself deprecated.
1992+
19911993
The `url.resolve()` method resolves a target URL relative to a base URL in a
19921994
manner similar to that of a web browser resolving an anchor tag.
19931995

0 commit comments

Comments
 (0)