@@ -129,6 +129,13 @@ return `true`.
129129
130130#### `new URL(input[, base])`
131131
132+ <!--
133+ changes:
134+ - version: REPLACEME
135+ pr-url: https://github.com/nodejs/node/pull/47339
136+ description: ICU requirement is removed.
137+ -->
138+
132139* `input` {string} The absolute or relative input URL to parse. If `input`
133140 is relative, then `base` is required. If `input` is absolute, the `base`
134141 is ignored. If `input` is not a string, it is [converted to a string][] first.
@@ -172,9 +179,6 @@ const myURL = new URL('https://測試');
172179// https://xn--g6w251d/
173180```
174181
175- This feature is only available if the `node` executable was compiled with
176- [ICU][] enabled. If not, the domain names are passed through unchanged.
177-
178182In cases where it is not known in advance if `input` is an absolute URL
179183and a `base` is provided, it is advised to validate that the `origin` of
180184the `URL` object is what is expected.
@@ -1029,6 +1033,10 @@ for (const [name, value] of params) {
10291033added:
10301034 - v7.4.0
10311035 - v6.13.0
1036+ changes:
1037+ - version: REPLACEME
1038+ pr-url: https://github.com/nodejs/node/pull/47339
1039+ description: ICU requirement is removed.
10321040-->
10331041
10341042* `domain` {string}
@@ -1039,9 +1047,6 @@ invalid domain, the empty string is returned.
10391047
10401048It performs the inverse operation to [`url.domainToUnicode()`][].
10411049
1042- This feature is only available if the `node` executable was compiled with
1043- [ICU][] enabled. If not, the domain names are passed through unchanged.
1044-
10451050```mjs
10461051import url from 'node:url';
10471052
@@ -1070,6 +1075,10 @@ console.log(url.domainToASCII('xn--iñvalid.com'));
10701075added:
10711076 - v7.4.0
10721077 - v6.13.0
1078+ changes:
1079+ - version: REPLACEME
1080+ pr-url: https://github.com/nodejs/node/pull/47339
1081+ description: ICU requirement is removed.
10731082-->
10741083
10751084* `domain` {string}
@@ -1080,9 +1089,6 @@ domain, the empty string is returned.
10801089
10811090It performs the inverse operation to [`url.domainToASCII()`][].
10821091
1083- This feature is only available if the `node` executable was compiled with
1084- [ICU][] enabled. If not, the domain names are passed through unchanged.
1085-
10861092```mjs
10871093import url from 'node:url';
10881094
@@ -1725,7 +1731,6 @@ console.log(myURL.origin);
17251731// Prints https://xn--1xa.example.com
17261732```
17271733
1728- [ICU]: intl.md#options-for-building-nodejs
17291734[Punycode]: https://tools.ietf.org/html/rfc5891#section-4.4
17301735[WHATWG URL]: #the-whatwg-url-api
17311736[WHATWG URL Standard]: https://url.spec.whatwg.org/
0 commit comments