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

Implement new URLSearchParams has and delete second argument #722

Merged
merged 1 commit into from
Jun 1, 2023

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented May 31, 2023

The whatwg url spec was updated to add a second optional argument to delete() and has(). While it was determined that it likely didn't break browser users, the change could break at least a couple existing deployed workers so we have to gate support behind a compat flag.

Tests are added in the internal PR.

The whatwg url spec was updated to add a second optional argument to
delete() and has(). While it was determined that it likely didn't break
browser users, the change could break at least a couple existing
deployed workers so we have to gate support behind a compat flag.
Copy link
Contributor

@Warfields Warfields left a comment

Choose a reason for hiding this comment

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

LGTM

urlSearchParamsDeleteHasValueArg @30 :Bool
$compatEnableFlag("urlsearchparams_delete_has_value_arg")
$compatDisableFlag("no_urlsearchparams_delete_has_value_arg")
$compatEnableDate("2023-07-01");
Copy link
Contributor

Choose a reason for hiding this comment

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

General question for all reviewers, how do we determine when we want the date to be? Also is there any reason we don't want to set this compat date sooner?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's fairly arbitrary and case-by-case really. I'll usually try to go at least a month out.

@jasnell jasnell merged commit d3788af into main Jun 1, 2023
@kentonv kentonv deleted the jsnell/url-standard-delete-has-value-arg branch June 5, 2023 14:37
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.

3 participants