@@ -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
@@ -348,6 +357,9 @@ For example, the ASCII space character (`' '`) is encoded as `%20`. The ASCII
348
357
forward slash (` / ` ) character is encoded as ` %3C ` .
349
358
350
359
## The WHATWG URL API
360
+ <!-- YAML
361
+ added: v7.0.0
362
+ -->
351
363
352
364
> Stability: 1 - Experimental
353
365
@@ -735,6 +747,9 @@ console.log(JSON.stringify(myURLs));
735
747
```
736
748
737
749
### Class: URLSearchParams
750
+ <!-- YAML
751
+ added: v7.5.0
752
+ -->
738
753
739
754
The ` URLSearchParams ` API provides read and write access to the query of a
740
755
` URL ` . The ` URLSearchParams ` class can also be used standalone with one of the
@@ -807,6 +822,9 @@ console.log(params.toString());
807
822
```
808
823
809
824
#### Constructor: new URLSearchParams(obj)
825
+ <!-- YAML
826
+ added: v7.10.0
827
+ -->
810
828
811
829
* ` obj ` {Object} An object representing a collection of key-value pairs
812
830
@@ -830,6 +848,9 @@ console.log(params.toString());
830
848
```
831
849
832
850
#### Constructor: new URLSearchParams(iterable)
851
+ <!-- YAML
852
+ added: v7.10.0
853
+ -->
833
854
834
855
* ` iterable ` {Iterable} An iterable object whose elements are key-value pairs
835
856
@@ -989,6 +1010,9 @@ console.log(params.toString());
989
1010
```
990
1011
991
1012
#### urlSearchParams.sort()
1013
+ <!-- YAML
1014
+ added: v7.7.0
1015
+ -->
992
1016
993
1017
Sort all existing name-value pairs in-place by their names. Sorting is done
994
1018
with a [ stable sorting algorithm] [ ] , so relative order between name-value pairs
0 commit comments