Skip to content

Commit 181ba95

Browse files
aduh95Derek Lewis
authored andcommitted
doc: add deprecated badge to legacy URL methods
PR-URL: #34931 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Guy Bedford <[email protected]>
1 parent 441c03d commit 181ba95

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

doc/api/url.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,8 +1024,9 @@ pathToFileURL('/some/path%.c'); // Correct: file:///some/path%25.c (POSIX)
10241024
```
10251025

10261026
## Legacy URL API
1027-
1028-
> Stability: 0 - Deprecated: Use the WHATWG URL API instead.
1027+
<!-- YAML
1028+
deprecated: v11.0.0
1029+
-->
10291030

10301031
### Legacy `urlObject`
10311032
<!-- YAML
@@ -1035,6 +1036,8 @@ changes:
10351036
description: The Legacy URL API is deprecated. Use the WHATWG URL API.
10361037
-->
10371038

1039+
> Stability: 0 - Deprecated: Use the WHATWG URL API instead.
1040+
10381041
The legacy `urlObject` (`require('url').Url`) is created and returned by the
10391042
`url.parse()` function.
10401043

@@ -1150,6 +1153,8 @@ changes:
11501153
times.
11511154
-->
11521155

1156+
> Stability: 0 - Deprecated: Use the WHATWG URL API instead.
1157+
11531158
* `urlObject` {Object|string} A URL object (as returned by `url.parse()` or
11541159
constructed otherwise). If a string, it is converted to an object by passing
11551160
it to `url.parse()`.
@@ -1244,6 +1249,8 @@ changes:
12441249
when no query string is present.
12451250
-->
12461251

1252+
> Stability: 0 - Deprecated: Use the WHATWG URL API instead.
1253+
12471254
* `urlString` {string} The URL string to parse.
12481255
* `parseQueryString` {boolean} If `true`, the `query` property will always
12491256
be set to an object returned by the [`querystring`][] module's `parse()`
@@ -1288,6 +1295,8 @@ changes:
12881295
contains a hostname.
12891296
-->
12901297

1298+
> Stability: 0 - Deprecated: Use the WHATWG URL API instead.
1299+
12911300
* `from` {string} The Base URL being resolved against.
12921301
* `to` {string} The HREF URL being resolved.
12931302

0 commit comments

Comments
 (0)