di-sukharev / opencommit

Generate conventional git commit messages with AI in 1 second 🤯🔫
https://www.npmjs.com/package/opencommit
MIT License
6.15k stars 328 forks source link

[Bug]: Punycode warning #334

Closed zain closed 2 months ago

zain commented 6 months ago

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

di-sukharev commented 6 months ago

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?

bitfactory-robin-martijn commented 6 months ago

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?

di-sukharev commented 6 months ago

yes, please look into .github/CONTRIBUTION.md

btglr commented 5 months ago

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.

di-sukharev commented 3 months ago

@btglr hi there 👋 could you please share what exactly needs to be rewritten? i will manage, it finally started to annoy me

di-sukharev commented 3 months ago

should be fixed with a new version. please update and follow up @zain

minarc commented 2 months ago

@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)
di-sukharev commented 2 months ago

thanks @minarc, will investigate and reopen the issue if we get more people here

aldinokemal commented 1 month ago
image

still happen in my end using node v22.9.0 and oco 3.2.2