-
-
Notifications
You must be signed in to change notification settings - Fork 728
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
urlencoded: Support iso-8859-1, utf8 sentinel, and numeric entities #326
urlencoded: Support iso-8859-1, utf8 sentinel, and numeric entities #326
Conversation
…d also accept iso-8859-1 as a default encoding.
Works in both extended and simple mode.
c056515
to
5b39b86
Compare
We can hold the PR for the 2.0 release, which will drop support for those versions 👍 |
@dougwilson, that sounds fair! Does it look good otherwise? |
Hi there, Any news on v2.0 release date with the pr? Cheers |
Any news to iso-8859-1 support? |
Fixed conflict with master. @dougwilson, this has been sitting for some time now 😅 I'm not really in a hurry, but how about getting this released soon? I can remove those ancient node versions from |
The reason it has been sitting is just because it cannot be merged into the 1.x line due to the incompatibility. Because this module is a part of express, it effectively inherits it's support policy. The 1.x series of this module won't end up out of support for some time, and the count down starts with the next express release. In order to reduce the support burden by maintaining multiple major versions of this module, I am just waiting to make the 2.0 in coordination with express 5. If this could be made to work in those node.js versions I would of course be happy to land right away. |
Okay, thanks for the update, that makes sense!
Unfortunately I think this would involve us to stop relying on the built-in |
@papandreou if there's manageable changes i could make in |
And I would be happy to use |
@dougwilson if you can save me a few minutes and link me to a branch that uses qs for the simple parser, but is failing tests, i can use npm link and see what options and changes it would take to get it working :-D 🙏 |
@ljharb this is likely not even correct for params to Branch: https://github.com/expressjs/body-parser/tree/urlencoded-qs-simple |
give me 48 hours, i'll see what i can do |
body-parser tests on that branch now pass with ljharb/qs#326 (comment), and I can merge and release that in |
Ah, yes, so depth: 0 was supposed to make sense after all :D . Yes, that is a hard decision. But if it helps at all, this module and Express do not directly expose the qs arguments, making whichever semver it is a non issue to us :) |
What I'm probably leaning towards is releasing it as a minor, and if users report breakage, reverting the depth 0 part, but keeping the depth false part - so express thus should use depth false to ensure continuity. |
v6.8.0 of qs is published. |
Fixes #194
Further elaborations here: ljharb/qs#268
Supports both the simple and extended parsers as outlined in ljharb/qs#268 (comment) -- and doesn't use the equivalent capabilities of the qs module.
Note: This will fail in node.js 0.8 and 0.10 as the capability to specify a customdecodeURIComponent
implementation to use wasn't added until 0.12.