From 3a762c1e027a3eb2ca75b1f81c76ebda916d25a1 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Wed, 17 Mar 2021 12:40:58 -0700 Subject: [PATCH] doc: revoke deprecation of legacy url, change status to legacy Signed-off-by: James M Snell Fixes: https://github.com/nodejs/node/issues/25099 --- doc/api/deprecations.md | 5 ++++- doc/api/url.md | 18 +++++++++++++----- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 9ec966c52635f0..bd92a3b32e17b6 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -2172,12 +2172,15 @@ future release. ### DEP0116: Legacy URL API -Type: Documentation-only +Type: Deprecation revoked The [Legacy URL API][] is deprecated. This includes [`url.format()`][], [`url.parse()`][], [`url.resolve()`][], and the [legacy `urlObject`][]. Please diff --git a/doc/api/url.md b/doc/api/url.md index e78b15d09d28d1..12b8522061f495 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -1075,9 +1075,17 @@ console.log(urlToHttpOptions(myUrl)); ## Legacy URL API +> Stability: 3 - Legacy: Use the WHATWG URL API instead. + ### Legacy `urlObject` -> Stability: 0 - Deprecated: Use the WHATWG URL API instead. +> Stability: 3 - Legacy: Use the WHATWG URL API instead. The legacy `urlObject` (`require('url').Url`) is created and returned by the `url.parse()` function. @@ -1203,7 +1211,7 @@ changes: times. --> -> Stability: 0 - Deprecated: Use the WHATWG URL API instead. +> Stability: 3 - Legacy: Use the WHATWG URL API instead. * `urlObject` {Object|string} A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing @@ -1299,7 +1307,7 @@ changes: when no query string is present. --> -> Stability: 0 - Deprecated: Use the WHATWG URL API instead. +> Stability: 3 - Legacy: Use the WHATWG URL API instead. * `urlString` {string} The URL string to parse. * `parseQueryString` {boolean} If `true`, the `query` property will always @@ -1347,7 +1355,7 @@ changes: contains a hostname. --> -> Stability: 0 - Deprecated: Use the WHATWG URL API instead. +> Stability: 3 - Legacy: Use the WHATWG URL API instead. * `from` {string} The Base URL being resolved against. * `to` {string} The HREF URL being resolved.