Skip to content

Commit 3a762c1

Browse files
committed
doc: revoke deprecation of legacy url, change status to legacy
Signed-off-by: James M Snell <jasnell@gmail.com> Fixes: nodejs#25099
1 parent f4d3377 commit 3a762c1

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

doc/api/deprecations.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -2172,12 +2172,15 @@ future release.
21722172
### DEP0116: Legacy URL API
21732173
<!-- YAML
21742174
changes:
2175+
- version: REPLACEME
2176+
pr-url: https://github.com/nodejs/node/pull/37784
2177+
description: Deprecation revoked. Status changed to "Legacy".
21752178
- version: v11.0.0
21762179
pr-url: https://github.com/nodejs/node/pull/22715
21772180
description: Documentation-only deprecation.
21782181
-->
21792182

2180-
Type: Documentation-only
2183+
Type: Deprecation revoked
21812184

21822185
The [Legacy URL API][] is deprecated. This includes [`url.format()`][],
21832186
[`url.parse()`][], [`url.resolve()`][], and the [legacy `urlObject`][]. Please

doc/api/url.md

+13-5
Original file line numberDiff line numberDiff line change
@@ -1075,9 +1075,17 @@ console.log(urlToHttpOptions(myUrl));
10751075

10761076
## Legacy URL API
10771077
<!-- YAML
1078-
deprecated: v11.0.0
1078+
changes:
1079+
- version: REPLACEME
1080+
pr-url: https://github.com/nodejs/node/pull/37784
1081+
description: Deprecation revoked. Status changed to "Legacy".
1082+
- version: v11.0.0
1083+
pr-url: https://github.com/nodejs/node/pull/22715
1084+
description: This API is deprecated.
10791085
-->
10801086

1087+
> Stability: 3 - Legacy: Use the WHATWG URL API instead.
1088+
10811089
### Legacy `urlObject`
10821090
<!-- YAML
10831091
changes:
@@ -1086,7 +1094,7 @@ changes:
10861094
description: The Legacy URL API is deprecated. Use the WHATWG URL API.
10871095
-->
10881096

1089-
> Stability: 0 - Deprecated: Use the WHATWG URL API instead.
1097+
> Stability: 3 - Legacy: Use the WHATWG URL API instead.
10901098
10911099
The legacy `urlObject` (`require('url').Url`) is created and returned by the
10921100
`url.parse()` function.
@@ -1203,7 +1211,7 @@ changes:
12031211
times.
12041212
-->
12051213

1206-
> Stability: 0 - Deprecated: Use the WHATWG URL API instead.
1214+
> Stability: 3 - Legacy: Use the WHATWG URL API instead.
12071215
12081216
* `urlObject` {Object|string} A URL object (as returned by `url.parse()` or
12091217
constructed otherwise). If a string, it is converted to an object by passing
@@ -1299,7 +1307,7 @@ changes:
12991307
when no query string is present.
13001308
-->
13011309

1302-
> Stability: 0 - Deprecated: Use the WHATWG URL API instead.
1310+
> Stability: 3 - Legacy: Use the WHATWG URL API instead.
13031311
13041312
* `urlString` {string} The URL string to parse.
13051313
* `parseQueryString` {boolean} If `true`, the `query` property will always
@@ -1347,7 +1355,7 @@ changes:
13471355
contains a hostname.
13481356
-->
13491357

1350-
> Stability: 0 - Deprecated: Use the WHATWG URL API instead.
1358+
> Stability: 3 - Legacy: Use the WHATWG URL API instead.
13511359
13521360
* `from` {string} The Base URL being resolved against.
13531361
* `to` {string} The HREF URL being resolved.

0 commit comments

Comments
 (0)