nitro icon indicating copy to clipboard operation
nitro copied to clipboard

Why is ioredis a dependency?

Open boehs opened this issue 1 month ago • 0 comments

ioredis is a peer dependency of unstorage, but it is a dependency of nitro despite it not being used. The docs of unstorage say you should install ioredis if you want redis in unstorage, and I agree with them. Seems to have been introduced in #2266, but I'm honestly not sure why.

I personally think it would be better to not burden the 99% of people not using redis with this, especially as

  1. no other unstorage dependencies get preferential treatment like this
  2. people who need it can run one command and be happy forever
  3. a majority of people couldn't use this even if they wanted because a majority of nitro targets are likely serverless

boehs avatar May 23 '24 05:05 boehs