-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Closed
Labels
deprecationsIssues and PRs related to deprecations.Issues and PRs related to deprecations.querystringIssues and PRs related to the built-in querystring module.Issues and PRs related to the built-in querystring module.
Description
What do you think? should a warning be shown if someone is requiring the querystring?
- URLSearchParams uses a more selective and fine grained approach to selecting encoded characters than that used by the Legacy API.
- URLSearchParams is a spec standard, more ppl should know how it works
- querystring is inconsistent when it comes to adding same keys more then once (by switching between string and arrays)
- if your server depends on some key being used once
?key=valthe you would expect that it would be a string
But if someone where to add it twice?key=val&key=val2then it becomes an array and your application would do unexpected things.
- if your server depends on some key being used once
- works in more environments -> means fewer dependencies
jimmywarting, aduh95 and sindresorhusjermitval
Metadata
Metadata
Assignees
Labels
deprecationsIssues and PRs related to deprecations.Issues and PRs related to deprecations.querystringIssues and PRs related to the built-in querystring module.Issues and PRs related to the built-in querystring module.