Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed

Conversation

aduh95
Copy link
Contributor

@aduh95 aduh95 commented Jul 21, 2023

This reverts commit 0dc485e.

Fixes: #48850
Fixes: #48855

@aduh95 aduh95 requested a review from anonrig July 21, 2023 12:19
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/gyp
  • @nodejs/url

@nodejs-github-bot nodejs-github-bot added dependencies Pull requests that update a dependency file. needs-ci PRs that need a full CI run. v18.x Issues that can be reproduced on v18.x or PRs targeting the v18.x-staging branch. labels Jul 21, 2023
lpinca
lpinca previously approved these changes Jul 21, 2023
deps/ada/ada.gyp Outdated
['v8_enable_i18n_support==1', {
'dependencies': [
'<(icu_gyp_path):icui18n',
'<(icu_gyp_path):icuuc',
Copy link
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
Contributor Author

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
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
Contributor Author

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.

"percent-encoding.window.js": {
"requires": ["small-icu"],
Copy link
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
Member

lemire commented Jul 21, 2023

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
Member

anonrig commented Jul 21, 2023

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 @lemire ada-url/idna#32

@anonrig
Copy link
Member

anonrig commented Jul 21, 2023

I opened a backport to fix this @aduh95 #48873

@aduh95
Copy link
Contributor Author

aduh95 commented Jul 22, 2023

Superseded by #48873

@aduh95 aduh95 closed this Jul 22, 2023
@aduh95 aduh95 deleted the revert-v18-breaking-change branch July 22, 2023 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file. needs-ci PRs that need a full CI run. v18.x Issues that can be reproduced on v18.x or PRs targeting the v18.x-staging branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants