opencommit
opencommit copied to clipboard
[Bug]: Punycode warning
Opencommit Version
3.0.15
Node Version
21.7.3
NPM Version
10.5.0
What OS are you seeing the problem on?
Mac
What happened?
Seeing this warning when running any oco commends:
(node:39887) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Expected Behavior
No warning
Current Behavior
Is a warning
Possible Solution
No response
Steps to Reproduce
No response
Relevant log output
No response
hi @zain thanks for the report, do you want to take a look at it an submit a PR making world a better place together?
I'm happy to fix this as I'm encountering the same issue. Is there a contribution guide, or any instructions on how to set this up properly?
yes, please look into .github/CONTRIBUTION.md
The deprecation warning comes from @anthropaic-ai/sdk
and openai
having dependencies on older node-fetch
versions. Unfortunately updating those packages and especially the openai
package requires rewriting the API logic.
@btglr hi there 👋 could you please share what exactly needs to be rewritten? i will manage, it finally started to annoy me
should be fixed with a new version. please update and follow up @zain
@di-sukharev Got again in new version at 3.1.1 node version is 22.7.0
(node:66000) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
thanks @minarc, will investigate and reopen the issue if we get more people here