Skip to content

Commit 7c6602f

Browse files
TimothyGuevanlucas
authored andcommittedMay 1, 2017
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 e86e154 commit 7c6602f

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed
 

‎doc/api/url.md

+25-1
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

@@ -348,6 +357,9 @@ For example, the ASCII space character (`' '`) is encoded as `%20`. The ASCII
348357
forward slash (`/`) character is encoded as `%3C`.
349358

350359
## The WHATWG URL API
360+
<!-- YAML
361+
added: v7.0.0
362+
-->
351363

352364
> Stability: 1 - Experimental
353365
@@ -735,6 +747,9 @@ console.log(JSON.stringify(myURLs));
735747
```
736748

737749
### Class: URLSearchParams
750+
<!-- YAML
751+
added: v7.5.0
752+
-->
738753

739754
The `URLSearchParams` API provides read and write access to the query of a
740755
`URL`. The `URLSearchParams` class can also be used standalone with one of the
@@ -807,6 +822,9 @@ console.log(params.toString());
807822
```
808823

809824
#### Constructor: new URLSearchParams(obj)
825+
<!-- YAML
826+
added: v7.10.0
827+
-->
810828

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

@@ -830,6 +848,9 @@ console.log(params.toString());
830848
```
831849

832850
#### Constructor: new URLSearchParams(iterable)
851+
<!-- YAML
852+
added: v7.10.0
853+
-->
833854

834855
* `iterable` {Iterable} An iterable object whose elements are key-value pairs
835856

@@ -989,6 +1010,9 @@ console.log(params.toString());
9891010
```
9901011

9911012
#### urlSearchParams.sort()
1013+
<!-- YAML
1014+
added: v7.7.0
1015+
-->
9921016

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

0 commit comments

Comments
 (0)