Skip to content

Replace qs, query-string, parse-url and others with built-in URL / URLSearchParams APIs and picoquery #152

@talentlessguy

Description

@talentlessguy

Yet another umbrella issue, I think we can close #5, #3 , #2 , #8 , #9, #4, #69 and track these here.

URL is fully since Node 10+, URL.parse since Node 22, URL.canParse since Node 19 (20 LTS).
URLSearchParams is fully supported since Node 10+.

Below is a table of what should be replaced with what:

Package API
qs URLSearchParams or picoquery or neoqs
query-string URLSearchParams
parse-url URL / URL.parse

Top 50 qs dependents

# Downloads Traffic Version Package PR
1 157.27M 9127.79 GB 6.13.0 body-parser expressjs/body-parser#566
2 145.16M 8425.34 GB 6.13.0 express
3 83.82M 4864.92 GB ^6.12.3 url
4 56.75M 3293.88 GB ~6.5.2 request deprecated
5 40.60M 2356.20 GB ^6.11.0 superagent
6 24.03M 1394.47 GB 6.13.0 @cypress/request
7 11.77M 683.42 GB ^6.4.0 union flatiron/union#83
8 10.44M 605.67 GB ^6.7.0 googleapis-common
9 10.28M 596.94 GB ^6.11.0 stripe stripe/stripe-node#2116
10 6.35M 368.57 GB ^6.10.0 @storybook/ui not used anymore
11 5.43M 315.25 GB ^6.9.4 twilio twilio/twilio-node#1027
12 4.88M 283.49 GB ^6.5.2 co-body
13 4.38M 254.10 GB ~6.5.3 postman-request
14 4.23M 245.55 GB ^6.12.3 contentful-sdk-core contentful/contentful-sdk-core#528
15 4.09M 237.10 GB ^6.4.0 then-request
16 3.34M 194.11 GB ^6.12.2 @gitbeaker/requester-utils jdalrymple/gitbeaker#3615
17 3.34M 194.04 GB ^6.12.2 @gitbeaker/core jdalrymple/gitbeaker#3615
18 2.88M 166.88 GB ^6.10.3 typed-rest-client
19 2.68M 155.32 GB ^6.4.0 tiny-lr abandoned
20 2.39M 138.91 GB ^6.11.1 @storybook/addon-knobs deprecated
21 1.97M 114.12 GB ^6.6.0 exegesis
22 1.54M 89.39 GB ^6.5.1 < 6.10 instantsearch.js
23 1.36M 79.12 GB ^6.12.1 chai-http chaijs/chai-http#337
24 1.14M 66.42 GB 6.11.2 elevenlabs deprecated
25 967.27k 56.14 GB ^6.7.0 restify

Top 15 query-string dependents:

# Downloads Traffic Version Package
1 4.90M 51.01 GB ^7.1.3 @react-navigation/core
2 4.15M 43.21 GB ^7.1.3 saucelabs
3 1.24M 12.89 GB <8.x @googlemaps/google-maps-services-js
4 1.17M 12.22 GB ^6.14.1 gatsby
5 1.14M 11.85 GB * @types/query-string
6 1.09M 11.32 GB ^5.0.1 xhr-request
7 1.05M 10.95 GB ^4.3.2 svg-baker
8 997.56k 10.38 GB 8.1.0 amplitude-js
9 889.58k 9.26 GB ^7.1.3 minio
10 408.74k 4.25 GB ^7.1.3 ra-core
11 405.96k 4.23 GB ^9.0.0 @ladle/react
12 368.38k 3.83 GB ^6.9.0 gitlab deprecated
13 335.60k 3.49 GB ^7.1.3 ra-ui-materialui
14 301.73k 3.14 GB ^6.12.1 intuit-oauth
15 246.41k 2.56 GB ^7.1.0 rollup-plugin-styles

Top 5 parse-url dependents:

# Downloads Traffic Version Package
1 15.22M 215.88 GB ^9.2.0 git-up*
2 960.62k 13.63 GB ^9.0.0 @semantic-release/gitlab
3 5.83k 82.74 MB ^5.0.2 @open-wa/wa-automate
4 5.12k 72.67 MB ^8.1.0 parse-db-uri
5 3.61k 51.20 MB ^9.0.1 url-local
    • hard to replace since URL does not support SSH-like URLs with usernames and passwords

Metadata

Metadata

Assignees

No one assigned

    Labels

    umbrella issueThis issue contains a list of dependents of a package and tracks the progress in each

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions