Should libraries using Undici ship Undici as peerDependency or dependency #3936
-
I'm migrating a Nodejs library to Undici from Sorry if this question is too dumb, but I'm not 100% sure. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If your library is a direct dependent of
|
Beta Was this translation helpful? Give feedback.
If your library is a direct dependent of
undici
, the best is to set it as directdependency
. Specially if you are attempting to make usage ofv7
which installers can/cannot be willing to set it to that version if they are already usingundici
.v7
should be totally fine as is marked as the new current version for the library.