From c8383dd99f4fb2021823c5bfe9673057d59964d2 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: James M Snell Fixes: https://github.com/nodejs/node/issues/25099 PR-URL: https://github.com/nodejs/node/pull/37784 Reviewed-By: Anna Henningsen Reviewed-By: Matteo Collina Reviewed-By: Vladimir de Turckheim Reviewed-By: Michaƫl Zasso Reviewed-By: Michael Dawson Reviewed-By: Beth Griggs --- doc/api/deprecations.md | 5 ++++- doc/api/url.md | 30 +++++++++++++++++++++++++----- 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 63b7ff31824084..769d15516d99b5 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -2147,12 +2147,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 c3ff62d98f36d0..d7191504567910 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -1013,18 +1013,29 @@ pathToFileURL('/some/path%.c'); // Correct: file:///some/path%25.c (POSIX) ## 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. @@ -1130,6 +1141,9 @@ forward-slash characters (`/`) are required following the colon in the -> 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 @@ -1223,6 +1237,9 @@ The formatting process operates as follows: -> 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 @@ -1267,6 +1284,9 @@ incorrect handling of usernames and passwords have been identified. -> 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.