-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
punycode: fix jsdoc references #45524
Conversation
This file is actually a (deprecated) 3rd party dependency originating from here, so changes should be made there instead. |
We have definitely changed it, though:
The most recent version (which we are using with those two modifications above) is 2.1.1, released more than 4 years ago. I think we decided at some point that we would maintain our own fork here, but maybe I'm mistaken about that. |
The referenced repository is not maintained anymore.
|
Perhaps we could convince @mathiasbynens to upstream our existing changes (sans node-specific stuff like the deprecation warning) + these doc fixes? |
You totally could. Please send a PR :) |
If we are going to upstream the changes, should we add |
It's already in the LICENSE file. Do you mean, though, that it should be moved to the |
So, I opened a pull request for these changes and it got merged. What is the next step for that change to get into the node.js core? If it was |
I would recommend this approach:
|
I opened another pull request for upstreaming our internal changes. @mathiasbynens I appreciate if you can take a look at it (mathiasbynens/punycode.js#121) |
I think it's time to remove the core Edit: It appears there is a non-ambigous module on npm, so that avoids the undefined behaviour. |
The original author is unresponsive to my upstream changes pull request. I recommend continuing this pull request. @Trott What are your thoughts on this?
@silverwind I agree with you. What are the steps needed to remove this module from Node, without breaking any existing apps? |
It looks like the PR has been landed upstream. |
I'd say next step is probably runtime deprecation, e.g. output a process warning when the module is used. |
If you enable pending deprecation warnings, you'll see that the ecosystem impact will be huge. |
Internal use should probably not output a warning, only external one. Or even better, refactor the internal use away from the module. |
I'm not talking about internal use. The |
I see, so that is because of same-name internal module and npm module, and I think this ambiguity is the reason why we now have such a hard time deprecating it without major impact. I suggested in mathiasbynens/punycode.js#122 that the authors should recommend the unambiguous |
Also, I recommend opening a new issue for this topic and stop abusing this PR 😉 |
I'm closing this issue in favor of deprecation and the follow up pull requests done. |
No description provided.