stripe-node
stripe-node copied to clipboard
Remove qs package and implement URLSearchParams serializer
trafficstars
Hello
This pull request removes the qs package and replaces it with a custom implementation of URLSearchParams serializer.
The stringifyRequestData function now serializes an object or string into URL-encoded parameters, accommodating nested objects and arrays.
The goal of this change is to remove the qs dependency which was used for this single function.
It will allow to reduce the size of the stripe-node library.
URLSearchParams is available in all evergreen browser, NodeJS since v10, Deno since v1, and Bun.
Source : https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams https://bun.sh/docs/runtime/nodejs-apis#urlsearchparams
This PR would close #2117