-
Notifications
You must be signed in to change notification settings - Fork 29
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
Using querystringparser #10
Comments
It's because this is supposed to be rewrite of the url module and be integrated into node core |
Ah, okay, and "they" are not keen on supporting nesting? |
I suppose if they are not taking drop in replacements for 30x better performance, they are not too keen on changing the APIs of stable modules either :P |
Sounds plausible.. What a shame - we might see more from io.js. |
What's that workaround for? |
It's for I use an object of this format to represent state in my web app and on each change I push this state to the history (using |
Actually I could just accept injection of a querystring implementation e.g.
|
Good enough for me :) |
Are there any API breaks? I can't imagine any reason a 30x perf improvement would be rejected provided it doesn't break or change API :) |
It depends if you consider the implementation of a property as part of the API (data property or getter) |
There's more than one issue swirling around about this so I already made this comment somewhere else but: can't we lazily produce identical output to the current API on stringify/jsonify and iterable? We can eat the perf hit when people touch these edge cases without losing the perf benefits of this approach. |
Sure you can define a |
Would we still have iterable issues? I haven't gotten deep enough in to property access guts to know if that will also be an issue but I'm pretty sure that we have a way to emulate it now in ES6. |
The getters are currently not enumerable (that is of course trivial to change) but even after changing them to enumerable, they are still on the prototype and not on the object itself which trips up stuff like |
Just curious, did it ever get merged into node core? |
I noted that you are using the
querystring
module and not you ownquerystringparser
(when I tried to use this with a nested object), and I'm just curious about why it is so? Is it to keep it a drop-in-replacement ofurl
?The text was updated successfully, but these errors were encountered: