openai-node icon indicating copy to clipboard operation
openai-node copied to clipboard

chore: remove deprecated node‑domexception dependency

Open Suyash-K opened this issue 1 year ago • 2 comments

Confirm this is a Node library issue and not an underlying OpenAI API issue

  • [x] This is an issue with the Node library

Describe the bug

Installing @openai/codex (which depends on [email protected]) emits:

npm WARN deprecated [email protected]: Use your platform's native DOMException instead

node-domexception is deprecated and unnecessary on Node ≥ 18. It pollutes installs with warnings

To Reproduce

try installing npm install -g @openai/codex or npm install openai it'll generate

npm warn deprecated [email protected]: Use your platform's native DOMException instead

Code snippets


OS

Windows and WSL

Node version

Node 22.12.0

Library version

Latest

Suyash-K avatar Apr 20 '25 19:04 Suyash-K

Thanks for the report, I'm closing this in favour of #1207 as this will also be fixed in the v5, please try it out!

RobertCraigie avatar Apr 21 '25 17:04 RobertCraigie

Thanks for the report, I'm closing this in favour of #1207 as this will also be fixed in the v5, please try it out!

But this error is still there, isn't it?

sascharo avatar Dec 18 '25 05:12 sascharo