Using undici is a great choice, but bundling it with the app could be offputting for anyone who's currently using e.g. axios, got, or pure Node HTTP calls (or even just a different version of undici). For those folks, it'd be better if:
undici is an optional peer dependency
- when creating a
DockerClient, we can provide our own network client implementation; otherwise it defaults to your undici-based implementation
Using
undiciis a great choice, but bundling it with the app could be offputting for anyone who's currently using e.g.axios,got, or pure Node HTTP calls (or even just a different version ofundici). For those folks, it'd be better if:undiciis an optional peer dependencyDockerClient, we can provide our own network client implementation; otherwise it defaults to yourundici-based implementation