We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not sure if it was an expected impact of #392, but it seems it introduced a regression in 9.1.1.
The following piece of code does not behave the same in 9.1.0 and 9.1.1. In the later the parse function cannot read back itself.
parse
import queryString from 'query-string'; const original = { key: [','] }; console.log({ original }); const stringified = queryString.stringify(original, { arrayFormat: 'bracket-separator' }); console.log({ stringified }); const parsed = queryString.parse(stringified, { arrayFormat: 'bracket-separator' }); console.log({ parsed });
Here are the output we get for each version:
// in 9.1.1 { original: { key: [ ',' ] } } { stringified: 'key[]=%2C' } { parsed: [Object: null prototype] { key: [ '', '' ] } } // in 9.1.0 { original: { key: [ ',' ] } } { stringified: 'key[]=%2C' } { parsed: [Object: null prototype] { key: [ ',' ] } }
The text was updated successfully, but these errors were encountered:
// @scottenock
Sorry, something went wrong.
No branches or pull requests
Not sure if it was an expected impact of #392, but it seems it introduced a regression in 9.1.1.
The following piece of code does not behave the same in 9.1.0 and 9.1.1. In the later the
parse
function cannot read back itself.Here are the output we get for each version:
The text was updated successfully, but these errors were encountered: