Skip to content

Commit 185d4cd

Browse files
jasnellruyadorno
authored andcommittedMar 24, 2021
doc: revoke deprecation of legacy url, change status to legacy
Signed-off-by: James M Snell <[email protected]> Fixes: #25099 PR-URL: #37784 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Vladimir de Turckheim <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Beth Griggs <[email protected]>
1 parent 9d160da commit 185d4cd

File tree

2 files changed

+29
-6
lines changed

2 files changed

+29
-6
lines changed
 

‎doc/api/deprecations.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -2169,12 +2169,15 @@ future release.
21692169
### DEP0116: Legacy URL API
21702170
<!-- YAML
21712171
changes:
2172+
- version: REPLACEME
2173+
pr-url: https://github.com/nodejs/node/pull/37784
2174+
description: Deprecation revoked. Status changed to "Legacy".
21722175
- version: v11.0.0
21732176
pr-url: https://github.com/nodejs/node/pull/22715
21742177
description: Documentation-only deprecation.
21752178
-->
21762179

2177-
Type: Documentation-only
2180+
Type: Deprecation revoked
21782181

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

‎doc/api/url.md

+25-5
Original file line numberDiff line numberDiff line change
@@ -1075,18 +1075,29 @@ 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:
1092+
- version: REPLACEME
1093+
pr-url: https://github.com/nodejs/node/pull/37784
1094+
description: Deprecation revoked. Status changed to "Legacy".
10841095
- version: v11.0.0
10851096
pr-url: https://github.com/nodejs/node/pull/22715
10861097
description: The Legacy URL API is deprecated. Use the WHATWG URL API.
10871098
-->
10881099

1089-
> Stability: 0 - Deprecated: Use the WHATWG URL API instead.
1100+
> Stability: 3 - Legacy: Use the WHATWG URL API instead.
10901101
10911102
The legacy `urlObject` (`require('url').Url`) is created and returned by the
10921103
`url.parse()` function.
@@ -1192,6 +1203,9 @@ forward-slash characters (`/`) are required following the colon in the
11921203
<!-- YAML
11931204
added: v0.1.25
11941205
changes:
1206+
- version: REPLACEME
1207+
pr-url: https://github.com/nodejs/node/pull/37784
1208+
description: Deprecation revoked. Status changed to "Legacy".
11951209
- version: v11.0.0
11961210
pr-url: https://github.com/nodejs/node/pull/22715
11971211
description: The Legacy URL API is deprecated. Use the WHATWG URL API.
@@ -1203,7 +1217,7 @@ changes:
12031217
times.
12041218
-->
12051219

1206-
> Stability: 0 - Deprecated: Use the WHATWG URL API instead.
1220+
> Stability: 3 - Legacy: Use the WHATWG URL API instead.
12071221
12081222
* `urlObject` {Object|string} A URL object (as returned by `url.parse()` or
12091223
constructed otherwise). If a string, it is converted to an object by passing
@@ -1285,6 +1299,9 @@ The formatting process operates as follows:
12851299
<!-- YAML
12861300
added: v0.1.25
12871301
changes:
1302+
- version: REPLACEME
1303+
pr-url: https://github.com/nodejs/node/pull/37784
1304+
description: Deprecation revoked. Status changed to "Legacy".
12881305
- version: v11.14.0
12891306
pr-url: https://github.com/nodejs/node/pull/26941
12901307
description: The `pathname` property on the returned URL object is now `/`
@@ -1299,7 +1316,7 @@ changes:
12991316
when no query string is present.
13001317
-->
13011318

1302-
> Stability: 0 - Deprecated: Use the WHATWG URL API instead.
1319+
> Stability: 3 - Legacy: Use the WHATWG URL API instead.
13031320
13041321
* `urlString` {string} The URL string to parse.
13051322
* `parseQueryString` {boolean} If `true`, the `query` property will always
@@ -1329,6 +1346,9 @@ incorrect handling of usernames and passwords have been identified.
13291346
<!-- YAML
13301347
added: v0.1.25
13311348
changes:
1349+
- version: REPLACEME
1350+
pr-url: https://github.com/nodejs/node/pull/37784
1351+
description: Deprecation revoked. Status changed to "Legacy".
13321352
- version: v11.0.0
13331353
pr-url: https://github.com/nodejs/node/pull/22715
13341354
description: The Legacy URL API is deprecated. Use the WHATWG URL API.
@@ -1347,7 +1367,7 @@ changes:
13471367
contains a hostname.
13481368
-->
13491369

1350-
> Stability: 0 - Deprecated: Use the WHATWG URL API instead.
1370+
> Stability: 3 - Legacy: Use the WHATWG URL API instead.
13511371
13521372
* `from` {string} The Base URL being resolved against.
13531373
* `to` {string} The HREF URL being resolved.

0 commit comments

Comments
 (0)
Please sign in to comment.