-
Notifications
You must be signed in to change notification settings - Fork 1.1k
punycode Deprecation Warning via node-fetch Dependency #1207
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
Comments
After digging around - looks like the upcoming 5.0.0 release will fix this! https://community.openai.com/t/your-feedback-requested-node-js-sdk-5-0-0-alpha/1063774/3 |
Relevant: #402 |
This also relevant (another deprecated dependency): octet-stream/form-data#84 |
Adding the following to "pnpm": {
"overrides": {
"whatwg-url": "^14.0.0"
}
} To just hide the warning, you could start your app like this: |
Describe the bug
When using the openai package in my Node.js project, I encounter the following deprecation warning:
After investigating, I found that the openai package relies on node-fetch@2.7.0, which in turn depends on whatwg-url@5.0.0. The whatwg-url package is causing the warning as it depends on the deprecated punycode module.
To Reproduce
Install openai@latest in a Node.js project.
Run any script importing the openai package.
Observe the deprecation warning related to punycode.
Code snippets
No response
OS
Fedora
Node version
22.11.0
Library version
4.73.1
The text was updated successfully, but these errors were encountered: