doc: revoke deprecation of legacy url, change status to legacy
Signed-off-by: James M Snell <jasnell@gmail.com> Fixes: https://github.com/nodejs/node/issues/25099 PR-URL: https://github.com/nodejs/node/pull/37784 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Beth Griggs <bgriggs@redhat.com>
This commit is contained in:
parent
a8d05ba253
commit
64ba27cddd
@ -2172,12 +2172,15 @@ future release.
|
|||||||
### DEP0116: Legacy URL API
|
### DEP0116: Legacy URL API
|
||||||
<!-- YAML
|
<!-- YAML
|
||||||
changes:
|
changes:
|
||||||
|
- version: REPLACEME
|
||||||
|
pr-url: https://github.com/nodejs/node/pull/37784
|
||||||
|
description: Deprecation revoked. Status changed to "Legacy".
|
||||||
- version: v11.0.0
|
- version: v11.0.0
|
||||||
pr-url: https://github.com/nodejs/node/pull/22715
|
pr-url: https://github.com/nodejs/node/pull/22715
|
||||||
description: Documentation-only deprecation.
|
description: Documentation-only deprecation.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
Type: Documentation-only
|
Type: Deprecation revoked
|
||||||
|
|
||||||
The [Legacy URL API][] is deprecated. This includes [`url.format()`][],
|
The [Legacy URL API][] is deprecated. This includes [`url.format()`][],
|
||||||
[`url.parse()`][], [`url.resolve()`][], and the [legacy `urlObject`][]. Please
|
[`url.parse()`][], [`url.resolve()`][], and the [legacy `urlObject`][]. Please
|
||||||
|
@ -1075,18 +1075,29 @@ console.log(urlToHttpOptions(myUrl));
|
|||||||
|
|
||||||
## Legacy URL API
|
## Legacy URL API
|
||||||
<!-- YAML
|
<!-- YAML
|
||||||
deprecated: v11.0.0
|
changes:
|
||||||
|
- version: REPLACEME
|
||||||
|
pr-url: https://github.com/nodejs/node/pull/37784
|
||||||
|
description: Deprecation revoked. Status changed to "Legacy".
|
||||||
|
- version: v11.0.0
|
||||||
|
pr-url: https://github.com/nodejs/node/pull/22715
|
||||||
|
description: This API is deprecated.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
> Stability: 3 - Legacy: Use the WHATWG URL API instead.
|
||||||
|
|
||||||
### Legacy `urlObject`
|
### Legacy `urlObject`
|
||||||
<!-- YAML
|
<!-- YAML
|
||||||
changes:
|
changes:
|
||||||
|
- version: REPLACEME
|
||||||
|
pr-url: https://github.com/nodejs/node/pull/37784
|
||||||
|
description: Deprecation revoked. Status changed to "Legacy".
|
||||||
- version: v11.0.0
|
- version: v11.0.0
|
||||||
pr-url: https://github.com/nodejs/node/pull/22715
|
pr-url: https://github.com/nodejs/node/pull/22715
|
||||||
description: The Legacy URL API is deprecated. Use the WHATWG URL API.
|
description: The Legacy URL API is deprecated. Use the WHATWG URL API.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
> 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
|
The legacy `urlObject` (`require('url').Url`) is created and returned by the
|
||||||
`url.parse()` function.
|
`url.parse()` function.
|
||||||
@ -1192,6 +1203,9 @@ forward-slash characters (`/`) are required following the colon in the
|
|||||||
<!-- YAML
|
<!-- YAML
|
||||||
added: v0.1.25
|
added: v0.1.25
|
||||||
changes:
|
changes:
|
||||||
|
- version: REPLACEME
|
||||||
|
pr-url: https://github.com/nodejs/node/pull/37784
|
||||||
|
description: Deprecation revoked. Status changed to "Legacy".
|
||||||
- version: v11.0.0
|
- version: v11.0.0
|
||||||
pr-url: https://github.com/nodejs/node/pull/22715
|
pr-url: https://github.com/nodejs/node/pull/22715
|
||||||
description: The Legacy URL API is deprecated. Use the WHATWG URL API.
|
description: The Legacy URL API is deprecated. Use the WHATWG URL API.
|
||||||
@ -1203,7 +1217,7 @@ changes:
|
|||||||
times.
|
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
|
* `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
|
constructed otherwise). If a string, it is converted to an object by passing
|
||||||
@ -1285,6 +1299,9 @@ The formatting process operates as follows:
|
|||||||
<!-- YAML
|
<!-- YAML
|
||||||
added: v0.1.25
|
added: v0.1.25
|
||||||
changes:
|
changes:
|
||||||
|
- version: REPLACEME
|
||||||
|
pr-url: https://github.com/nodejs/node/pull/37784
|
||||||
|
description: Deprecation revoked. Status changed to "Legacy".
|
||||||
- version: v11.14.0
|
- version: v11.14.0
|
||||||
pr-url: https://github.com/nodejs/node/pull/26941
|
pr-url: https://github.com/nodejs/node/pull/26941
|
||||||
description: The `pathname` property on the returned URL object is now `/`
|
description: The `pathname` property on the returned URL object is now `/`
|
||||||
@ -1299,7 +1316,7 @@ changes:
|
|||||||
when no query string is present.
|
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.
|
* `urlString` {string} The URL string to parse.
|
||||||
* `parseQueryString` {boolean} If `true`, the `query` property will always
|
* `parseQueryString` {boolean} If `true`, the `query` property will always
|
||||||
@ -1329,6 +1346,9 @@ incorrect handling of usernames and passwords have been identified.
|
|||||||
<!-- YAML
|
<!-- YAML
|
||||||
added: v0.1.25
|
added: v0.1.25
|
||||||
changes:
|
changes:
|
||||||
|
- version: REPLACEME
|
||||||
|
pr-url: https://github.com/nodejs/node/pull/37784
|
||||||
|
description: Deprecation revoked. Status changed to "Legacy".
|
||||||
- version: v11.0.0
|
- version: v11.0.0
|
||||||
pr-url: https://github.com/nodejs/node/pull/22715
|
pr-url: https://github.com/nodejs/node/pull/22715
|
||||||
description: The Legacy URL API is deprecated. Use the WHATWG URL API.
|
description: The Legacy URL API is deprecated. Use the WHATWG URL API.
|
||||||
@ -1347,7 +1367,7 @@ changes:
|
|||||||
contains a hostname.
|
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.
|
* `from` {string} The Base URL being resolved against.
|
||||||
* `to` {string} The HREF URL being resolved.
|
* `to` {string} The HREF URL being resolved.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user