| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,7 @@ | |||
| 1 | 1 | { | |
| 2 | 2 | 'variables': { | |
| 3 | 3 | 'v8_enable_i18n_support%': 1, | |
| 4 | + 'ada_sources': [ 'ada.cpp' ], | ||
| 4 | 5 | }, | |
| 5 | 6 | 'targets': [ | |
| 6 | 7 | { | |
@@ -10,23 +11,7 @@ | |||
| 10 | 11 | 'direct_dependent_settings': { | |
| 11 | 12 | 'include_dirs': ['.'], | |
| 12 | 13 | }, | |
| 13 | - 'sources': ['ada.cpp'], | ||
| 14 | - 'conditions': [ | ||
| 15 | - ['v8_enable_i18n_support==0', { | ||
| 16 | - 'defines': ['ADA_HAS_ICU=0'], | ||
| 17 | - }], | ||
| 18 | - ['v8_enable_i18n_support==1', { | ||
| 19 | - 'dependencies': [ | ||
| 20 | - '<(icu_gyp_path):icui18n', | ||
| 21 | - '<(icu_gyp_path):icuuc', | ||
| 22 | - ], | ||
| 23 | - }], | ||
| 24 | - ['OS=="win" and v8_enable_i18n_support==1', { | ||
| 25 | - 'dependencies': [ | ||
| 26 | - '<(icu_gyp_path):icudata', | ||
| 27 | - ], | ||
| 28 | - }], | ||
| 29 | - ] | ||
| 14 | + 'sources': [ '<@(ada_sources)' ] | ||
| 30 | 15 | }, | |
| 31 | 16 | ] | |
| 32 | 17 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -129,6 +129,13 @@ return `true`. | |||
| 129 | 129 | ||
| 130 | 130 | #### `new URL(input[, base])` | |
| 131 | 131 | ||
| 132 | + <!-- | ||
| 133 | + changes: | ||
| 134 | + - version: REPLACEME | ||
| 135 | + pr-url: https://github.com/nodejs/node/pull/47339 | ||
| 136 | + description: ICU requirement is removed. | ||
| 137 | + --> | ||
| 138 | + | ||
| 132 | 139 | * `input` {string} The absolute or relative input URL to parse. If `input` | |
| 133 | 140 | is relative, then `base` is required. If `input` is absolute, the `base` | |
| 134 | 141 | is ignored. If `input` is not a string, it is [converted to a string][] first. | |
@@ -172,9 +179,6 @@ const myURL = new URL('https://測試'); | |||
| 172 | 179 | // https://xn--g6w251d/ | |
| 173 | 180 | ``` | |
| 174 | 181 | ||
| 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 | - | ||
| 178 | 182 | In cases where it is not known in advance if `input` is an absolute URL | |
| 179 | 183 | and a `base` is provided, it is advised to validate that the `origin` of | |
| 180 | 184 | the `URL` object is what is expected. | |
@@ -1029,6 +1033,10 @@ for (const [name, value] of params) { | |||
| 1029 | 1033 | added: | |
| 1030 | 1034 | - v7.4.0 | |
| 1031 | 1035 | - v6.13.0 | |
| 1036 | + changes: | ||
| 1037 | + - version: REPLACEME | ||
| 1038 | + pr-url: https://github.com/nodejs/node/pull/47339 | ||
| 1039 | + description: ICU requirement is removed. | ||
| 1032 | 1040 | --> | |
| 1033 | 1041 | ||
| 1034 | 1042 | * `domain` {string} | |
@@ -1039,9 +1047,6 @@ invalid domain, the empty string is returned. | |||
| 1039 | 1047 | ||
| 1040 | 1048 | It performs the inverse operation to [`url.domainToUnicode()`][]. | |
| 1041 | 1049 | ||
| 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 | - | ||
| 1045 | 1050 | ```mjs | |
| 1046 | 1051 | import url from 'node:url'; | |
| 1047 | 1052 | ||
@@ -1070,6 +1075,10 @@ console.log(url.domainToASCII('xn--iñvalid.com')); | |||
| 1070 | 1075 | added: | |
| 1071 | 1076 | - v7.4.0 | |
| 1072 | 1077 | - v6.13.0 | |
| 1078 | + changes: | ||
| 1079 | + - version: REPLACEME | ||
| 1080 | + pr-url: https://github.com/nodejs/node/pull/47339 | ||
| 1081 | + description: ICU requirement is removed. | ||
| 1073 | 1082 | --> | |
| 1074 | 1083 | ||
| 1075 | 1084 | * `domain` {string} | |
@@ -1080,9 +1089,6 @@ domain, the empty string is returned. | |||
| 1080 | 1089 | ||
| 1081 | 1090 | It performs the inverse operation to [`url.domainToASCII()`][]. | |
| 1082 | 1091 | ||
| 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 | - | ||
| 1086 | 1092 | ```mjs | |
| 1087 | 1093 | import url from 'node:url'; | |
| 1088 | 1094 | ||
@@ -1725,7 +1731,6 @@ console.log(myURL.origin); | |||
| 1725 | 1731 | // Prints https://xn--1xa.example.com | |
| 1726 | 1732 | ``` | |
| 1727 | 1733 | ||
| 1728 | - [ICU]: intl.md#options-for-building-nodejs | ||
| 1729 | 1734 | [Punycode]: https://tools.ietf.org/html/rfc5891#section-4.4 | |
| 1730 | 1735 | [WHATWG URL]: #the-whatwg-url-api | |
| 1731 | 1736 | [WHATWG URL Standard]: https://url.spec.whatwg.org/ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,4 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | - if (internalBinding('config').hasIntl) { | ||
| 4 | - const { toASCII, toUnicode } = internalBinding('icu'); | ||
| 5 | - module.exports = { toASCII, toUnicode }; | ||
| 6 | - } else { | ||
| 7 | - const { domainToASCII, domainToUnicode } = require('internal/url'); | ||
| 8 | - module.exports = { toASCII: domainToASCII, toUnicode: domainToUnicode }; | ||
| 9 | - } | ||
| 3 | + const { domainToASCII, domainToUnicode } = require('internal/url'); | ||
| 4 | + module.exports = { toASCII: domainToASCII, toUnicode: domainToUnicode }; | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,18 +1,6 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | - const common = require('../common'); | ||
| 4 | - | ||
| 5 | - // TODO(@anonrig): Remove this check when Ada removes ICU requirement. | ||
| 6 | - if (!common.hasIntl) { | ||
| 7 | - // A handful of the benchmarks fail when ICU is not included. | ||
| 8 | - // ICU is responsible for ignoring certain inputs from the hostname | ||
| 9 | - // and without it, it is not possible to validate the correctness of the input. | ||
| 10 | - // DomainToASCII method in Unicode specification states which characters are | ||
| 11 | - // ignored and/or remapped. Doing this outside of the scope of DomainToASCII, | ||
| 12 | - // would be a violation of the WHATWG URL specification. | ||
| 13 | - // Please look into: https://unicode.org/reports/tr46/#ProcessingStepMap | ||
| 14 | - common.skip('missing Intl'); | ||
| 15 | - } | ||
| 3 | + require('../common'); | ||
| 16 | 4 | ||
| 17 | 5 | const runBenchmark = require('../common/benchmark'); | |
| 18 | 6 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,40 +1,19 @@ | |||
| 1 | 1 | { | |
| 2 | - "toascii.window.js": { | ||
| 3 | - "requires": ["small-icu"] | ||
| 4 | - }, | ||
| 5 | 2 | "percent-encoding.window.js": { | |
| 6 | - "requires": ["small-icu"], | ||
| 7 | 3 | "skip": "TODO: port from .window.js" | |
| 8 | 4 | }, | |
| 9 | 5 | "historical.any.js": { | |
| 10 | - "requires": ["small-icu"], | ||
| 11 | 6 | "fail": { | |
| 12 | 7 | "expected": [ | |
| 13 | 8 | "URL: no structured serialize/deserialize support", | |
| 14 | 9 | "URLSearchParams: no structured serialize/deserialize support" | |
| 15 | 10 | ] | |
| 16 | 11 | } | |
| 17 | 12 | }, | |
| 18 | - "urlencoded-parser.any.js": { | ||
| 19 | - "requires": ["small-icu"] | ||
| 20 | - }, | ||
| 21 | - "url-constructor.any.js": { | ||
| 22 | - "requires": ["small-icu"] | ||
| 23 | - }, | ||
| 24 | - "url-origin.any.js": { | ||
| 25 | - "requires": ["small-icu"] | ||
| 26 | - }, | ||
| 27 | - "url-setters.any.js": { | ||
| 28 | - "requires": ["small-icu"] | ||
| 29 | - }, | ||
| 30 | 13 | "url-setters-a-area.window.js": { | |
| 31 | 14 | "skip": "already tested in url-setters.any.js" | |
| 32 | 15 | }, | |
| 33 | - "IdnaTestV2.window.js": { | ||
| 34 | - "requires": ["small-icu"] | ||
| 35 | - }, | ||
| 36 | 16 | "javascript-urls.window.js": { | |
| 37 | - "required": ["small-icu"], | ||
| 38 | 17 | "skip": "requires document.body reference" | |
| 39 | 18 | } | |
| 40 | 19 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments