-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Fix punycode deprecation warning #876
Comments
Thanks for looking into this. I looked into whether it is possible to remove this warning message by bumping the version of
Therefore, I believe this warning will continue until either (1) there is |
Thank you, next major version sounds good enough. |
Tesseract.js version (version number for npm/GitHub release, or specific commit for repo)
5.0.4
Describe the bug
When updating to node v21 this node warning comes up when using packages that rely on node's built in punycode module.
(node:15352) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
This module can be traced back to an old version of
tr46
which itself is used in an old version ofwhatwg-url
which itself is used in an old version ofnode-fetch
.tr46 already fixed that issue and newer versions of whatwg-url don't have the same issue and as far as I can tell the latest node-fetch version doesn't even use whatwg-url in the first place.
Long story short, would you consider updating to a newer version of node-fetch?
To Reproduce
Steps to reproduce the behavior:
Device Version:
The text was updated successfully, but these errors were encountered: