Skip to content

Commit 9d4bb55

Browse files
TimothyGujasnell
authored andcommitted
doc: add Added-in metadata for WHATWG URL
PR-URL: #12683 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
1 parent 3a0058c commit 9d4bb55

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

doc/api/url.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ forward-slash characters (`/`) are required following the colon in the
132132
`protocol`.
133133

134134
## url.domainToASCII(domain)
135+
<!-- YAML
136+
added: v7.4.0
137+
-->
135138

136139
> Stability: 1 - Experimental
137140
@@ -154,6 +157,9 @@ console.log(url.domainToASCII('xn--iñvalid.com'));
154157
```
155158

156159
## url.domainToUnicode(domain)
160+
<!-- YAML
161+
added: v7.4.0
162+
-->
157163

158164
> Stability: 1 - Experimental
159165
@@ -243,6 +249,9 @@ The formatting process operates as follows:
243249
* `result` is returned.
244250

245251
## url.format(URL[, options])
252+
<!-- YAML
253+
added: v7.6.0
254+
-->
246255

247256
> Stability: 1 - Experimental
248257
@@ -254,7 +263,7 @@ The formatting process operates as follows:
254263
fragment, `false` otherwise. Defaults to `true`.
255264
* `search` {boolean} `true` if the serialized URL string should include the
256265
search query, `false` otherwise. Defaults to `true`.
257-
* `unicode` (Boolean) `true` if Unicode characters appearing in the host
266+
* `unicode` {boolean} `true` if Unicode characters appearing in the host
258267
component of the URL string should be encoded directly as opposed to being
259268
Punycode encoded. Defaults to `false`.
260269

@@ -352,6 +361,9 @@ For example, the ASCII space character (`' '`) is encoded as `%20`. The ASCII
352361
forward slash (`/`) character is encoded as `%3C`.
353362

354363
## The WHATWG URL API
364+
<!-- YAML
365+
added: v7.0.0
366+
-->
355367

356368
> Stability: 1 - Experimental
357369
@@ -739,6 +751,9 @@ console.log(JSON.stringify(myURLs));
739751
```
740752

741753
### Class: URLSearchParams
754+
<!-- YAML
755+
added: v7.5.0
756+
-->
742757

743758
The `URLSearchParams` API provides read and write access to the query of a
744759
`URL`. The `URLSearchParams` class can also be used standalone with one of the
@@ -811,6 +826,9 @@ console.log(params.toString());
811826
```
812827

813828
#### Constructor: new URLSearchParams(obj)
829+
<!-- YAML
830+
added: v7.10.0
831+
-->
814832

815833
* `obj` {Object} An object representing a collection of key-value pairs
816834

@@ -834,6 +852,9 @@ console.log(params.toString());
834852
```
835853

836854
#### Constructor: new URLSearchParams(iterable)
855+
<!-- YAML
856+
added: v7.10.0
857+
-->
837858

838859
* `iterable` {Iterable} An iterable object whose elements are key-value pairs
839860

@@ -993,6 +1014,9 @@ console.log(params.toString());
9931014
```
9941015

9951016
#### urlSearchParams.sort()
1017+
<!-- YAML
1018+
added: v7.7.0
1019+
-->
9961020

9971021
Sort all existing name-value pairs in-place by their names. Sorting is done
9981022
with a [stable sorting algorithm][], so relative order between name-value pairs

0 commit comments

Comments
 (0)