Skip to content

[v18.x] Revert "url: drop ICU requirement for parsing hostnames" - #48869

Closed
aduh95 wants to merge 4 commits into
nodejs:v18.x-stagingfrom
aduh95:revert-v18-breaking-change
Closed

[v18.x] Revert "url: drop ICU requirement for parsing hostnames"#48869
aduh95 wants to merge 4 commits into
nodejs:v18.x-stagingfrom
aduh95:revert-v18-breaking-change

Conversation

@aduh95

Copy link
Copy Markdown
Contributor

This reverts commit 0dc485e.

Fixes: #48850
Fixes: #48855

@aduh95
aduh95 requested a review from anonrigJuly 21, 2023 12:19
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/gyp
  • @nodejs/url

@nodejs-github-botnodejs-github-bot added dependencies Pull requests that update a dependency file. needs-ci PRs that need a full CI run. v18.x labels Jul 21, 2023
lpinca
lpinca previously approved these changes Jul 21, 2023
Comment threaddeps/ada/ada.gyp Outdated
['v8_enable_i18n_support==1', {
'dependencies': [
'<(icu_gyp_path):icui18n',
'<(icu_gyp_path):icuuc',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file shouldn’t be reverted. This configurations are for Ada v1.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it makes sense to land a clean revert of the commit causing the issue, and then we have all the time we need to land a follow up commit that tidy things up, wdyt?

// TODO(@anonrig): Remove this check when Ada removes ICU requirement.
if (!common.hasIntl) {
// A handful of the benchmarks fail when ICU is not included.
// ICU is responsible for ignoring certain inputs from the hostname

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file shouldn’t be reverted as well.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be, url.parse depends on ICU if this PR lands.

Comment threadtest/wpt/status/url.json Outdated
"requires": ["small-icu"]
},
"percent-encoding.window.js": {
"requires": ["small-icu"],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should not be reverted.

@lemire

Copy link
Copy Markdown
Member

I have not looked at the issue, but the current releases of ada do not use ICU (at all). In fact, ada has no dependency.

@anonrig

Copy link
Copy Markdown
Member

I think reverting is not the fix for this. ICU based toASCII method has a lenient mode which is passed as a second argument to toASCII method, which ada::idna does not have. We are currently investigating it with @lemireada-url/idna#32

@anonrig

Copy link
Copy Markdown
Member

I opened a backport to fix this @aduh95#48873

@aduh95

Copy link
Copy Markdown
ContributorAuthor

Superseded by #48873

@aduh95aduh95 closed this Jul 22, 2023
@aduh95
aduh95 deleted the revert-v18-breaking-change branch July 22, 2023 08:11
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependenciesPull requests that update a dependency file.needs-ciPRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@aduh95@nodejs-github-bot@lemire@anonrig@lpinca