-
Notifications
You must be signed in to change notification settings - Fork 5
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
API does not match Node #4
Comments
Is this a dupe of the issue in the upstream project Gozala#6 ? This fork is specially made for https://github.com/substack/node-browserify and other projects that need es3 compatibility so any functionality and API issues should be opened with the upstream. |
Yea, I guess it is. |
Hello, guys @bclinkinbeard @mike-spainhower |
Ok, since the maintainer of the upstream is being actively unhelpful, and browserify users (I am one also) seem to need this compatibility, I am willing to fully depart from the upstream and add this functionality in this repo. @substack before I do this, would adding |
What's the status of the issue? I'm stuck with using browserified |
Pinging @substack again on question above. I would not want to add this until @substack weighs in on any potential negative effects. In the meantime, if anyone affected would like to open a PR for this, feel free. |
Hi, I extracted the querystring implementation from the node.js core at https://github.com/mathiasvr/querystring. It seems to work fine in browsers, passing the tests down to IE9. I could make a PR, but i guess we might as well wait and see what substack thinks 😉 |
That's great @mathiasvr, thanks for the offer. Hopefully we can go that route. |
This is crippling my use of the aws4 npm module in browserify as well. Is there any progress on this? |
@Beirdo there's an example of how to use aws4 with browserify here: https://github.com/mhart/aws4/tree/master/browser |
Thank you. I have used this as a viable workaround, but really, the upstream querystring modules used by browserify need some work :) My requests to the API Gateway from my phone application are now AWSv4 signed and all is good. |
I have started using an alias to the resolve: {
alias: {
querystring: 'querystring-browser'
}
} |
Hi guys! |
how about this:
I no longer use browserify for any large projects, so would love volunteers to open the PR and test it |
pinging @mathiasvr about PR |
@SpainTrain Nodes querystring implementation is updated quite often and is relying more and more on ES6 features. Because of this I've been thinking about using babel to generate the future versions of my module. I don't know what an obvious PR would be for this right now? Do you want the module to be designed for the browser, or is a babel version of the core implementation fine? Anyway I will probably have to get back to this, until I update my module. Otherwise I hope someone else can weigh in! |
Frankly the requirements come from the dependents - https://www.npmjs.com/package/querystring-es3. Originally this was just a one-off module for browserify, but now has 21 dependents. To actually answer the question: I suspect that a babel-compiled version of node.js core is appropriate. The question is which version does it come from, and I think the latest LTS version probably makes sense. Thoughts? |
would the change from Trott (Trott@46c1e33) be acceptable to solve this issue? |
BREAKING CHANGE: This is a complete rewrite based upon the actual node source code and tests. See also: mike-spainhower/querystring#4
Sorry for the silence on this very old issue. I have updated this lib at https://github.com/SpainTrain/querystring-es3 using the node 6.10.2 implementation of (and tests for) I will shortly be publishing a pre-release behind a major bump for testing. Apologies again on how absurdly long this issue has been open. Please feel free to review https://github.com/SpainTrain/querystring-es3 and report issues |
Thanks. I'll take a look.
…On Sun, Apr 3, 2016 at 7:40 PM, Michael Hart ***@***.***> wrote:
@Beirdo <https://github.com/Beirdo> there's an example of how to use aws4
with browserify here: https://github.com/mhart/aws4/tree/master/browser
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
<#4 (comment)>
|
According to http://nodejs.org/api/querystring.html, the returned object should have
escape
andunescape
methods. Instead, it hasencode
anddecode
, with a different API, in that they return objects instead of strings.The text was updated successfully, but these errors were encountered: