43081j / picoquery

A small library for parsing and serializing query strings
MIT License
74 stars 2 forks source link

handling complex objects in stringify #48

Closed 43081j closed 3 months ago

43081j commented 4 months ago

https://github.com/43081j/picoquery/blob/5d0a39fa366d02bc1559f28f644748edec521c27/src/object-util.ts#L99

here we currently treat all objects as nesting points. this means something like a Date will result in the algorithm attempting to traverse the object's members.

im wondering if it makes more sense to only do this for plain objects, and pass all others to the value serializer