balazsbotond / urlcat

A URL builder library for JavaScript.
https://urlcat.org
MIT License
1.82k stars 57 forks source link

Arrays as parameters #188

Closed tema3210 closed 1 year ago

tema3210 commented 1 year ago

Is your feature request related to a problem? Please describe. Case: need multiple values for query parameter. Currently (urlcat = 2.0.4) it always turns an array into a string and that ends up being a query parameter.

Describe the solution you'd like In that case query parameter should be mentioned multiple times: each time with another value from an array.

Describe alternatives you've considered Back to handwriting query.

balazsbotond commented 1 year ago

Hi @tema3210, I've just released v3.0.0 - please check if the new version (which now includes qs, and can handle arrays/objects as parameters) solves you problem! I'm closing this issue now but feel free to reopen/comment if the version upgrade doesn't work out.