-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Remove env detection code in lib/punycode.js #4848
Comments
What are you actually suggesting here @stevemao? I'm not sure what the question is that is needing an answer. Is this specifically about punycode or are there other files in scope? Are you suggesting maintaining a fork of punycode and not accepting upstream updates? |
OK, I changed my mind @rvagg :) I only think that the environment detection code should be removed and just keep We should of course accept upstream updates, etc.. |
Isn't punycode meant to work in the browser? We just copy it verbatim, so it won't make a difference? |
Correct, just to make it a bit smaller @Fishrock123 . No other code in the /lib folder has those detection. Even though it's copied from other source, The code could be modified to suit node core better. |
I'm not sure it would be worth it still, might as well just keep it so you can copy from the upstream. |
I think that there are two viable solutions here:
I doubt that maintaining an interfnal fork will do any good. |
Btw, v1.4.0 is out, it might be time to update: https://github.com/bestiejs/punycode.js/releases |
Here is the diff for v1.4.0 - cjihrig@e55844b |
Is it possible we updated from upstream before the release? |
It looks that way. Do you see any value with brining it up to date with 1.4.0, even though it would just be comment changes? |
@Fishrock123 There are no actual changes between those two versions, except for this pull: mathiasbynens/punycode.js#32, which is the mirror of #1246. Diff: mathiasbynens/punycode.js@v1.3.2...v1.4.0#diff-c50a9dbe44909e8f5b09f11d33fe6f1c. That's why I said above that the changes are comment-only. |
Can we change the label? This is not a question but a minor change request :) |
created PR #4969 |
As stated in the PR, this is an upstream module that we use. Making this change will make updating it more difficult. Thanks! |
I realize some modules like readable-stream is maintained internally but punycode is maintained externally. Should we maintain them internally only? Reasons are:
The text was updated successfully, but these errors were encountered: