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

feat: replace qs with qs-esm #6966

Merged
merged 7 commits into from
Jul 9, 2024
Merged

feat: replace qs with qs-esm #6966

merged 7 commits into from
Jul 9, 2024

Conversation

AlessioGr
Copy link
Member

@AlessioGr AlessioGr commented Jun 27, 2024

qs-esm is a qs fork I created and doesn't add bloated polyfills, is ESM-only, has a smaller bundle size and comes with types included.

qs:
https://bundlephobia.com/package/qs@6.12.1 (11kb)
https://npm.anvaka.com/#/view/2d/qs (15 dependencies)

qs-esm:
https://bundlephobia.com/package/qs-esm@7.0.0 (4.2kb)
https://npm.anvaka.com/#/view/2d/qs-esm (1 dependency)

I don't agree with the backwards philosophy of qs: ljharb/qs#404 (comment) ("more deps is better", lower bundle size as opt-in, maximum environment compatibility as opt-out)

qs imports waaay too many useless dependencies

@AlessioGr AlessioGr marked this pull request as ready for review June 27, 2024 18:41
@AlessioGr AlessioGr requested a review from denolfe as a code owner June 27, 2024 18:41
Copy link
Member

@denolfe denolfe left a comment

Choose a reason for hiding this comment

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

Needs bundle diff and additional justification to take on dev burden of maintaining a fork and possibly missing out on security updates.

Copy link
Contributor

@paulpopus paulpopus left a comment

Choose a reason for hiding this comment

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

qs-esm should be under payload's org

@denolfe denolfe enabled auto-merge (squash) July 9, 2024 14:14
@denolfe denolfe merged commit 6c99326 into beta Jul 9, 2024
44 checks passed
@denolfe denolfe deleted the feat/qs-esm branch July 9, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants