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

Drop querystring in favor of URLSearch params #205

Merged
merged 4 commits into from
Jan 3, 2024
Merged

Conversation

H-Shay
Copy link
Contributor

@H-Shay H-Shay commented Dec 6, 2023

Per the discussion at #202 (comment), drop querystring in favor of using URLSearchParams.

@H-Shay H-Shay requested a review from a team as a code owner December 6, 2023 21:56
for (const entry of widgetparams.entries()) {
widgetQuery[entry[0]] = entry[1]
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To the reviewer: be convinced that these are equivalent - I'm new to all libraries involved but based on my reading of the docs this should provide the same result as qs.parse() - but correct me if I am wrong!

Copy link
Contributor

@Half-Shot Half-Shot left a comment

Choose a reason for hiding this comment

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

Couple of suggestions for cleaner code, otherwise great stuff :)

web/widgets.ts Outdated Show resolved Hide resolved
web/widgets.ts Outdated Show resolved Hide resolved
web/widgets.ts Outdated Show resolved Hide resolved
@H-Shay H-Shay merged commit 6936b8c into main Jan 3, 2024
5 checks passed
@H-Shay H-Shay deleted the shay/querystring branch January 3, 2024 04:23
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