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

add complete node:url implementation #2967

Merged
merged 1 commit into from
Oct 22, 2024
Merged

add complete node:url implementation #2967

merged 1 commit into from
Oct 22, 2024

Conversation

anonrig
Copy link
Member

@anonrig anonrig commented Oct 21, 2024

Adds all remaining functionality for removing the requirement of the polyfill from wrangler for node:url module. (We can remove the hybrid polyfill). It is important to add the remaining modules because node:url is one of the most used modules in the ecosystem.

Here's the functionality implemented:

  • Legacy new Url() class
  • url.urlToHttpOptions
  • url.format()
  • url.parse()
  • url.resolve()
  • url.resolveObject()

@anonrig anonrig requested a review from jasnell October 21, 2024 19:43
@anonrig anonrig requested review from a team as code owners October 21, 2024 19:43
@anonrig anonrig requested a review from ObsidianMinor October 21, 2024 19:43
Copy link
Member

@jasnell jasnell left a comment

Choose a reason for hiding this comment

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

Makes me sad to have to support this but LGTM

@anonrig anonrig force-pushed the yagiz/add-nodejs-url branch from 1ad2c26 to d748c81 Compare October 21, 2024 23:25
this.pathname = null;
this.path = null;
this.href = null;
} as unknown as {
Copy link
Member Author

Choose a reason for hiding this comment

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

@mikea any suggestions on making this more maintainable?

@anonrig anonrig merged commit 211e828 into main Oct 22, 2024
12 of 13 checks passed
@anonrig anonrig deleted the yagiz/add-nodejs-url branch October 22, 2024 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants