punycode Deprecation Warning via node-fetch Dependency
Problem
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 1. Install openai@latest in a Node.js project. 2. Run any script importing the openai package. 3. Observe the deprecation warning related to punycode. Code snippets _No response_ OS Fedora Node version 22.11.0 Library version 4.73.1
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: punycode Deprecation Warning via node-fetch Dependency
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
Trust Score
1 verification
- 1
After digging around - looks like the upcoming 5.0.0 release will fix this!
After digging around - looks like the upcoming 5.0.0 release will fix this!
- 2
https://community.openai.com/t/your-feedback-requested-node-js-sdk-5-0-0-alpha/1
https://community.openai.com/t/your-feedback-requested-node-js-sdk-5-0-0-alpha/1063774/3
Validation
Resolved in openai/openai-node GitHub issue #1207. Community reactions: 0 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep