nitro
nitro copied to clipboard
Why is ioredis a dependency?
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
- no other unstorage dependencies get preferential treatment like this
- people who need it can run one command and be happy forever
- a majority of people couldn't use this even if they wanted because a majority of nitro targets are likely serverless