-
-
Notifications
You must be signed in to change notification settings - Fork 453
Issue for ISO 8601 dates on arrayFormat separator option #242
New issue
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
Comments
// @cheqianxiao |
hi @cheqianxiao, do you know if there will be a fix in the future? Or if there is a workaround for: As the PR fixed the issue partially |
@jessedobbelaere hey~ you can try this workaround for that issue: parse(decodeURIComponent(queryString), { arrayFormat: "comma", parseBooleans: true, parseNumbers: true }); and... sorry, I don't know if there will be a fix in the future. |
Thanks @cheqianxiao ! Unfortunately, using While on v6.10.1 things were still working. I guess if I want to upgrade to the latest const queryObject = parse(queryString.replace(/%2C/g, ","), {
arrayFormat: "comma",
parseBooleans: true,
parseNumbers: true,
}); |
On v6.10.1 we were succesfully parsing the following two url params using the
comma
parser:Here, our ISO 8601 datetime is not getting modified ✅ .
However, with the release of v6.11.0, we ran into issues because of the encoded commas that are passed to our API, due to the change of (#236).
After switching to the arrayFormat "separator" we seem to get the old behaviour from v6.10.1 with our encoded comma arrays, except for one issue with our ISO 8601 DateTime.
Note: when switching it to
arrayFormat: "comma"
again the datetime is correct (+ sign not removed. (But we cannot use the comma format because of our encoded comma's in the requests we get.)Made a small code sample to illustrate: https://stackblitz.com/edit/typescript-udk9sb (open console)
The text was updated successfully, but these errors were encountered: