Skip to content

punycode Deprecation Warning via node-fetch Dependency #1207

@TomasAyerbe

Description

@TomasAyerbe

Describe the bug

When using the openai package in my Node.js project, I encounter the following deprecation warning:

image

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.

image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions