opencommit icon indicating copy to clipboard operation
opencommit copied to clipboard

[Bug]: Punycode warning

Open zain opened this issue 9 months ago • 4 comments

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

zain avatar May 07 '24 07:05 zain

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?

di-sukharev avatar May 07 '24 07:05 di-sukharev

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

di-sukharev avatar May 12 '24 12:05 di-sukharev

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 avatar May 21 '24 14:05 btglr

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

di-sukharev avatar Aug 18 '24 11:08 di-sukharev

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

di-sukharev avatar Aug 19 '24 09:08 di-sukharev

@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)

minarc avatar Sep 02 '24 08:09 minarc

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

di-sukharev avatar Sep 02 '24 13:09 di-sukharev

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

aldinokemal avatar Oct 13 '24 00:10 aldinokemal