Skip to content

Commit 1ef1f4f

Browse files
lpincatargos
authored andcommitted
doc: add entry to url.parse() changes metadata
Document that returned `pathname` is now `/` when the URL to parse has no path and the protocol scheme is`ws:` or `wss:`. PR-URL: #30348 Fixes: #30154 Refs: #26941 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Masashi Hirano <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 2b52a3f commit 1ef1f4f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/api/url.md

+5
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,11 @@ The formatting process operates as follows:
11851185
<!-- YAML
11861186
added: v0.1.25
11871187
changes:
1188+
- version: v11.14.0
1189+
pr-url: https://github.com/nodejs/node/pull/26941
1190+
description: The `pathname` property on the returned URL object is now `/`
1191+
when there is no path and the protocol scheme is `ws:` or
1192+
`wss:`.
11881193
- version: v11.0.0
11891194
pr-url: https://github.com/nodejs/node/pull/22715
11901195
description: The Legacy URL API is deprecated. Use the WHATWG URL API.

0 commit comments

Comments
 (0)