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

fix(encodeQueryItem): stringify boolean values #51

Merged
merged 2 commits into from Mar 31, 2022
Merged

Conversation

airmoi
Copy link
Contributor

@airmoi airmoi commented Mar 30, 2022

Handle boolean values in encodeQueryItem.

I was also wondering why not simply using the native URLSearchParams interface to encode query params ?

Handle boolean values in encodeQueryItem
@airmoi airmoi mentioned this pull request Mar 30, 2022
@pi0 pi0 changed the title fix: add boolean typecheck fix(encodeQueryItem): stringify boolean values Mar 31, 2022
@pi0 pi0 merged commit 469dd88 into unjs:main Mar 31, 2022
@pi0
Copy link
Member

pi0 commented Mar 31, 2022

Thanks for PR @airmoi

I was also wondering why not simply using the native URLSearchParams interface to encode query params ?

Initially I made ufo due to lack of a standard for URL parsing and browser support which wasn't good enough. I think at some point we will use native URL for parsing and other native utilities for operations. Making ufo mainly a utility toolkit on top of native api.

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.

None yet

2 participants