Skip to content

Conversation

JordanMartinez
Copy link
Contributor

@JordanMartinez JordanMartinez commented Jul 29, 2023

Description of the change

Update APIs to use the WHATWG URL API. Legacy API will not be supported.


Checklist:

  • Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g. "- Made a change (#0000)")
  • Linked any existing issues or proposals that this pull request should close
  • Updated or added relevant documentation
  • Added a test for the contribution (if applicable)

@JordanMartinez JordanMartinez merged commit 3d1f35a into master Aug 1, 2023
@JordanMartinez JordanMartinez deleted the update-apis branch August 1, 2023 02:26
export const setHostnameImpl = (val, u) => {
u.hostname = val;
};
export const uneffectfulHref = (u) => u.href;
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe this should be hrefPure? I think that’s a more common naming convention than “uneffectful”

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 like that name better. I'll send a PR.

@thomashoneyman
Copy link
Contributor

This is a big update! Thanks!

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