@@ -132,6 +132,9 @@ forward-slash characters (`/`) are required following the colon in the
132
132
` protocol ` .
133
133
134
134
## url.domainToASCII(domain)
135
+ <!-- YAML
136
+ added: v7.4.0
137
+ -->
135
138
136
139
> Stability: 1 - Experimental
137
140
@@ -154,6 +157,9 @@ console.log(url.domainToASCII('xn--iñvalid.com'));
154
157
```
155
158
156
159
## url.domainToUnicode(domain)
160
+ <!-- YAML
161
+ added: v7.4.0
162
+ -->
157
163
158
164
> Stability: 1 - Experimental
159
165
@@ -243,6 +249,9 @@ The formatting process operates as follows:
243
249
* ` result ` is returned.
244
250
245
251
## url.format(URL[ , options] )
252
+ <!-- YAML
253
+ added: v7.6.0
254
+ -->
246
255
247
256
> Stability: 1 - Experimental
248
257
@@ -254,7 +263,7 @@ The formatting process operates as follows:
254
263
fragment, ` false ` otherwise. Defaults to ` true ` .
255
264
* ` search ` {boolean} ` true ` if the serialized URL string should include the
256
265
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
258
267
component of the URL string should be encoded directly as opposed to being
259
268
Punycode encoded. Defaults to ` false ` .
260
269
@@ -352,6 +361,9 @@ For example, the ASCII space character (`' '`) is encoded as `%20`. The ASCII
352
361
forward slash (` / ` ) character is encoded as ` %3C ` .
353
362
354
363
## The WHATWG URL API
364
+ <!-- YAML
365
+ added: v7.0.0
366
+ -->
355
367
356
368
> Stability: 1 - Experimental
357
369
@@ -739,6 +751,9 @@ console.log(JSON.stringify(myURLs));
739
751
```
740
752
741
753
### Class: URLSearchParams
754
+ <!-- YAML
755
+ added: v7.5.0
756
+ -->
742
757
743
758
The ` URLSearchParams ` API provides read and write access to the query of a
744
759
` URL ` . The ` URLSearchParams ` class can also be used standalone with one of the
@@ -811,6 +826,9 @@ console.log(params.toString());
811
826
```
812
827
813
828
#### Constructor: new URLSearchParams(obj)
829
+ <!-- YAML
830
+ added: v7.10.0
831
+ -->
814
832
815
833
* ` obj ` {Object} An object representing a collection of key-value pairs
816
834
@@ -834,6 +852,9 @@ console.log(params.toString());
834
852
```
835
853
836
854
#### Constructor: new URLSearchParams(iterable)
855
+ <!-- YAML
856
+ added: v7.10.0
857
+ -->
837
858
838
859
* ` iterable ` {Iterable} An iterable object whose elements are key-value pairs
839
860
@@ -993,6 +1014,9 @@ console.log(params.toString());
993
1014
```
994
1015
995
1016
#### urlSearchParams.sort()
1017
+ <!-- YAML
1018
+ added: v7.7.0
1019
+ -->
996
1020
997
1021
Sort all existing name-value pairs in-place by their names. Sorting is done
998
1022
with a [ stable sorting algorithm] [ ] , so relative order between name-value pairs
0 commit comments