Skip to content

Commit 0ac7d54

Browse files
aduh95richardlau
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 577978a commit 0ac7d54

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

doc/api/url.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -1006,8 +1006,9 @@ pathToFileURL('/some/path%.c'); // Correct: file:///some/path%25.c (POSIX)
10061006
```
10071007

10081008
## Legacy URL API
1009-
1010-
> Stability: 0 - Deprecated: Use the WHATWG URL API instead.
1009+
<!-- YAML
1010+
deprecated: v11.0.0
1011+
-->
10111012

10121013
### Legacy `urlObject`
10131014
<!-- YAML
@@ -1017,6 +1018,8 @@ changes:
10171018
description: The Legacy URL API is deprecated. Use the WHATWG URL API.
10181019
-->
10191020

1021+
> Stability: 0 - Deprecated: Use the WHATWG URL API instead.
1022+
10201023
The legacy `urlObject` (`require('url').Url`) is created and returned by the
10211024
`url.parse()` function.
10221025

@@ -1132,6 +1135,8 @@ changes:
11321135
times.
11331136
-->
11341137

1138+
> Stability: 0 - Deprecated: Use the WHATWG URL API instead.
1139+
11351140
* `urlObject` {Object|string} A URL object (as returned by `url.parse()` or
11361141
constructed otherwise). If a string, it is converted to an object by passing
11371142
it to `url.parse()`.
@@ -1226,6 +1231,8 @@ changes:
12261231
when no query string is present.
12271232
-->
12281233

1234+
> Stability: 0 - Deprecated: Use the WHATWG URL API instead.
1235+
12291236
* `urlString` {string} The URL string to parse.
12301237
* `parseQueryString` {boolean} If `true`, the `query` property will always
12311238
be set to an object returned by the [`querystring`][] module's `parse()`
@@ -1270,6 +1277,8 @@ changes:
12701277
contains a hostname.
12711278
-->
12721279

1280+
> Stability: 0 - Deprecated: Use the WHATWG URL API instead.
1281+
12731282
* `from` {string} The Base URL being resolved against.
12741283
* `to` {string} The HREF URL being resolved.
12751284

0 commit comments

Comments
 (0)