Skip to content

Replace querystring with URLSearchParams #4703

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

doong-jo
Copy link

Replace querystring with URLSearchParams

This PR replaces all usages of the deprecated Node.js querystring module with the standard URLSearchParams API.

Why this change?
• The querystring module has been deprecated and its use is discouraged in favor of the more modern and standard-compliant URLSearchParams.
• URLSearchParams offers better performance, improved readability, and broader alignment with browser-side JavaScript.
• This change contributes to long-term maintainability and compatibility with future Node.js versions.

No functional changes were introduced — only internal refactoring for improved code quality and performance.

Checklist
  • npm run test passes
  • .d.ts file is updated
  • changelog is added, npm run add-change
  • run bundle exec rake docs:api and inspect doc/latest/index.html if documentation is changed
  • run npm run integration if integration test is changed
  • non-code related change (markdown/git settings etc)

@doong-jo doong-jo requested a review from a team as a code owner May 22, 2025 04:32
@doong-jo doong-jo changed the title refactor: Remove querystring, Use URLSearchParams Replace querystring with URLSearchParams May 22, 2025
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.

1 participant